Awesome Support Documentation

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

Examples

  • Show only entries from FAQ Category id 101:   [faq cat="101"]
  • Limit the number of articles shown to just 5: [faq cat="101" limit="5"]

Please notice that in order to restrict the shortcode to displaying just a single category, you have to use the WordPress category id, not the slug!  To locate the WordPress category id you can go to FAQs->CATEGORIES and hover over any of the categories.  The ID will be shown in the URL at the bottom of the browser. Or, if you click on the category, it will be shown as part of the URL in your browser bar.  Look for the part of the url that says tag_id=nnn where nnn will be the category id.