ClaimReview, Fact Check – Using ClaimReview structured data element to Fact Check articles and build a WordPress plugin for it
Tackling the fact-checking issue and the truth’s relative notion in media is skating on thin ice. It is a very dodgy but necessary questioning nowadays.
For those, who get easily bored with reading and want action, you can find directly the plugin in this repository https://github.com/bflaven/PluginWordpressForFun/tree/master/check_news
Apparently, on a historical point of view, we entered in the “Anthropocene”, or even worst in the broiler chicken era. But, you’ll be glad to known that is also a “post-truth” era where you can peddle conspiracy theories on social networks and tout people with ready made ideas that just flatters them and make some money of it.
Yes, me included, we are often barter complex information for hardly credible emotional rumours that feed our addiction for gutter superstition.
Just to save the best for last, an interesting quote to meditate from Philip K. Dick: “Fake realities will create fake humans. Or, fake humans will generate fake realities and then sell them to other humans, turning them, eventually, into forgeries of themselves.”
Back to work
Here is the basic product of my loneliness. So,like always, first to be sure to not forget any fields for “Fact Check” or “ClaimReview” area, I drew a quick mock-up and write down a gherkin feature. Even more this time, in a second time, I made a quick development in a WordPress plugin so I could figure out the best user experience possible.
Example for edition for ClaimReview structured data element to Fact Check
Some additional Informations on “Fact Check” or “ClaimReview” provide by Google.
- https://developers.google.com/search/docs/data-types/factcheck
- https://search.google.com/structured-data/testing-tool
A readme to describe fieldnames of the future plugin
Just for educational purpose, I have generated fake content, author name, catchy title and pseudo website… and so on. By advance, I apologize if by any chance it matches with something.
<!-- catchy title --> Who Else Is Lying To Us About fact checking? Life, Death and Truthiness What You Don't Know About Conspiracy May Shock You The Dirty Truth on Lügenpresse The Troll Trap The Low Down on fact checking Exposed Dirty Facts About fact checking Revealed The Undeniable Truth About Fakebook and Loople That No One Is Telling You What Everybody Else Does When It Comes To Truthiness And What You Should Do Different <!-- author --> Claudio Relor |
Example of ClaimReview structured data element
{ "@context": "http://schema.org", "@type": "ClaimReview", "datePublished": "2016-06-22", "url": "http://example.com/news/science/worldisflat.html", "itemReviewed": { "@type": "CreativeWork", "author": { "@type": "Organization", "name": "Square World Society", "sameAs": "https://example.flatworlders.com/we-know-that-the-world-is-flat" }, "datePublished": "2016-06-20" }, "claimReviewed": "The world is flat", "author": { "@type": "Organization", "name": "Example.com science watch" }, "reviewRating": { "@type": "Rating", "ratingValue": "1", "bestRating": "5", "worstRating": "1", "alternateName": "False" } } |
The gherkin feature that describes my user sequence
The ClaimReview WordPress Plugin
Here is how the plugin works… I created on the Admin WordPress sidebar of each post edition, a metabox containing a checkbox that enable the status whether the post is declared “ClaimReviewed” or not.
Then, for each of the post “ClaimReviewed”, in the Fact Check Details Box, you can fill up each field for the ClaimReview JSON-LD that will be printed in the post’s header.
Let’s take an article
The status for post edition
In the Fact Check Details Box, the information for the ClaimReview JSON-LD
The output in the header
Read more
- ClaimReview from schema.org
https://schema.org/ClaimReview - Fact Check from Google
https://developers.google.com/search/docs/data-types/factcheck - Testing tool for ClaimReview Structured Data
https://search.google.com/structured-data/testing-tool - Add vocab to support markup of fact-checking sites
https://github.com/schemaorg/schemaorg/issues/1061 - Fact-checking : opportunisme et operation com de Facebook ? (french)
https://www.zdnet.fr/actualites/fact-checking-opportunisme-et-operation-com-de-facebook-39878085.htm - A Walkthrough of Structured Data and Schema Markup with Examples
https://www.verticalmeasures.com/blog/search-optimization/a-walkthrough-of-structured-data-and-schema-markup-with-examples/ - Working with Schemas in WordPress
https://css-tricks.com/working-with-schemas-wordpress/ - The broiler chicken as a signal of a human reconfigured biosphere
https://royalsocietypublishing.org/doi/10.1098/rsos.180325 - How the chicken nugget became the true symbol of our era
https://www.theguardian.com/news/2018/may/08/how-the-chicken-nugget-became-the-true-symbol-of-our-era - File metabox-multiple.php
https://gist.github.com/cferdinandi/46aca88d6d142791a32a9d30017f1cd8 - Tammy Hart on tutsplus.com, author of the excellent Reusable Custom Meta Boxes serie
https://tutsplus.com/authors/tammy-hart - Reusable-Custom-WordPress-Meta-Boxes by tammyhart
https://github.com/tammyhart/Reusable-Custom-WordPress-Meta-Boxes - WordPress Meta Boxes
https://rudrastyh.com/wordpress/meta-boxes.html - Advanced Custom Fields
https://wordpress.org/plugins/advanced-custom-fields/ - How to add custom meta boxes in WordPress posts
https://hostpapasupport.com/add-custom-meta-boxes-wordpress-posts/ - wp-acf-schema-template by PascalAOMS
https://github.com/PascalAOMS/wp-acf-schema-template - Schema WordPress plug-in
https://wordpress.org/plugins/schema/ - Extending the WordPress metadata API
https://pippinsplugins.com/extending-wordpress-metadata-api/ - Custom Fields in Codex
https://codex.wordpress.org/Custom_Fields - How to Work With WordPress Post Metadata
https://code.tutsplus.com/tutorials/how-to-work-with-wordpress-post-metadata–cms-25715 - Creating Custom Post Meta Boxes in WordPress
https://premium.wpmudev.org/blog/creating-meta-boxes/ - A collection of code snippets to enhance or expand on the free Give WordPress Donation Plugin.
https://github.com/impress-org/give-snippet-library - How To Add Custom Fields To Posts And Pages
http://docs.layerswp.com/how-to-add-custom-fields-to-posts-and-pages/ - Adding Custom Fields to a Custom Post Type, the Right Way
https://blog.teamtreehouse.com/adding-custom-fields-to-a-custom-post-type-the-right-way - WordPress Theme Development: Creating Custom Fields and Meta Boxes
https://www.taniarascia.com/wordpress-part-three-custom-fields-and-metaboxes/ - 3 Approaches To Adding Configurable Fields To Your WordPress Plugin
https://www.smashingmagazine.com/2016/04/three-approaches-to-adding-configurable-fields-to-your-plugin/ - smashing-custom-fields by rayman813
https://github.com/rayman813/smashing-custom-fields - Show Custom Fields in WordPress
https://www.cozmoslabs.com/25322-show-custom-fields-wordpress/ - Adding Custom Meta Boxes to the WordPress Admin Interface
https://www.sitepoint.com/adding-custom-meta-boxes-to-wordpress/