JSON-LD missing from HTML
-
I think I’ve discovered a bug with Rank Math (version 1.0.241).
I have a post type of “person” and a number of “person” posts that I had not configured the schema type for, so by default were all schema type “Article”. I went in to the Rank Math “Titles & Meta” for that post type and changed the schema to “Person”. The posts reflected the new type in the admin interface when listing the posts, but the respective application/ld+json script was completely missing from the public HTML for each one. I verified a few times after clearing down all caches – same issue.
The only way I could get the missing tag to show in the HTML was by editing each post, going in to the Rank Math panel > Schema and editing and re-saving or removing and re-adding the “Person” schema type. Simply saving the post was not enough to get it to come back.
Adding a new “person” post and the JSON-LD is also completely missing again by default. I notice that “Schema” shows as “Off” next to the post in the admin interface in this case, yet I have configured this post type to be of schema type “Person”.
Something that might be related is that in the admin interface the Schema shows as “person” (lowercase “p”) yet when I edit the post and re-save the schema details or remove then re-add to get it to work it shows as schema type “Person” (uppercase “P”).
Edit: Just checked my other websites that have the same post type and they are all affected (different plugins and page builders in play).
The topic ‘JSON-LD missing from HTML’ is closed to new replies.