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
- Update post counts (published, draft, unattached) in admin interface
- Manipulate post category after time
- Categories box not showing on post edit pages
- List only child categories a post is in, of a specific parent category
- Add custom field to all posts in specific category
- How to remove_filter that filters iframes in posts? [duplicate]
- is there a better way of combining this?
- wp_list_categories link to first post of category instead of calling taxonomy template
- If specific user role then sticky post
- How to Add ‘Post Categories’ to the Dashboard Sidebar
- How only display all post related to category
- Add category to all post by using sql query?
- the_posts filter been called multiple time
- Only display posts after current date
- Full Width Main Post
- Filter Home Page Posts in Buddypress [closed]
- Filter Custom Post Type by Category with Ajax
- pre_get_posts query between 2 dates (date stored in custom post meta)
- Pulling in post category and children within category
- Post categories to pages
- 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?
- Set Default Category to Username
- Display post category in foreach loop
- Single.php – Get Current Parent Category
- add to end of post in the loop with plugin
- How show categories in admin and get that selected to show posts in index
- Adding bootstrap classes to video shortcodes
- if in category but only with post meta
- singular posts using archive styling
- Display selected categories onto post page
- WordPress post filter menu
- Change the background of each post according to the category
- How to get posts ordered by using their categories?
- Get post category as a separate string and url
- How to show category based post in home page?
- How to view all posts (on site, not admin) that are uncategorized?
- How to create a list of links to post with specific category
- Different post views for different category views
- Display Current Posts Category (with the most posts)?
- How to select a category automatically based on a word in WordPress post title?
- Only the most recent post is showing on my category page (working on localhost, not live site)
- Show only posts with titles/permalinks that do not contain certain words
- Featured Images most often doesnt appear
- ACF date picker to trigger category change
- Get category slug of the Parent category of a Product
- Filter posts by month (dropdown)
- exclude particular category in api
- Posts are not displaying on their category and tag page
- Make categories appear random
- Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )
- How to make a page show posts only from specific categories without editing php files
- Get posts from category from custom query
- Show custom post category for single post
- Get a list of categories that are related to posts
- How to show posts ordered by random [duplicate]
- How to Get Position of a Post from a category and tag
- Display new posts categories in separated divs
- Add Categories To Custom Post
- Query posts from newest category
- Display Posts by Categories
- Ajax – Post Categories and Load More
- Edit Posts Page but not category specific pages?
- How to modify specific parts of a post content in WordPress
- “Current” class on a singular page menu item with custom post types?
- How to organise post by category and date
- Show post if in category
- How to display custom content in post with category XXX
- Displaying categories items among posts
- Displaying different posts Via wp_list_categories()
- Is possible to create a custom link that creates a post that’s already categorized?
- Display ONLY Latest Post From Several Categories
- Show all posts in category
- Polylang – display one post into 3 categories with different lang [closed]
- Export Posts Without Categories In An XML File