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 with 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 decided to write a step-by-step article on this topic.

In May 2019, Google announced support for FAQ and How-to structured data on Google Search as well as 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 contents.

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

In this article, you will learn how to add FAQ schema in WordPress website and validate 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 in 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 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 FAQPage markupPin
Content Guidelines for FAQPage markup

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

Step 2: Choose Proper Layout for FAQs

Since FAQ content needs to be accessible for 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 need to ensure that the questions and answers in JSON-LD FAQ schema are the exact copy of FAQs appearing on the webpage.

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

<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. Find the best Header and Footer Scripts plugin and add to your WordPress site.

Once you activate the plugin, you can add external code in 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.

how to add faq schema in wordpressPin
Insert Script to <head>

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

Step 6: Validate 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.

If you’ve learned how to add FAQ schema in WordPress and implemented everything correctly, then you’ll see a green tick mark on completion of the test. This tool will also show the SERP preview for the particular web page carrying the FAQ rich snippet.

Google Rich Results TestPin
Google Rich Results Test

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 be encouraging the use of structured data and rewarding the websites that are using schema markup.

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

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

However, 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 in WordPress website to receive the same perks as yours.


You May Also Like

21 Secrets of SEO Link Building with SEMrush You’ve Never Heard Before!

Rank Math SEO Plugin Review + Best Settings for WordPress SEO

SEMrush Free Trial | SEMrush Pro Account FREE for 14 Days

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.


  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.