GeneratePress Black Friday Sale Now ON! $59.99 $44

  1. Home
  2. /
  3. Blog
  4. /
  5. Genesis Simple FAQ plugin
  6. /
  7. Shortcodes for the Genesis...

Shortcodes for the Genesis Simple FAQ plugin

The Genesis Simple FAQ plugin uses a simple shortcode to display your FAQ questions…

[gs_faq]

This shortcode displays every FAQ question you’ve made. See a sample FAQ list here.

If necessary you can add some parameters to this shortcode giving you more control over the output.

The parameters

  • The id parameter: each FAQ question has an id number.
  • The cat parameter: each FAQ category has a cat number.
  • The limit parameter: limits the number of FAQs displayed by a specific shortcode.

You can use id and cat parameters singularly or add comma separated list to the id or cat parameters to build custom FAQ lists.

Displaying a single FAQ question

The shortcode with a single id parameter added looks like this…

[gs_faq id=”12″]

This shortcode will display just one FAQ question, the question with the id of 12.

To find an id number go to Dashboard > Simple FAQs > All FAQs

Displaying a few specific FAQ questions

To do this we use a comma separated list of FAQ ids

The shortcode with a comma separated list of ids looks like this…

[gs_faq id=”12, 16, 22, 34″]

This shortcode will display the FAQ questions that have the ids of 12, 16, 22 and 34.

To find an id number go to Dashboard > Simple FAQs > All FAQs

Finding multiple id numbers in the Genesis Simple FAQ plugin
Finding multiple id numbers in the Genesis Simple FAQ plugin

Displaying all FAQ questions from a specific FAQ category

This shortcode will display every FAQ question that you placed in a single category. The number in the shortcode is the number of the chosen category.

[gs_faq cat=”10″]

You can use comma separated lists of categories if needed. The numbers are the numbers of the specific categories you want to display.

[gs_faq cat=”4, 5, 7″]

Finding the FAQ category numbers

Finding the FAQ category numbers
Finding the FAQ category numbers

Limiting the output to a specific number of FAQ questions

If you’ve made a lot of FAQ questions but only want to display the first ten, for instance. You can add the limit parameter to the shortcode.

[gs_faq cat=”10″ limit=”5″]

No matter how many FAQ questions are in this category, only the first 5 will display. Because we used the limit= parameter.

Where do you find the id and cat numbers?

To find the shortcode, including the id for a specific FAQ question…

  • Go to Dashboard > Simple FAQs > All FAQs.
  • Look under the Shortcode column.

You can find the shortcode needed to display any category by going to…

  • Dashboard > Simple FAQs > Categories
  • Then, look under the shortcode column