Extending the discussion_topics shortcode

Replies
0
Voices
1
Freshness
Followers

0

You can add some more parameters to your shortcode in the Pro version.

<article id="post-370" class="post-370 post type-post status-draft format-standard hentry category-pro category-shortcodes ast-article-single remove-featured-img-padding">
<div class="ast-post-format- ast-no-thumb single-layout-1 ast-no-date-box">
<div class="entry-content clear">

You can use freshness in the orderby parameter to order your topics according to how recently they were updated – either posted or commented on.

You can add freshness to the cols parameter to include freshness in the table of topics.

You can also specify which categories to list by specifying the term_id for the categories in a comma-separated list. You can find the term_id by going to your dashboard then Topics > Topic Categories and hovering over the category you wish to include. The term_id is revealed in the URL.

Remember: you might need to enable categories in Discussion Board > Settings > Categories.