How to add FAQ schema in WordPress sitePin

Affiliate Disclosure: I publish various content marketing strategies, online business ideas, blogging tutorials, review articles, and discount offers on my blog. My content may contain some affiliate links for products/services I use, love, and recommend. If you take action (i.e., subscribe or make a purchase) after clicking one of my affiliate links, I’ll earn an affiliate commission at no additional cost to you. It helps me in creating more helpful content like this.

People keep asking me how to add FAQ schema in WordPress without manual code, so I wrote a step-by-step article on this topic.

In May 2019, Google announced support for FAQ and How-to structured data on Google Search and the Google Assistant platform. (Source: Google)

It’ll allow webmasters to optimize their sites to perform better in SERP and provide more options for users to access the website content.

While implementing FAQ and How-to structured markup may not lead to higher organic ranking in Google Search, you’ll see various benefits by adding FAQ schema to your website, including:

  • Capture more visual real estate in Google search for the targeted keywords
  • Higher brand engagement or organic click-through-rate

This way, you can achieve a better SEO score against your competitors. 

Refer to the following screenshot to understand what you’re going to achieve.

FAQ SchemaPin
FAQ Schema

This article will teach you how to add FAQ schema to a WordPress website and validate it using Google’s Rich Results test.

The best part is that you don’t need to be code-savvy or hire a developer to complete the process.

Anyone with basic knowledge of WordPress can do it himself.


Using structured data markup enables the respective feature but does not guarantee that it’ll be present in Google SERP.

To be eligible for rich results, you must mark your web pages using one of the supported formats, including:

  • JSON-LD (recommended)
  • Microdata
  • RDFa

Plus, you should not block the structured data pages for Googlebot by using noindex tag, robots.txt, or any other access control methods.

How to Add FAQ Schema to WordPress Website

Step 1: Ensure Your On-Page Content Structure Follows Google’s Structured Data Guidelines

Google has clearly defined the content guidelines for FAQ-containing rich snippets to be displayed for your site.

Take a look at the Dos and Don’ts for an on-page content structure that you must follow to appear FAQ structured data for your site.

Content Guidelines for FAQ Page MarkupPin
Content Guidelines for FAQ Page Markup

To validate the FAQ schema, you must add content to the HTML source code, and it should be accessible to users.

Step 2: Choose the Proper Layout for FAQs

Since FAQ content needs to be accessible to front-end visitors, you must choose a proper layout for it.

You may choose a different layout for website product/service pages and blog posts.

The questions and answers can be shown sequentially as a list or in the form of columns. Or, you can choose to hide the “answers” text using an accordion dropdown. Visitors can expand the accordion to see the answer to a particular question.

Step 3: Create JSON-LD code for FAQ Schema

JSON-LD (JavaScript Object Notation for Linked Data) is Google’s preferred markup for structured data that transmits data objects consisting of attribute-value pairs using human-readable text.

Creating an FAQ schema code is super easy. However, you must ensure that the questions and answers in JSON-LD FAQ schema are the exact copy of FAQs appearing on the webpage.

To simplify this process, you can use the following JSON-LD code and replace the question and answers marked in red.

