Good plugin – Google recognises my FAQ’s – thanks!
However, it is generating errors in Google Search Console for categories. A category returns $post_type as “post” so your code is kicking in.
You may need to add an is_single() to the if statement in schema_faqs_head method.
Hope that helps!
- The topic ‘Plugin incorrectly injects data on category pages’ is closed to new replies.