[Resolved] How to Insert FAQ Schema in a single post?

Home Forums Support [Resolved] How to Insert FAQ Schema in a single post?

Home Forums Support How to Insert FAQ Schema in a single post?

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1100131
    Suraj Katwal

    There are many ways to insert FAQs Schema like by using Plugins and Tag Manager but is there any internal way in GPP to insert FAQ Schema i.e. JSON-LD Code?
    Something like this in a single post?

    View post on imgur.com

    #1100262
    Leo
    Staff
    Customer Support

    Hi there,

    Nothing built-in for this as it’s more of a plugin territory for sure.

    A plugin solution is what I’d recommend πŸ™‚

    #1100440
    Suraj Katwal

    Can’t we load the script in a desire single post using hooks?

    #1100452
    Leo
    Staff
    Customer Support

    Oh I thought you were looking for the actual script.

    Yup you can definitely use Hooks Elements:
    https://docs.generatepress.com/article/hooks-element-overview/

    #1100560
    Suraj Katwal

    Done. Thanks

    #1101173
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #1618970
    Victor

    I am not being able to implement FAQ Schema in GP:
    – I followed all the instructions on https://docs.generatepress.com/article/hooks-element-overview/
    – I have inserted JSON-LD Code with a HOOK element in wp_footer and ticked “Execute PHP”
    – I have set Display rules for the page I wanted to implement
    – Questions/Answers inserted in the JSON-LD code are exactly the same as questions/answers on the page.

    Google Tool (https://search.google.com/test/rich-results) keeps telling me “Page not eligible for rich results known by this test”.
    Could you please tell me what could be going wrong?
    Thanks for your support!

    #1619124
    Ying
    Staff
    Customer Support

    Hi Victor,

    Try to use generate_before_footerinstead of wp_footer.

    Here’s a visual hook guide for your reference.
    https://docs.generatepress.com/article/hooks-visual-guide/

    Let me know πŸ™‚

    #1619154
    Victor

    Hi Ying!

    Tried it. Not working with that location either.

    #1619248
    Ying
    Staff
    Customer Support

    Can you link us to the site in question?

    You can use the private information field.

    Let me know πŸ™‚

    #1619666
    Victor

    Hi Ying, I cannot find the private info field you’re mentioning.

    #1619864
    David
    Staff
    Customer Support

    Hi Victor,

    please raise a new topic, the Private Information field is only available if you opened the Topic.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.