CM Answers (CMA) - Shortcodes - Using Shortcodes

Using Shortcodes

Back to User Guides

You can insert dynamic content on your WordPress website posts or pages by using the plugin's shortcodes. Note that they are always written between brackets [ ] and are case-sensitive.

The up-to-date list of all shortcode can be found in the plugin admin menu. 

Supported Shortcodes in Detail


Use: Shows the questions table.

Filtering parameters:
  • author - ID of the question author (default: empty) [Question only]
  • limit - number of questions per page to display, default is 5
  • contributor - ID of the question author or user who has answered for the question (default: empty) [Question only]
  • cat - slug of category (categories separate by commas) (default: empty)
  • answered - show only unanswered (0) or only answered (1) questions. Default: empty (all questions).
  • resolved - show only unresolved (0) or only resolved (1) questions. Default: empty (all questions).
  • subtree - limit the categories filter options only to subcategories of the current category given by the cat parameter (default: 0)
  • displaycategories - display category name next to the question (default: 0)
  • favorite - shows all questions (0) or only the questions favorited by the current user (1) or  (default: 0)
View parameters:
  • ajax - enable or disable AJAX support (default: 1)
  • sort - one of following: newest, hottest, views, votes (default: newest)
  • form - add "question form" (default: 0)
  • formontop - display the question form above the questions table (default: 0)
  • dateposted - display the thread posted date (default: 0)
  • showcontent - display the question's content below the title when showcontent=1 or fragment when showcontent=fragment (default: 0)
  • search - add "search form" above list (default: 1)
  • pagination - show pagination (default: 1)
  • hidequestions - hides the question list (default: 0)
  • votes - show the number of votes (default: 1)
  • views - show the number of views (default: 1)
  • answers - show the number of answers (default: 1)
  • updated - show the information about question's last update (default: 1)
  • authorinfo - show the infformation about question's author (default: 1)
  • statusinfo - show the information about question's status (default: 0)
  • tags - show questions' tags (default: 1)
  • navbar - show the full navigation bar (default: 0)
  • sortbar - show the sorting bar (default: 0)
  • scrollaftersearch - scroll to the top of the container after loaded new subpage (default: 1)

[cma-questions limit="10" author="123" sort="hottest" form="1"]


The forum category shortcode  [cma-questions cat="tooltipglossary" form="1" navbar="0" views="0" votes="0" updated="0" answers="0"] will result in:


Use: Shows the questions table. Works the same as the [cma-questions], but has different default values that come from the Index page settings.


Use: Shows current user's questions in the same way it's displayed on the contributor's page. It supports the same parameters as the [cma-questions] shortcode.


Use: Shows only the questions favorited by the current user. Effectively, the same as [cma-questions favorite="1"]


Shows the answers table

Filtering parameters:
  • author - ID of the answer author, its required
  • limit - number of results per page to display, default is 5
View parameters:
  • ajax - enable or disable AJAX support (default: 1)


Use: Shows current user's answers in the same way it's displayed on the contributor's page.

Supported parameters:
  • ajax - enable AJAX support so clicking on the question won't reload the current page.


Use: Shows the categories table.


  • questions - shows number of questions
  • unanswered - shows unanswered questions number
  • answers - shows number of answers
  • follow - adds the Follow/Unfollow button for each category
  • header - shows table header
  • parent - shows only subcategories of given parent category (slug or ID)


[cma-categories questions=1 answers=1 follow=1 header=1 unanswered=1 parent=category experts=0]


Use: Shows the categories list


  • view - write "accordion" to show the accordion view. 




[cma-categories-list view="accordion"]


Use: Shows current user's followed threads and categories.


Use: Shows the question form

  • cat - (optional) category's slug or term ID that the question will be posted to.
  • title - show title or not. Values: 0 or 1, default is 0.
  • backlink - show the back link or not. Values: 0 or 1, default is 1.


Use: Shows questions divided by categories.

  • showquestions - whether to show the questions. Values are 0 or 1, default is 1.
  • questionslimit - limit number of questions.


Use: Returns "author" parameter from URL. E.g. if the URL is/custom-user-page/?author=123, the shortcode will return 123. 

May be used combined with the  [cma-questions] or [cma-answers] shortcodes in order to create a custom contributor's page.

[cma-questions author="[cma-get-param-author]"]
[cma-answers author="[cma-get-param-author]"]


Use: Displays a link that allows the user to delete all questions and answers.

Note: This feature is relevant to GDPR compliance. Learn more: User Data Privacy and GDPR Compliance

Attaching YouTube and Vimeo clips

To attach a YouTube or Vimeo clip to the thread, just put the URL in brackets. 



Get more information about the CM Answers WordPress Plugin

Find other WordPress products at the CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

Visit our support center to open a Support Ticket