WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sidebar Categories (6 posts)

  1. Scooby
    Member
    Posted 6 years ago #

    I have 2 categories in my sidebar, "Cats" and "Dogs". How would I go about just showing the category "Cats" and hide the category "Dogs"??

    Is there a plugin or quick hack for this??

  2. whistler2020
    Member
    Posted 6 years ago #

  3. Scooby
    Member
    Posted 6 years ago #

    Sweet, but I don't know how to incorporate it into the existing code.. It says to do like this:

    <?php wp_list_cats('exclude=1'); ?>

    I'm need to incorporate it into this line:

    <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

    Is that possible or will that throw things off and I have to find another place to implement it?

  4. Scooby
    Member
    Posted 6 years ago #

    I got it..

    <?php wp_list_categories('exclude=3&show_count=1&title_li=<h2>Categories</h2>'); ?>

    Thanks again whistler2020

  5. whistler2020
    Member
    Posted 6 years ago #

    I didnt do anything..... :)

  6. Scooby
    Member
    Posted 6 years ago #

    You directed me to where I could find my answer.. Isn't that enough??

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.