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.
[faqs_dbm]
[faq_dbm q="What color is the sky?" a="Blue"]
[faq_dbm q="What color is grass?" a="Green"]
[/faqs_dbm]
- 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
- Add accordion functionality for FAQ sections.
- Backup your WordPress site.
- Upload the plugin files to the
/wp-content/plugins/directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
Use [faqs_dbm] as the container shortcode and [faq_dbm q="Your question?" a="Your answer."] for each individual FAQ item. Wrap the individual items inside the container like this:
[faqs_dbm]
[faq_dbm q="What is this plugin for?" a="It helps you display FAQs with JSON-LD schema for SEO."]
[/faqs_dbm]
Yes, enable the "Shortcode Alias" option in the plugin settings. This will allow you to use [faqs] and [faq] instead of the default [faqs_dbm] and [faq_dbm].
Go to Settings > FAQ Shortcode, and check the box labeled Accordion. This makes the FAQ entries collapsible and expandable.
In the settings page, you can set:
- Text color
- Background color
- Background hover color
Just enter valid HEX values (like#ff0000) for each.
Yes! It automatically generates JSON-LD structured data so search engines like Google can understand and feature your FAQs.
Yes, but it's sanitized. Only the following tags are allowed in the answers:
<a>withhref,title, andtarget<strong><em><ol><ul><li>
You would simply replace the " with ' [faqs] [faq q="How to include a link" a="Just like this"] [/faqs]
- Bugfix: FAQ showing at top of content
- Added: Setting to customize the question label
- Added: Setting to customize the answer label
- Added: Setting to add additional CSS
- Added: Translation support
- Updated: FAQs to allow a, em, strong, ol, ul, li
- Added: Accordion option
- Added: Accordion text color option
- Added: Accordion background color option
- Added: Accordion background hover color option
- Bugfix: Extra line breaks
- Initial release.


