
Quickly add FAQ sections compatible with structured data to your site using simple shortcodes, improving your SEO.
FAQ Schema Shortcode is a WordPress plugin that allows you to easily add FAQ sections to your site using simple shortcodes. It automatically generates structured data (JSON-LD schema) for each FAQ, helping search engines better understand your content and improving your site’s SEO with rich results. By using the [faqs_dbm] and [faq_dbm] shortcodes, you can quickly create FAQs that are both user-friendly and SEO-friendly, enhancing your site’s visibility in search engines.
Example:
[faqs_dbm]
[faq_dbm q=”What color is the sky?” a=”Blue”]
[faq_dbm q=”What color is grass?” a=”Green”]
[/faqs_dbm]
Want to help? Submit a PR on Github.
Features
- [NEW] Content FAQs section within backend editor to add FAQs using HTML across all post types. (posts, pages, products, ect)
- Shortcode alias for when you do not have any other shortcodes using
[faqs] and [faq] then you can enable this feature in the settings.
- Customizable Question and Answer labels
- Accordion option to let users toggle FAQs open and closed
- Accordion background color, background hover color, and text color options
- Add additional CSS
Screenshots

Demo

General Settings

Appearance Settings

Advanced Settings
FAQ
What is the shortcode for displaying FAQs?
Use [faqs_dbm] as the container. Each FAQ can be a question block followed by an answer block:
[faqs_dbm]
[question_dbm]
What is this plugin for?
[/question_dbm]
[answer_dbm]
It helps you display FAQs with JSON-LD schema for SEO.
[/answer_dbm]
[/faqs_dbm]
You can also keep using one shortcode per FAQ:
[faqs_dbm]
[faq_dbm q=”What is this plugin for?” a=”It helps you display FAQs with JSON-LD schema for SEO.”]
[/faqs_dbm]
[question], `[answer]`, `[faqs]`, and `[faq]` do not work until Shortcode Alias is enabled. Until then, every tag needs the `_dbm` suffix.
Can I use a simpler shortcode like [faqs], [question], and [answer]?
Yes. Go to Settings > FAQ Shortcode and enable Shortcode Alias. That removes the need for _dbm, so [faqs_dbm] becomes [faqs], [question_dbm] becomes [question], [answer_dbm] becomes [answer], and [faq_dbm] becomes [faq]. Leave the option off if another plugin already uses those tag names.
How do I enable accordion functionality?
Go to Settings > FAQ Shortcode, and check the box labeled Accordion. This makes the FAQ entries collapsible and expandable.
How can I change the accordion colors?
In the settings page, you can set:
– Text color
– Background color
– Background hover color
Just enter valid HEX values (like #ff0000) for each.
Does this plugin add FAQ schema for SEO?
Yes! It automatically generates JSON-LD structured data so search engines like Google can understand and feature your FAQs.
Can I use HTML in the question or answer?
Yes, but it’s sanitized. Only the following tags are allowed in the answers:
– <a> with href, title, and target
– <strong>
– <em>
– <ol>
– <ul>
– <li>
How do I include a link?
You would simply replace the ” with ‘. This example uses _dbm because that is required unless Shortcode Alias is enabled.
[faqs_dbm]
[question_dbm]
How to include a link
[/question_dbm]
[answer_dbm]
Just like this
[/answer_dbm]
[/faqs_dbm]
ChangeLog
1.3.0
- Added: Improved shortcode structure. Your existing shortcodes will continue to work without any changes.
- Added: The new Content FAQs feature to add FAQs using HTML across all post types and also article categories and product categories.
1.2.0
- Added: Content FAQs to give all post types an editor in the backend where you can add FAQs using HTML.
- Added: Handling for updates
- Updated: Translations
1.1.1
- Bugfix: FAQ showing at top of content
1.1.0
- Added: Setting to customize the question label
- Added: Setting to customize the answer label
- Added: Setting to add additional CSS
- Added: Translation support
1.0.2
- Updated: FAQs to allow a, em, strong, ol, ul, li
1.0.1
- Added: Accordion option
- Added: Accordion text color option
- Added: Accordion background color option
- Added: Accordion background hover color option
- Bugfix: Extra line breaks
1.0.0