wprichsnippets
Guide · WordPress · How-tosCERT No. WP R008

How to Add FAQ Schema in WordPress, and What It Still Does

Schema type
FAQPage Question Answer
Checked against
Google Search Central changelog, WordPress block editor handbook and schema.org, read November 2026
Author
The wprichsnippets.com editors
Published
Updated
Direct answerField 01

Google stopped showing FAQ rich results on 7 May 2026, so FAQ schema no longer changes how a WordPress page looks in Google. You can still add it with an FAQ block from an SEO plugin, or with a short mu-plugin that builds FAQPage from Details blocks. Keep the visible questions; they help readers either way.

56 wordsUpdated November 30, 2026
FeatureFig. 01
A row of folded question cards in a tray, one unfolded to show its answer, with an empty search result frame beside them
The questions stay on the page. Since May 2026 the search result no longer expands them.

01Does FAQ schema still do anything in 2026?

Before deciding how to add FAQ schema in WordPress, start with the date. Google stopped showing FAQ rich results on 7 May 2026. Its Search Central documentation changelog records a deprecation notice added on 8 May 2026, and on 15 June 2026 it removed the FAQ rich result documentation because the feature is no longer shown in Google Search results. The old documentation URL now redirects to that changelog entry.

FAQ schema is structured data using the schema.org FAQPage type to mark up questions and the site's own answers. It is still valid vocabulary: schema.org defines FAQPage as a WebPage presenting one or more frequently asked questions. What changed is that Google no longer turns it into expandable questions under your result.

This guide covers how to add FAQ schema in WordPress if you still want it, and how to decide whether you do. For the full history of the 2023 cuts and what happened to HowTo, see our guide to FAQ and HowTo schema after the cuts.

02Should you still add FAQ schema?

Weigh it as plain description, not as a search feature. Google's guide to optimizing for generative AI search says structured data is not required for its generative AI features and that there is no special schema.org markup to add, while recommending structured data for rich result eligibility. FAQ is no longer one of those rich results.

Keep, add or remove FAQPage markup
SituationRecommendationWhy
Markup already in place and accurateKeep itIt is valid, describes visible content and costs nothing to leave
New page with a real FAQ sectionOptionalNo Google rich result; add it only if your setup makes it free
Questions written only to carry markupRemove the questions and the markupContent that exists for markup helps no reader
Markup with questions not shown on the pageRemove the markupMarkup must describe visible content

The visible questions are a separate decision, and usually a good one. Short, direct answers under question headings are easy for readers to scan, whatever happens to the markup.

03How to add FAQ schema in WordPress: three routes

Three ways to add FAQ schema in WordPress
RouteVisible contentMarkupTrade-off
Core Details blockYes: each block is one question with a hidden answerNone on its ownClean content; needs a plugin or code for markup
FAQ block from an SEO pluginYesFAQPage, usually merged into the plugin's graphEasiest; tied to that plugin
Details blocks plus a small mu-pluginYesFAQPage built from the blocksNo extra plugin; you maintain the code

The WordPress core blocks reference lists the Details block, core/details, as a block to hide and show additional content. Its summary line is the question and its inner blocks are the answer, which makes it a natural container for a FAQ, but it prints only HTML. Several SEO plugins ship their own FAQ block that prints FAQPage; check the plugin's documentation and your page source to see what it outputs.

04Step by step: FAQ schema from Details blocks

  1. Add a Details block for each question. Type the question in the summary line.
  2. Put the answer in the block's inner content as one or more paragraphs.
  3. Save the snippet below as a file in wp-content/mu-plugins/.
  4. View the page source, search for FAQPage and confirm there is exactly one.
  5. Paste the printed JSON into the Rich Results Test code tab or a schema validator to check the syntax. Do not expect an FAQ rich result preview.
