Frequently Asked Questions
The FAQ addon is quite simple to use. By default, there is no configuration at all. The questions are displayed using your theme’s default archive page, and single questions are displayed using your theme’s default single page.
However, if you want to customize the look of your FAQ, you can use the dedicated shortcode
The shortcode has a number of parameters available:
- limit (default 10): the number of questions to display
- before_title: something to display before the question title. The default is an H3 tag
- after_title: something to display after the title. The default closes the H3 tag
- before_answer: something to display before the answer. The default is a div
- after_answer: something to display after the answer. The default is a closing div
- cat: ID of categories to limit the questions to. Separate multiple categories IDs with a comma
Customizing the FAQ Page
If you wish to customize the FAQ page, there are two ways of doing it. Depending on if you’re a developer or not, you’ll chose the solution that suits you best.
If you’re not familiar with the templates hierarchy and don’t know how to write a theme template, this is the solution you wanna go for.
Assuming that your theme has several page templates available and you want to use one of these templates, you can do so by following those steps:
- Create a new page (you can call it Frequestly Asked Questions for instance)
- Select the appropriate page template
- In the content editor, paste the shortcode
FAQ Single Archive
The FAQ is a standard WordPress post type registered as
faq. This means that you can customize its archive page using the standard WordPress templates hierarchy.
Simply create a new file called
archive-faq.php in your theme and customize your archive from there. You can copy/paste
archive.php to use as a starter template.