Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
30 Million+
Websites using our plugins
20+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add FAQ Schema in WordPress (2 Methods)

If you’ve added FAQs to your content, there’s a good chance Google is reading them as plain text instead of recognizing them as questions and answers.

FAQ schema fixes that. It labels your questions and answers in a way, so search engines as well as AI tools like ChatGPT and Google’s AI Overviews can read and cite them accurately.

In this guide, we’ll show you how to add FAQ schema in WordPress, no coding required.

How to Add FAQ Schema in WordPress (2 Methods)

What Is FAQ Schema and Why Use It?

FAQ schema is a smart markup code, also known as structured data, that helps search engines and AI models easily identify your FAQ section.

It marks each question and its matching answer directly in your page’s code, giving your content a better shot at being cited in Google’s AI Overviews, the “People also ask” box, and AI tools like ChatGPT.

Here’s an example of an AI Overview citing FAQ content:

Example of Google AI Overview citing FAQ content

And here’s what it can look like in the “People also ask” box:

Example of FAQ schema appearing in People also ask boxes

With that said, let’s jump into the tutorial.

Method 1: Add FAQ Schema in WordPress With a Plugin (No Code)

The easiest way to add FAQ schema is to use an SEO plugin like All in One SEO (AIOSEO) or Yoast SEO. We use AIOSEO here at WPBeginner, and it remains our top pick for this.

Its schema generator now uses AI to build your FAQ schema markup for you instead of making you fill out every field by hand.

First, you need to install and activate the All in One SEO plugin. For detailed instructions, see our guide on how to install a plugin in WordPress.

ℹ️ Note: There’s a free version of AIOSEO, but FAQ schema itself, both the AI generator and the manual builder covered below, requires AIOSEO Pro (Basic plan or higher).

Upon activation, the plugin will run a setup wizard. You can follow the easy on-screen instructions to set it up correctly. If you need more help, then take a look at our guide on how to properly set up All in One SEO for WordPress.

AIOSEO Setup Wizard

Once the plugin is set up, simply open the page or post where you want to add FAQ schema.

Next, scroll down to the bottom of the content editor, where you will see the AIOSEO Settings panel. Then, click on the Schema tab.

After that, click the Generate Schema button to open the Schema Generator popup.

Click the Generate Schema button in AIOSEO Settings panel

From here, you can either let AI build the schema for you or fill it in yourself. We’ll cover both.

Option A: Generate FAQ Schema With AI

In the Schema Generator popup, switch to the AI Schema tab.

If your page already has an FAQ section written out, click the Smart Schema option. Then, click the Generate Schema button.

AIOSEO will scan your existing content and pull the questions and answers straight from the page, so there’s nothing to type or describe.

Select the smart schema option to automatically create FAQ schema from your post

If you don’t have a frequently asked questions section written out yet, or want a say in exactly which questions show up in your FAQ schema, click Prompt-Based Schema instead.

Just describe what you want in a short prompt, such as “Create an FAQ schema with 5 questions about [your topic],” and AIOSEO writes the questions and answers for you from scratch.

Prompt-based schema in All in One SEO

After clicking the Generate Schema button for either the Smart Schema or Prompt-Based Schema option, AIOSEO returns its suggested FAQ schema in a list with a checkbox next to it.

Click the arrow to expand it and see the actual JSON-LD code it generated, so you know exactly what you’re publishing.

Once you’re happy with your FAQ schema, click Add Schema to save it to your page.

Click the Add Schema button to add the FAQ schema to your page

Don’t forget to click Update or Publish on the post or page itself, or the schema won’t actually go live.

Option B: Build FAQ Schema Manually

If you’d rather skip the AI and enter your FAQs yourself, you can use AIOSEO’s Schema Catalog instead.

From the Schema Generator popup, click the Templates tab. Then, find FAQ in the catalog and click the Add Schema button next to it.

Click the FAQ option in the schema templates catalog

After that, you can start entering your FAQ information.

First, add a name and description for your page or post. AIOSEO allows you to copy these easily from your post content using tags.

Add name and description for FAQ schema

Then, scroll down to add your first question and answer in the Question and Answer fields.

You can click the Add Another Question button to add as many FAQs as you need.

Write FAQs in All in One SEO

Once you’ve added all your questions, click the Add Schema button to save it to your page. And don’t forget to update or publish the page / post to make it live.

That’s it! If you want to test whether your FAQ schema markup is correctly added, then scroll down to our section on how to test your WordPress FAQ schema.

Method 2: Add FAQ Schema in WordPress With Code

If you prefer working with code snippets, WPCode‘s free schema generator is a great way to add FAQ schema in WordPress.

While you can add code snippets directly to your WordPress theme files, a tiny mistake can easily break your site. Plus, your code snippet won’t be preserved if you ever switch or update your theme.

This is why we use and recommend WPCode, a free code snippets plugin that lets you add custom code to your site safely, without editing your theme files. Its schema generator covers FAQ schema, along with several other schema types.

To get started, you need to install and activate the free WPCode plugin. For step-by-step instructions, see our guide on how to install a WordPress plugin.

Once the plugin is activated, go to the Code Snippets » Add Snippet page and then switch to the Snippet Generators tab.

From there, select the FAQ Schema option from the list of generators.

Select FAQ Schema from WPCode's snippet generators

Next, in the FAQ Schema Generator, click over to the FAQ Details tab.

Now, you can enter your first question and its answer. Click Add Another FAQ Item to add as many questions as you need.

Write questions and answers in WPCode's FAQ schema generator

Once you’ve added all your FAQs, click the Update Code button to generate the schema.

Then, you can scroll down to preview the code. If everything looks good, then click Use Snippet to load it into the WPCode snippet editor.

Click the Update Code button and then the Use Snippet button

Here’s what the finished JSON-LD should look like, so you know what correct output looks like.

This example only has one question, but if you added more, you’d see another "Question" and "acceptedAnswer" pair for each one, stacked inside the same "mainEntity" list:

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What is FAQ schema?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "FAQ schema is structured data that marks up a list of questions and answers so search engines can understand them."
      }
    }
  ]
}

After clicking the Use Snippet button, you’ll be taken to the code editor screen.

From here, you can make any changes to the code if you need to.

Edit snippet screen in WPCode

Next, scroll down to the Insertion section to select where the schema markup will be inserted on your site.

By default, WPCode will insert the code in the Site Wide Header of your website, but you will have to use smart conditional logic to control exactly where it shows up.

Scroll to the Smart Conditional Logic section and toggle Enable Logic.

Choose Show, set the conditions to Page URL, choose Is from the match type, and enter the URL of the page you want it on.

Add schema to a specific page using smart conditional logic

When you’re done, simply scroll to the top and switch the toggle to make the schema markup Active.

After that, click the Update button to make it live on your WordPress site.

Activate and update the FAQ schema snippet

That’s it, you’ve successfully added FAQ schema to your website.

Testing Your WordPress FAQ Schema

Since FAQ schema is code meant for search engines, you can’t tell if it’s working just by looking at your page.

To test whether your FAQ schema markup is correct, you can use Google’s Schema Markup Validator. Simply enter the URL of the page with your FAQ schema and click Run test.

Use the schema markup validator to  test your FAQ schema

The validator will analyze your page for all kinds of schema markup, not just FAQ schema. So, you may see multiple results if your page uses other kinds of schema.

Once the test is complete, expand the results under the “FAQ” heading to see the question-and-answer pairs it detected.

Expand the schema validator FAQ results

If your questions and answers show up correctly here, your schema is technically valid.

It just confirms that search engines and AI tools can read your FAQ content accurately.

FAQ schema test results

If the results aren’t correct, then you will need to go back and double-check that you set up your FAQ schema properly.

And if everything looks right but the validator still isn’t picking it up, we recommend clearing your WordPress cache because caching plugins may show an outdated version of your page.

Frequently Asked Questions About FAQ Schema

We often hear from users who want to know more about how structured data works. Here are answers to some of the most common questions we see regarding FAQ schema.

1. Can I include links inside the FAQ answers?

Yes, Google supports HTML inside the answer field of the FAQ schema. This means you can add internal links to other posts or external links to resources directly within your answer text.

2. Is FAQ Schema different from Q&A Schema?

Yes, they are different. You should use FAQ schema when your page contains a list of questions and answers written by the site owner. You should use Q&A schema (QAPage) when users can submit answers to a specific question, like on a support forum or community board.

3. Can I use FAQ schema for questions hidden in an accordion?

Yes, it is acceptable to use FAQ schema for content inside click-to-expand accordions or tabs. The most important rule is that the content in your schema markup must match the text that is actually available to the user on the page.

We hope this article helped you add FAQ schema in WordPress. You may also want to see our ultimate WordPress SEO guide to improve your rankings.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

17 CommentsLeave a Reply

  1. Since my SEO plugins are in free versions, they don’t include these markup schemas or their use. It’s quite nice that you provided a guide on how to create it manually. Using an online generator and then the block editor seems like a good alternative when the SEO plugin doesn’t allow it due to a lack of license. It also seems to take a similar amount of time. It’s great that there’s always an alternative way to do it for free.

  2. I’ve been wanting to enhance my WordPress site’s SEO and user experience, and adding FAQ schema was the missing piece. Your step-by-step guide made it easy to implement, and I appreciate the explanations of the benefits and best practices. Your tip on using the Rich Snippets plugin was especially helpful. Thanks for helping me improve my site’s search engine appearance and provide a better experience for my visitors

  3. Is there a chance that if I include FAQs in my articles, Google will use them without resorting solely to markup? I typically use FAQs in accordion form using Elementor on my website. I’m curious whether Google can use this format as well, or is it just wishful thinking that it might work this way.

    • There is a chance but you would be relying on Google understanding the content. Adding the markup specifically tells search engines the type of content that it is.

      Admin

  4. So if I understand correctly this FAQ schema is for Google and normal FAQ is for our website right?
    Does it matter if FAQ on the website is longer and FAQ schema is shorter? Or should it be the same to avoid some kind of punishment from Google?
    I always thought that Google pull info from the website itself and it is not seperate FAQs.

    • It should not matter too much if the schema is not 100% the same between the two. For the information itself, Google can crawl some information but without the schema there is no guarantee that it will see an FAQ as an FAQ.

      Admin

  5. I tried method 2. It is ok on Google however the FAQs are not displaying on my page. Shouldnt they show on the page?

    • The Schema markup is for search engines to understand the FAQ for a post or page, if you wanted your users to see a FAQ section you would need to add that to your content.

      Admin

    • The most common reason for that would be if you have a caching plugin to clear any caching.

      Admin

  6. Cool Video tutorial thanks. I tried to add Schema to a category page. but the “script” tags are always removed and there is no block editor. Do you have an Idea how to solve it?

    • For the category pages, we would recommend using a plugin for that markup as adding it manually would require you to edit your theme’s template files which would require some coding knowledge.

      Admin

  7. Hi great tutorial. I just upgraded to AIOSEO (paid). I have posts that have many questions and answers within the post.

    I was wondering when it comes to the number of questions to add to the FAQ schema any how many should you add? Or does it matter?

    Thanks
    Leo

    • As long as it adds value then you can add as many questions and answers to your FAQ that you would like :)

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.