FAQ
The FAQ shortcode for WordPress can be used to display a Frequently Asked Questions section within content, with a proper Schema markup JSON-LD which can help improve visibility in both search engines and AI overviews/search results (in ChatGPT, Perplexity etc.). Because AI powered search operates rather as a Question and Answer, this FAQ markup can get your website content easier in AI results. Please note that inclusion is such results is not guaranteed, but the Schema markup is a must for inclusion. Therefore, the FAQ shortcodes from our plugin can help both Search Engine Optimization (SEO) and Answer Engine Optimization (AEO) – the foundation for showing up in AI responses. The FAQ is displayed similarly to the Spoilers Accordion, in an interactive manner, offering a smooth visual transition when going through each question and answer. Check below for example implementations and shortcode documentation:
FAQ Examples
FAQ Shortcodes
[x3m-faq]
[x3m-spoiler title="Question 1" open="yes" background="#f5f5f5" textcolor="black" radius="10px"]
Answer 1.
[/x3m-spoiler]
[x3m-spoiler title="Question 2" open="no" background="#f5f5f5" textcolor="black" radius="10px"]
Answer 2.
[/x3m-spoiler]
[x3m-spoiler title="Question 3" open="no" background="#f5f5f5" textcolor="black" radius="10px"]
Answer 3.
[/x3m-spoiler]
[/x3m-faq]FAQ Documentation
Here are the shortcode option settings available for FAQ:
| Shortcode Settings | Details |
|---|---|
| title=”Question” | This is used to set question on each individual spoiler. |
| open=”no” | This is used to set spoiler to be open or not on page load. Available options: – “no” for having the spoiler closed – “yes” for having the spoiler open |
| background=”#f5f5f5″ | This is used to set the background color of the spoiler container.
Color names or HEX color codes can be used to set the desired color. |
| textcolor=”black” | This is used to set the text color for the spoiler title.
Color names or HEX color codes can be used to set the desired color. |
| radius=”10″ | This is used to set corners’ radius of the spoiler container, making them rounder or sharper. |
| answer | The answer should be provided inside the [ x3m-spoiler] answer here [ /x3m-spoiler] shortcode. |