Topic Box

Topic Box shortcode is used in single post page, the code have structured as follows.

[ct_topic title="" alignment="" count="" condition="" order="" cats="" tags="" ids="" featured=""]

The [ct_topic] shortcode has the following variables/options

  1. title – text – heading title of the box. If empty, heading should be hidden
  2. alignment – select box alignment, right or left
  3. count – number – number of items to query
  4. condition – select – condition to query items
    • latest – order by published date
    • view – order by most viewed posts
    • like – order by most liked posts
    • comment – order by most commented posts
    • title – order by title alphabetically
    • input – order by input IDs (only available when using ids parameter)
    • random – order randomly
  5. order– select
    • asc – Ascending
    • desc – Descending
  6. cats– mix – list of categories (ID) to query items from, separated by a comma. For example: 1, 2, 3
  7. tags– mix – list of tags to query items from, separated by a comma. For example: tag-1, tag-2, tag-3
  8. ids– mix – list of post IDs to query, separated by a comma. If this value is not empty, cats, tags and featured are omitted
  9. featured– 1/0 – choose yes (1) to only query featured posts (posts having metadata as Featured

topic_box_shortcode