Categories Exist

Checks to see if a category with a specific ID exists.

Usage

Shortcode:

[categories_exist]

Code Example:

[categories_exist id=342]
<div class="row">
[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