• I’ve done a search and have found a few things on excluding categories, but the plugins I have tried and other hacks I have read seem to be for older versions of WordPress.

    What is the easiest way to hide a certain category from the main index, from the search/archives and from the dropdown_cats?

    Cheers,
    Kim

Viewing 2 replies - 1 through 2 (of 2 total)
  • You use one of the Conditional Tags for is_category. There are examples there for the usage on these, and if the list is generated by Template Tags, then check that template tag for the category list for an exclude option like at https://codex.www.ads-software.com/Template_Tags/wp_list_cats

    Thread Starter km

    (@kmaisch)

    I have hidden the category from the dropdown cats by using:

    ?php dropdown_cats(‘0′,’All’,’name’,’asc’,’0′,’0′,’1′,’0′,”,’36’); ?

    The last parameter ’36’ is the category ID that I want to hide.

    I cant find anywhere in my index.php template where is_category or list_cats is. I can find the_category and the_content… not sure how to make these conditional though. Hmm :/

    Or should I be editing wp files not in my template directory?

    Kim

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘exclude categories in version 1.5’ is closed to new replies.