Support » Plugin: FAQ Schema Markup - FAQ Structured Data » Plugin incorrectly injects data on category pages

  • Hi Sunny,
    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter snibbo71


    Further to this – on some posts I have empty question and answers for some reason. Deleting the empty question and answer leaves a post_meta string of [] attached to the post. This outputs a bugged script header and causes errors in GSC.

    I’ve fixed this in my local copy. If you’d like me to send you my changes I’m happy to – copying them into this message box destroys the formatting.

    Let me know 🙂

    All the best,

    Thread Starter snibbo71


    Oh, this second problem is the same as saveatrain’s problem from 4 weeks ago with no resolution…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin incorrectly injects data on category pages’ is closed to new replies.