Archived topic
How to Insert FAQ Schema in a single post?
11 replies · Started by Suraj Katwal on December 10, 2019
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?
https://i.imgur.com/v9DOUwm.png
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 :)
Can't we load the script in a desire single post using hooks?
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/
Done. Thanks
No problem :)
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!
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 :)
Hi Ying!
Tried it. Not working with that location either.
Can you link us to the site in question?
You can use the private information field.
Let me know :)
Hi Ying, I cannot find the private info field you're mentioning.
Hi Victor,
please raise a new topic, the Private Information field is only available if you opened the Topic.