Smart Content Box

s_layout9

The code have structured as follows

[ct_scb title="" title_link="" layout="" column="" count="" condition="" order="" cats="" tags="" ids="" filter_style="" enable_cat_filter="" heading_style="" heading_color="" heading_bg="" featured="" show_category_tag="" show_meta=""  heading_icon="" heading_icon_color="" view_all_text=""]

The [ct_scb] shortcode has the following variables/options

  1. title– text – heading title of the box. If empty, title is hidden
  2. title_link – create link from heading title to a  page orther
  3. layout – select – choose one of 9 predefined layouts or  possible enter values 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9. Please check here to view all Smart Content Box Layouts
  4. column– 1 | 2 |3–Set how many columns which be displayed (column only use for layout from layout 4 to layout 7 and layout 9)
  5. count– number – number of items to query
  6. 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
  7. order– select
    • asc – Ascending
    • desc – Descending
  8. cats– mix – list of categories (ID) to query items from, separated by a comma. For example: 1, 2, 3
  9. tags– mix – list of tags to query items from, separated by a comma. For example: tag-1, tag-2, tag-3
  10. featured– 1/0 – choose yes (1) to only query featured posts (posts having metadata as Featured
  11. ids– mix – list of post IDs to query, separated by a comma. If this value is not empty, cats, tags and featured are omitted
  12. filter_style -No | Categories Filter | Carousel. Demo layout here
  13. enable_cat_filter– 1/0 – Enable the category filter select-box. If this select-box is enabled, items are arranged by category
  14. heading_style– 1/2 –Enable or disable the background gray gradient. Demo layout here
  15. heading_color– hexa (with leading #) – Change color of heading text
  16. heading_bg– hexa (with leading #) – Change color of heading background
  17. heading_icon– Input an Image URL to display as Icon before the Heading Title
  18. heading_icon_color–hexa (with leading #) – Change color of heading icon
  19. show_meta– 1/0 – Show post metadata (author name, published date…)
  20. show_category_tag– 1/0 – Show category tag
  21. view_all_text-Set custom title for view all button, leave blank to get default or leave a space to hide it

Articles