Site logo

json-ld

JSON-LD Implementation

An old post of your’s (Tom’s) mention putting the script in the footer. Then I also see where it is suggested to put the script into wp_head by using a hook. Id i that and then ran the Google Structured Data Testing tool (https://search.google.com/structured-data/testing-tool) and while I received no errors, the ony “elements” I see … Read more

site crashing when adding JSON-LD at wp_head hook

Hi, I’m trying to add some structured data to my website using JSON-LD. At first I’d like to add the same data for every page, then I’ll start modifying it. I’ve tried to add it to the wp_head GP hook, but when I do it, WordPress crashes. Chrome reports this message when trying to access … Read more

Implementing Schema With JSON-LD in Custom Field

Hi, I want to implement AggregateRating schema to my posts and this guide suggests using a combination of custom fields for each post and a script in the header.php (for which I will use Hooks). The question is, will I be facing any problems if I do this? I don’t want the AggregateRating to conflict … Read more

JSON-LD into header of select pages?

Hi, I need to be able to add JSON-LD schema into the header (I assume that is where it should go) of certain pages and posts. The schema would be different for each of the pages/posts in question so I need to be able to update individually. Is there a built in way to do … Read more