WordPress.org

Support

Support » Requests and Feedback » Better categories output..?

Better categories output..?

  • Currently, you could only display either one category or all your categories in one page..
    is there a way to exclude one or two categories? thanks..
    also for the list_cats.. function.. it appears to have problems too at times..

Viewing 3 replies - 1 through 3 (of 3 total)
  • TechGnome

    @techgnome

    Moderator

    I use this at the top of my index.php file to exclude a category:
    $cat = "-7";
    So far it seems to work.
    TG

    what does that mean??
    to exclude the 7th cat??

    You can exclude one category by placing $cat = “-X”; (where X is the ID of the category to be excluded) at the top of wp-blog-header. Unfortunately, you are limited to excluding one category. Alternatively, you could put something like $cat = ” 1 2 4 5 7″; and those categories would be displayed, effectively excluding category 3 and 6.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Better categories output..?’ is closed to new replies.
Skip to toolbar