WordPress.org

Ready to get started?Download WordPress

Forums

Show/Hide Categories (4 posts)

  1. forestninja
    Member
    Posted 5 years ago #

    I think when you add the "categories" widget, it should have the option to toggle which categories show up in the list. So you can hide "uncategorized". Also this way you'd be able to have two category widgets that show different categories.

  2. MichaelH
    Member
    Posted 5 years ago #

    Best way to address both your wishes is to install Otto's PHP Code Widget, and then, in one or more of those widgets, use the template tag, wp_list_categories(), with the exclude= parameter.

  3. forestninja
    Member
    Posted 5 years ago #

    Thanks MichaelH, I actually ended up using these instructions:

    http://www.lancelhoff.com/2008/07/19/exclude-categories-from-sidebar-in-wordpress-26/

    I'm not sure how that will affect me when I upgrade my version of wp, but we shall see.

  4. Yemoonyah
    Member
    Posted 5 years ago #

    Thanks MichaelH for that simple but beautiful solution! And thanks Otto for thee plugin:-)

Topic Closed

This topic has been closed to new replies.

About this Topic