Example 1 · PHP: FAQPage built from top-level Details blocksPHPDisplay only
1<?php2/**3 * Plugin Name: Example FAQPage from Details blocks4 * Description: Builds FAQPage markup from top-level Details blocks in a post.5 */6add_action( 'wp_head', function () {7	if ( ! is_singular() ) {8		return;9	}10	$items = array();11	foreach ( parse_blocks( get_post()->post_content ) as $block ) {112		if ( 'core/details' !== $block['blockName'] ) {13			continue;14		}15		// The question lives in the block's <summary> element, not in its attributes.16		if ( ! preg_match( '#<summary[^>]*>(.*?)</summary>#s', $block['innerHTML'], $m ) ) {217			continue;18		}19		$answer = '';20		foreach ( $block['innerBlocks'] as $inner ) {21			$answer .= ' ' . wp_strip_all_tags( render_block( $inner ) );22		}23		$items[] = array(24			'@type'          => 'Question',25			'name'           => wp_strip_all_tags( $m[1] ),26			'acceptedAnswer' => array( '@type' => 'Answer', 'text' => trim( $answer ) ),27		);28	}29	if ( ! $items ) {30		return;31	}32	$data = array(33		'@context'   => 'https://schema.org',34		'@type'      => 'FAQPage',35		'mainEntity' => $items,36	);37	echo '<script type="application/ld+json">' . wp_json_encode( $data ) . '</script>' . "\n";338} );
  1. 1Line 11parse_blocks reads the post's blocks, top level only
  2. 2Line 16the summary attribute is stored in the HTML, so it is read from innerHTML
  3. 3Line 37wp_json_encode keeps quotes and slashes valid

The snippet reads only top-level Details blocks, so a Details block nested in a column is skipped. That is deliberate: it keeps unrelated toggles, such as a hidden spoiler, out of the markup. If you need nested blocks, walk innerBlocks recursively.

Here is what it prints for a page with two questions, with example values:

Example 2 · the FAQPage JSON-LD the snippet printsJSON-LDDisplay only
1{2  "@context": "https://schema.org",3  "@type": "FAQPage",4  "mainEntity": [15    {6      "@type": "Question",7      "name": "How long does delivery take?",8      "acceptedAnswer": {9        "@type": "Answer",10        "text": "Orders ship within two working days from the Example warehouse."11      }12    },13    {14      "@type": "Question",15      "name": "Can I return an item?",16      "acceptedAnswer": {17        "@type": "Answer",18        "text": "Yes, within 30 days, using the label included with the order."19      }20    }21  ]22}
  1. 1Line 4one Question object per Details block

05How do you combine FAQ and WebPage schema?

FAQPage is a subtype of WebPage, so a page should not normally carry both as two separate page-level objects. Most SEO plugins print a WebPage node in their graph. You have two clean options.

  • Let the plugin do it. Some plugins' FAQ blocks add the questions to the WebPage node already in their graph, which avoids a second page object. Check your page source to see whether yours does.
  • Print FAQPage separately and accept two nodes. A standalone FAQPage block with its own questions is valid JSON-LD; it simply describes the same page twice. Give both the same url so a reader of the data can tell they match.

If you are unsure what your plugin prints, our schema plugin audit shows how to read the graph in 15 minutes.

06Cleaning up FAQ markup added for the old rich result

Plenty of WordPress sites added FAQ sections while the rich result still earned extra space in Google. With the rich result gone, those sections deserve the same test as any other content: would a reader miss them?

  1. List the pages that print FAQPage. A site crawl filtered on the text FAQPage in the source finds them, or the plugin's own list of pages using its FAQ block.
  2. For each page, read the questions as a visitor would. Keep the ones that answer something the page does not already say.
  3. Delete questions that repeat a heading, restate the product name or exist only to hold a keyword.
  4. Where you keep questions, keep the markup if it is already accurate; there is no need to strip valid FAQPage from a useful section.
  5. Recheck the page source afterwards so no FAQPage remains that describes deleted questions.

This is an editorial clean-up, not a technical emergency. Nothing in Google's changelog says leftover FAQ markup causes harm, so work through the pages with the most traffic first and leave the rest for routine edits.

07What about HowTo, and the old FAQ rules?

HowTo rich results were retired in 2023, and the documentation for them was removed then. The content rules that used to govern FAQ markup no longer have a Google feature attached, but the general structured data guidelines still apply to any markup: describe only content that is visible, keep it relevant to the page and keep it accurate.

If you added FAQ blocks to many pages purely for the old rich result, now is a good time to review them. Remove any that repeat the page or answer questions nobody asks. Our walkthrough of rich snippets in WordPress covers the features that do still produce results, and the WordPress section lists every guide on adding and testing markup. For the basics, start with structured data for WordPress publishers on the home page.

08Questions

Q1When did Google stop showing FAQ rich results?

Google's documentation changelog says the FAQ rich result would no longer appear in Google Search starting 7 May 2026. A deprecation notice was added on 8 May 2026, and the FAQ documentation was removed on 15 June 2026 because the feature is no longer shown.

Q2Will FAQ schema hurt my site now?

Nothing in Google's changelog says FAQPage markup is penalized. It no longer produces a rich result, so accurate markup that matches visible questions is harmless. Markup describing questions that are not on the page breaks the general guidelines, with or without a rich result.

Q3Do AI answers need FAQ schema?

Google's generative AI optimization guide says structured data is not required for its generative AI features and that no special schema.org markup is needed. Clear questions and direct answers in the visible text are what readers, and any system quoting the page, actually see.

Q4Is the Details block good for SEO?

The Details block is a core WordPress block that hides and shows content, and it prints plain HTML that crawlers can read. It does not add markup by itself. Its value is a tidy, accessible FAQ layout; any FAQPage markup has to come from a plugin or code.

09Sources

  1. FAQPageschema.org
  2. Core Blocks ReferenceWordPress Block Editor Handbook