Documentation: Extensions: FAQ

Extensions: FAQ

Dated: 04 Sep 2016

Frequently Asked Questions Shortcode #

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 [faq].

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. The solution that is right for you will depend on whether or not you’re a developer.

Page Template

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:

  1. Create a new page (you can call it Frequestly Asked Questions for instance)
  2. Select the appropriate page template – most full-featured themes have an option for this in a metabox on the right side
  3. In the content editor, paste the shortcode [faq]

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.

Help Guide Powered by Documentor
Suggest Edit