Okay
  Public Ticket #2680411
Category List
Closed

Comments

  •  1
    writerguy started the conversation

    Is there a way to show in the sidebar the stec categories either the entire list or a drop-down?

  •  894
    Zhivko replied

    Hi,

    I've written a small shortcode that can do this.

    Place the code from the text file I've attached to your theme or child-theme functions.php file.

    Then you can display the categories via shortcode [stec_categories_list].

    Examples:

    [stec_categories_list]
    [stec_categories_list title="Calendar Categories"]

    The html generated is like following:

    <div class="stec-categories-list">
        <p class="stec-categories-list-title">Calendar Categories</p>
        <ul>
            <li data-cat-id="1"><a href="#">Category 1</a></li>
            <li data-cat-id="2"><a href="#">Category 2</a></li>
        </ul>
    </div>
    

    Stachethemes Developer