Hi Team,
Could you please provide me an idea of how to have FactCheck Schema on my site?
Google has provided a tool to make the contents here – https://toolbox.google.com/factcheck/markuptool
Once I’ve gone through the steps of making a claim, I’m given the option to copy+paste a JSON-LD code.
The Rank Math plugin team asked me to integrate this into my functions.php file –
/**
* Collect data to output in JSON-LD.
*
* @param array $unsigned An array of data to output in json-ld.
* @param JsonLD $unsigned JsonLD instance.
*/
add_filter( ‘rank_math/json_ld’, function( $data, $jsonld ) {
return [];
}, 10, 2);
I used the CodeSnippets plugin to add the above code, but yet when I copy+paste the JSON-LD into the desired URL, it does not work.