Category List

Prints out all applicable categories of the specified datatable category group.

Usage:

Shortcode:

[category_list]

Code Example:

[category_list id=342]
<div class="col-md-4 content-boxes">
  <div class="fauxcrop">
    [is_empty value="{{category_image}}"]
        <img alt="{{title}}" src="http://placehold.it/360x200" />
    [/is_empty]
    [is_set value="{{category_image}}"]
        <img alt="{{title}}" src="[get_asset_file_url id={{category_image}}]" />
    [/is_set]
  </div>
  <div class="sectional-box">
    <h2>{{title}}</h2>
     <p>[preview_length string="{{intro}}" length="160"]...</p>
     <a class="btn btn-sm btn-red" href="{{name}}/">More</a>
  </div>
</div>
[/category_list]

0 Comments

Please sign in to leave a comment.
Have more questions? Submit a request