WordPress.org

Ready to get started?Download WordPress

Forums

Exclude no longer working (4 posts)

  1. joneslloyd
    Member
    Posted 4 years ago #

    Hi,

    I believe in the past, the 'exclude' (for categories) option was simply inserted into the sidebar.php page like this:

    <?php wp_list_categories('title_li=&show_count=0&hierarchical=1&exclude=11') ?>

    However, it doesn't work with my version of wordpress.

    Just wondering if anybody knows a way to exclude a category from the sidebar, in a similiar way to this? (ie, has the syntax changed in this version, or something?)

    Any help would be greatly appreciated.

    Cheers
    Lloyd

  2. MichaelH
    Member
    Posted 4 years ago #

    Using your exact code, it works okay for me, at Version 2.9.1.

  3. joneslloyd
    Member
    Posted 4 years ago #

    Odd.. I'm using the 'black hat' theme, if that's any reason for it not to work.

    Do you have any idea as to what it may be?

    If not, no problem. I'll assume that the theme is causing the issue.

  4. MichaelH
    Member
    Posted 4 years ago #

    Or a plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.