Try the exclude
parameter in the wp_list_categories
. That should remove the selected categories and their descendants.
EDIT: Must be getting late; this almost the opposite of what you wanted. To only include one category term in a drop-down menu (and all of its descendants), you can use child_of
.
Related Posts:
- Apply the_title() filter in post & page title, but not in menu title
- Exclude category on blog list page
- What Defines What Category A Post Picks (if in multiple)
- WordPress menu that shows all posts in a certain category like w3schools
- How can I remove posts of a certain category from homepage after a specified time period?
- Mark menu item as current-menu-item for category
- How to filter posts that belong to a specific category only if that is the only category
- Get latest posts from WordPress site without header, menu and sidebar
- More then one menu items are assigned with “current-menu-item” class
- How to list recent posts in a wp nav menu?
- Redirect to another page using contact form 7? [closed]
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Programmatically add posts from specific category to menu
- Get current taxonomy and display query accordingly
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- I want to add the 10 most recent posts under a parent category on the main menu
- How to add class to specific navbar item when post parent category is in specific category
- how to filter posts by category without page load (ajax) in wordpress?
- How to add a block to a category page?
- show only one category and filter by tag
- Automatic Table of contents with categories and posts
- How to use in_category?
- Filters do not work when there are multiple (one works)
- How to remove category and other tags from posts page
- Menu for all posts from multiple categories
- WordPress menu disappears in category pages
- Menu item on a category
- Change post order random through out the entire WordPress
- How to create a submenu that will navigate through different posts in the same page
- Stop users posting into category while still seeing contents of the category
- use wpml_post_language_details function other plugin based on $post->ID [closed]
- How to hide html tags on revision comparison pages?
- Add filter by custom field to block of posts
- Category Page Template not Showing Posts
- display a random post thumbnail from a random category
- How do I retrieve then print the currently viewed sub categories?
- Ajax post filters not working
- Default to ‘all’ view on the ‘edit-post’ screen for authors
- Display Meta Values in Custom Filter – Admin Custom Posts
- How to allow users to post only in certain category and hide elements from edit page?
- How to filter my search in post if contains a word in title, content or excerpt?
- Update post_content everytime a custom post is opened in backend
- How can i limit the number of posts created per category?
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- Pulling in post category and children within category
- WordPress custom Query for Posts in Category display posts multiple times
- Post categories to pages
- Get user categories with most posts in it
- One menu for frontpage (one pager), and a different menu for posts
- Post page to display specific category
- Get Posts Under Custom Taxonomy
- Posts and Attachments with “Published” status in Search
- Get attachments for posts that belongs to a specific category
- Prevent additional top level categories but allow more children
- Need help with category listing!
- Prepending %category% onto default posts fails
- List all categories with featured image from post?
- Categories list into registration form
- WP_Query: Mixing category__in and tag__in together
- If in_category not working for multiple single.php pages
- How can I setup a relationship using categories in WordPress?
- WordPress Multisite – Create Default Post and New Category On New Site Install
- how to show single post in a custom template
- Using ajax on editing a category edit page?
- Related posts by category not working right
- Set Default Category to Username
- Disable sticky option for specific categories
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- How to allow visitors to filter posts by multiple taxonomies
- How can I hide tags on a child-category page, if that tag has not been used?
- date issue with category post retrival
- Listing Specific Categories from Current Post with Depth
- How to make multiple sections in home pulling posts category wise?
- How to display two blog categories as separate sections on one page?
- How to make the first post in the loop be styled like a “new / featured” post?
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- Display post category in foreach loop
- Single.php – Get Current Parent Category
- How do I stop the loop from repeating in my category template?
- Trying to alter the post_content through the_post
- get_the_category listing in hierarchial order
- Using wp_list_pages() after calling query_posts()
- Is it possible to add/tick a category to a post when it is created?
- Excluding posts not working
- Show posts count for Categories and Tags in wp_nav_menu
- Hide posts belongs to few categories in homepage
- How to add category post count in main navigation menu [closed]
- Create new custom post and post category of same name
- why does wordpress ignore the post args?
- post category in wp_insert_post
- add to end of post in the loop with plugin
- Limit the number of posts a category can have – newest post goes in, oldest one drops out, possible? plugin?
- Add filter to the end of the post
- How to get subcategories from category slug?
- Remove current category from post but display all others
- How show categories in admin and get that selected to show posts in index
- Get post content with all filters applied, knowing post id
- disable Tab post on nav-menus page (Admin)
- Showing categories and subcategories with posts
- Change default category when I publish a post