<script type="application/ld+json">
"@context": "",
"@type": "FAQPage",
"mainEntity": [
"@type": "Question",
"name": "Question 1",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer 1"
"@type": "Question",
"name": "Question 2",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer 2"
"@type": "Question",
"name": "Question 3",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer 3"
"@type": "Question",
"name": "Question 4",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer 4"
"@type": "Question",
"name": "Question 5",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer 5"
"@type": "Question",
"name": "Question 6",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer 6"
"@type": "Question",
"name": "Question 7",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer 7"
"@type": "Question",
"name": "Question 8",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer 8"
<!--FAQPage Code Generated by>

Copy this code to a clipboard because you’ll need it in step #5.

Step 4: Install Header and Footer Scripts WordPress Plugin

The next step does not require specialized expertise. Please find the best Header and Footer Scripts plugin and add it to your WordPress site.

Once you activate the plugin, you can add external code to your web pages without going to the Theme Editor.

Step 5: Add FAQ Schema JSON-LD code to WordPress

Open the WordPress visual editor and find the option “Insert Script to <head>” below the content area.

Insert Script to Head sectionPin
Insert Script to Head section

Finally, add the JSON-LD code in the script box and update the post.

Step 6: Validate the Web page URL Using Google’s Rich Results Test.

Although you have followed this article step-by-step, you must validate the web page URL using the Google Rich Results tool.

You’ll see a green tick mark on test completion if you’ve learned how to add FAQ schema in WordPress and implemented everything correctly. This tool will also show the SERP preview for the particular web page carrying the FAQ-containing rich snippets.

Google Rich Results Test FAQ SchemaPin
Google Rich Results Test FAQ Schema

Google’s Structured Data Testing tool is another tool to verify whether you’ve added FAQ schema correctly or not.

It shows the errors and warnings with respective solutions. Even a non-techy can find and fix the mistakes in schema markup.


Google seems to encourage structured data and reward the websites using schema markup.

Businesses that rely too much on SEO traffic should leverage this hack and add FAQ schema to the WordPress site.

Sometimes, making information directly accessible via the FAQ section may not lead to a website click.

However, by formatting your questions and answers smartly, you can entice users to click on your link and read more.

You are missing a lot by not leveraging this SEO hack. Grab this opportunity before your rival knows about it and beat them silently.

I really hope that you enjoyed this article and learned something new.

If you already know about it, please let me know how it’s working or share relevant case studies.

One more request,

Please share this guide with other WordPress users so that they can add FAQ schema to the WordPress website to receive the same perks as yours.


You May Also Like

Similar Posts


  1. If you use Elementor, here’s a free plugin that allows you to add and manage multiple FAQ schemas more efficiently.

    1. Ankit Main says:

      Hi Jason, thanks for creating a free FAQ plugin for Elementor users. However, this post was written for beginners who don’t use any premium plugins like Elementor.

  2. Sathish Arumugam says:


    I have tried implementing it and got superb results. I have done it for my 2 sites. But, within a very few days, it is not getting displayed. What might be the reason? Why it gets vanished with no ideas?

  3. Lawal Rahman says:


    Thanks for this great tip.

    Im currently working on how to implement FAQ schema on my site immediately after I saw this guide.

    But I’m a bit confused and I like to ask a question.

    You said we should add the FAQ schema code in the header of the website, so my question is if I have three different pages that need FAQ, do I need to always have to come to the header and add 3 different FAQ schema for page since each FAQ schema has different FAQs?

    If not, please tell me how to go about it.

    I will be glad if you answer my question.



    1. Ankit Main says:

      Hi Lawal,
      You can add FAQ schema in the header or the body part of a web page. If you have three different pages, then you can add FAQ schema for each page individually using the plugin I have mentioned here or any plugin that allows the same functionality.

  4. Ahmed Ejaz says:

    Is there any plugin to do this?

  5. Istiak Rayhan says:

    Hi Ankit,

    Good tutorial. Liked it.

    I just want to let you know that we have added FAQ Schema in ‘Ultimate Blocks’ plugin.

    It’s very easy to use. The FAQ Schema is available on ‘Content Toggle (Accordion)’ block.

    If possible, give it a try. You will like it.


    1. Ankit Main says:

      Sure. I’ll test and see how it works.

  6. Infonic Training says:

    Great post, the FAQ section is the best for increasing CTR.
    Thanks for sharing information and an easy way to implement it.

  7. Piyush Yadav says:

    Well written article brother. Loving it.

  8. Saijo George says:

    Hi Ankit

    I have built a handy FAQPage Schema Generator to quickly generate the JSON-LD code required to get these rich result on Google. >>

    Was wondering if you would consider including it as a resource in your post 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *