How are questions sorted in the FAQ shortcode?

By default, questions are sorted by their title, in ascending order. The FAQ shortcode supports the ‘order’ and ‘orderby’ attribute to customize the sort order.

The ‘order’ attribute value may be:

  • ASC
  • DESC

The ‘orderby’ attribute value may be:

  • none
  • name
  • author
  • date
  • title
  • modified
  • menu_order
  • parent
  • ID
  • rand
  • relevance
  • comment_count

For example, to sort FAQ questions by their Question Attributes order number:

[faq id="123" order="ASC" orderby="menu_order"]