in before: I already searched for this answer her but couldn't find a thing that worked for me.
I have a Lot of Categories and Child Categories. I use them to give a Location, Country, Type of Employment, etc to different posts and to later sort them in my sidebar. My code looks like this.
$country_filter = array( "show_count" => 0, // no count behind each Category "hide_empty" => 1, // no empty categories "exclude" => "24", // THE ONE to exclude "child_of" => 55, // category ID "title_li" => ""); // leaves the title empty so we can use the headline above wp_list_categories($country_filter);
The Thing is: Every post has a Category 55 (it's the Country Category) but can also have 24 - which is a category that should never show up on search, sidebar, etc. this one is only displayed on a specific page.
My question is: How can I remove posts in category 24 from the list? The above snippet doesn't work.