CM Answers Shortcode Example

Here is an example of how to embed a Shortcode of CM Answers inside a page or post. The Shortcode, in this example, can include any one of the following parameters

  • limit – number of questions to display (default: 5)
  • author – ID of the question author (default: empty)
  • cat – slug of category (categories separate by commas) (default: empty)
  • sort – one of following: newest, hottest, views, or votes (default: newest)
  • form – add “question form” below list (default: 0)
  • search – add “search form” above list (default: 1)

Here is a example with the following parameters limit=”10″ sort=”hottest” form=”1″ cat=”First” search=”1″

Votes
Answers
Views
Question
4
votes
4
answers
8176
views
asked 4 years ago by
updated 4 years ago by Sam Moog
Category: Films
♥ 1
no
votes
4
answers
5886
views
asked 4 years ago by
♥ 1
no
votes
4
answers
271
views
asked 2 years ago by
no
votes
4
answers
1189
views
asked 3 years ago by
Category: Article
2
votes
4
answers
5165
views
asked 4 years ago by
updated 3 years ago by Ditsa Keren
Category: Food
♥ 2
1
vote
4
answers
1154
views
asked 4 years ago by
updated 4 years ago by Sam Moog
Category: Food
♥ 1
2
votes
4
answers
1226
views
asked 4 years ago by
updated 4 years ago by Sam Moog
Category: Films
3
votes
4
answers
2759
views
asked 4 years ago by
updated 4 years ago by
♥ 1
1
vote
4
answers
1666
views
asked 4 years ago by
updated 4 years ago by
Tags:
no
votes
4
answers
2333
views
asked 4 years ago by
updated 4 years ago by