FAQ Shortcode Documentation

FAQ Manager With Structured Data plugin adds a wpt_faqs shortcode. The shortcode lists FAQs.

The shortcode provides attributes that helps to filter and style the FAQ items.

It provides 3 pre-built style presets (2 of them are premium). It also provides 5 icon sets (4 of them are premium)

Pre-requisites

  1. A WordPress website
  2. FAQ Manager With Structured Data plugin

Tools

  1. Computer
  2. Text Editor

Total Duration : 5 minutes

Add FAQ data in WordPress admin

Add FAQ data in WordPress admin
  1. Add, categorize and order the faq items in your WordPress admin. For details follow this guide

Shortcode attributes

Shortcode attributes
  1. css_id : id attributes value for the main wrapper. Default is wpt-faqs
  2. css_classes: class attributes values for the main wrapper. Class wpt-faq-accordion gets appended to these values. Default is empty string.
  3. post__in : Comma separated ID'of the FAQ items. Shortcode displays these FAQs. Premium feature
  4. post__not_in : Comma separated ID'of the FAQ items. Shortcode excludes these FAQs. Premium feature
  5. filter_by_categories : Enable/disable filtering by categories. 1 means enable and 0 means disable. Default is 0. Premium feature
  6. categories : Comma-separated FAQ category IDs. Shortcode fetches FAQs belonging to these categories. Default is empty string. Premium feature
  7. category_name_html_tag. HTML tag name for the category name. Default is h3. Premium feature
  8. faqs_per_page : Number of FAQs to fetch per query. Integer value. Default -1 fetches all.
  9. group_by_categories : 1 groups FAQs by categories while 0 shows all the FAQs ungrouped. Default is 0. Premium feature
  10. orderby : Orders the FAQs by given field. Default is date. Refer to this documentation for details.
  11. order : Designates the ascending (ASC) or descending (DESC) order of the ‘orderby‘ parameter. Default is ASC
  12. expand : A value of 1 expands all FAQs initially. A value of 0 restricts the FAQ list to expand one FAQ item at a time.
  13. can_open : Available values are one and many. Defines how many FAQs can be open at a given time.
    • A value of one restricts the FAQ list to open one FAQ at a time. A value of many allows to open as many FAQs.
    • When expand is set to 1, can_open value is set to many
  14. icon_placement : Defines the icon placement. Default is left
    • none hides the icon.
    • left aligns the icon to the left.
    • right aligns the icon to the right.
  15. icon_set : Defines the icon set to use. Default is plus-minus. Available sets are:
    • plus-minus
    • single-chevron (premium)
    • double-chevron (premium)
    • plus-minus-circle (premium)
    • plus-minus-square (premium)
  16. icon_color_open - Color of the icon when FAQ is open. Default is #4c8bf5
  17. icon_color_close - Color of the icon when FAQ is close. Default is #4c8bf5
  18. question_text_color_close : Color of the question text when FAQ is close. Default is #2f3b48
  19. question_text_color_close : Color of the question text when FAQ is close. Default is #2f3b48
  20. style_preset: Pre-built style presets for the FAQ listing. Default value is default. Available presets
    • default
    • premium1 (premium)
    • premium2 (premium)