WordPress.org

Ready to get started?Download WordPress

Forums

Trying to exclude category from sidebar... (4 posts)

  1. adrigen
    Member
    Posted 6 years ago #

    on sidebar.php I have changed
    <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
    to

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

    Is this the right way to go about omitting category 11 from the list? Or am I misunderstanding something?

  2. alangnw
    Member
    Posted 6 years ago #

    Why do you have the category there in the first place if not using it? Perhaps I'm misunderstanding too?

  3. Asuka_Aki
    Member
    Posted 6 years ago #

    I have the same problem. I have to sidebars and would like a different category list in each of them. Is taht possible?

  4. danielwalters6
    Member
    Posted 5 years ago #

    I'm looking for a way to just display PARENT categories on the home page, and only show child categories, when users have gone into the main parent ones....

    Does anyone know of a way to do this?

    Thank you for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic