I’m pretty sure this is a Codex error and that the string that exclude
parameter expects for wp_list_categories()
is really meant for non-hierarchical tags, such as blue,red
where hierarchical you need to pass an array of integers:
$args = array(
'orderby' => 'ID',
'show_count' => 1,
'taxonomy' => 'portfolio-type',
'use_desc_for_title' => 1,
'echo' => 0,
'title_li' => '',
'exclude' => array( 115, 161 ),
);
wp_list_categories( $args );
Always cross reference The Codex with Developer Resources!
Related Posts:
- exclude category from get_posts?
- Exclude the category from the WordPress loop
- Exclude certain category from latest updates
- Exclude categories from Loop, queries, widgets, post navigation
- List posts by category exclude current post
- wp_list_categories exclude not working
- Excluding a category from next and previous post links
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- How to exclude categories from recent posts, recent comments & category widgets?
- Exclude a category from the filed under list only on some templates
- How to exclude posts from a category when using this particular format
- Exclude category from Tag Template
- exclude post from displaying in loop if it is in a category, but not in many categories
- I need to create a search form that will display search results from specific category
- Exclude Posts From Specific Category from Next and Previous post links
- Query Posts Exclude Entire Category
- exclude categories from search results
- Exclude category from fucntion
- WordPress category widget only show categories with children
- wp_list_pages() exclude category
- Exclude category from query
- Functions.php: Exclude Category from “Blog”
- Woocommerce filter function not updating
- How to exclude posts from category posts count
- Exclude category from foreach loop
- Have posts that belong to multiple categories, exclude some categories from homepage
- Exclude all subcategories in the_category (post)
- I need to exclude from a query a category and a few custom taxonomies
- Exclude categories by ID
- Homepage custom recent news
- Exclude the category in WordPress
- How can I exclude a category from the main loop with the category name & not ID?
- User level categories
- Exclude category from drop down list form
- exclude certain categories form archive widget
- How to remove an item from a custom Walker_Nav_Menu
- Exclude a category and post_type from wp_query
- How can I exclude a particular category from my WordPress Page 1 and Page 2?
- Exclude category from WP_Query args not working
- Displaying Category in sidebar post widget but not in the loop on home
- Category menu that filters out empty categories
- Problems with explode [closed]
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- How to have a category not show up in query post with page panigation?
- Customize category query in widget
- Call function on a single page
- Excluding cateory not working on my site. how to solve this? [closed]
- How to define category ID in an array?
- List all subcategories from category
- Display all posts in category, with specific tag posts at top
- How to Set an Individual Homepage for Each User?
- Is it possible to put next and previous category links?
- Woocommerce – Get product category 2nd level category
- Hide post meta data on a specific category
- New categories are now going to 404s
- How can I get an tag to wrap each ancestor that gets outputted in this condition?
- How to prevent empty category to list content of sub categories?
- “Reversable” and “Re-useable” Subcategories (or other taxonomic structure)
- How to set post expiration date and time and move the page to archive after expiration [closed]
- Creating gallery with taxonomy images plugin?
- Full text articles in the rss feed (i.e. without the more tag)
- Solution for ascending order in a category
- Why do my categories redirect?
- Restoring default article pagination on archives – Removing custom limits
- how to get child category title and image
- How to display all the categories a post is in
- Why don’t posts show up in my categories on the frontend?
- Should I use “Categories ” or “Pages” for a WordPress Static Site (A non blog site)?
- How do I query_posts in cat=1 AND not in cat=2
- Display single category name in woocommerce loop
- Use premade array as categories in wp_query?
- How do I get category and page ID’s?
- Category images are not displaying in WordPress
- Some categories missing on wp-admin/edit-tags.php?taxonomy=category
- Show child taxonomies (that have posts) of the current parent taxonomy
- Get next post in same category not working WP 4.7.4
- How do you use the featured image of the most recent post in a category as the background image
- Change RSS format for specific categories
- Displaying a custom field in Category Archives
- List post only under the category, exclude child category content
- Detect category choice for posts with multiple categories
- Redirect Problems with Archive Page and GET variables
- Different size video display for category page (smaller) & detail page (larger)
- Adding tinymce to Custom Field boxes on Category edit page
- wp_list_categories : how do I sort by ID when IDs are not sequential
- Display the articles of a category by role
- Remove “Category:” from Post meta
- restrict category to only logged in User
- Dynamically creating content on custom URL without getting 404
- Category foreach Paging
- One category not displaying template updates
- How to display only category of blog without custom code?
- How to create a category or tag available exclusively to the admins and not to the users?
- wordpress category.php query for featured news item, broken pagination and repeating posts
- Form Value of drop down category + Translation of ‘show option none’
- Echo class depending on Parent category
- Query pages by category
- How to display posts by author in a separate page, other than author.php?
- One color to category link depending on category ID
- Show subcategories and hide posts or show posts if not exists subcategories