You can use remove_submenu_page()
, but getting the submenu slug correct is tricky and it has to be exactly right to work. The correct submenu_slug is not exactly the same as the link you click in the menu, the one in the menu is URL encoded but the slug itself is html encoded, the main difference being in the slug any &
chars will instead be &
In your example the function call should probably be:
remove_submenu_page( 'edit.php?post_type=portfolio', 'edit-tags.php?taxonomy=featured&post_type=portfolio' );
To really get it right var_dump the submenu variable and you can see the actual slug in use by the system, see https://stackoverflow.com/questions/7610702/wordpress-remove-submenu-from-custom-post-type/ for a worked example.
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- Show Custom Taxonomy Inside Custom Menu
- Getting the Intersection of Two Custom Taxonomy Terms for a Custom Post Type?
- Why does my custom taxonomy show a total count across all post types
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- array_pop() expects array, boolean given for $event_type_term ->slug
- custom post type permalinks with category and tags
- Get template part based on custom taxonomy term
- WordPress returns 404 on custom rewrite rule conflict in parameters
- How to show term-specific post list, without posts associated with child terms?
- Show all custom post type posts sorted by custom taxonomy then by another custom taxonomy
- Custom Post Type Category List & Post Count
- Custom taxonomy archive page not working
- How to show multiple post types on taxonomy archive?
- Custom post type / custom fields
- Custom post type taxonomy template
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Get the posttype of a taxonomy/term
- Taxonomy Templates
- Add hierarchical taxonomy to permalink for custom post type
- Custom Posts Hierarchy? (State/City/Restaurant)
- Custom post types, taxonomies, and permalinks
- Custom Post Type vs. User Page
- How to get posts from multiple custom post types according to it’s custom taxonomy terms?
- Is it possible to create a shortcode that will query a post based on taxonomies?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- get_template_part for each level of taxonomy term
- Displaying a custom post types custom taxonomy value?
- custom permalinks based on taxonomies for custom post type
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- Get custom post type list for every category shortcode
- Custom Post Type Taxonomy Filters
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- Get related posts of child term of custom post type
- Filter term taxonomy metabox in custom post type
- Show custom post archive when custom post not specified
- Show custom post type relationships by taxonomy
- Filter CPT posts by one or more categories
- Hierarchy and access control for Custom Post Types (CPT)
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- Custom post with more than one custom taxonomy
- Different Category system needed for the Custom Post Type
- single-{post_type}.php not working
- Template to list categories in custom taxonomy
- WordPress wp_query() basic question about args
- How to add current custom taxonomy slug to body class
- Display different information of a custom post type
- How to define a term for custom taxonomy
- Exclude posts with custom taxonomy
- List custom taxonomy as navigation – taxonomy pages with all it’s posts?
- How to approach a site where it has sub-businesses, each with its own pages (“articles”, “staff”)? Don’t want to use WP multisite
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- How to get the post terms from a child taxonomy
- display posts of custom post type with custom taxonomy
- Get custom term meta problem on single post type
- Creating custom post type posts and associating them with a post from another custom post type
- Custom Post Type View Button in Admin Gives 400 Error
- how to organize my categories or should I do custom post types for some?
- How do i display post from a taxonomy term?
- Multiple permalinks for a single post with multiple taxonomies
- rewrite rules hierarchical
- either single-{custom}.php 404’s OR /taxonomy/ 404’s – custom post type and taxonomy permalinks
- How to show custom posts
- How do I set a post slug automatically based on taxonomy?
- Get a list of custom post type (property) when clicked on custom taxonomy 1 (rent or sale) from custom taxonomy 2 (city) page
- How to divide Subcategories into pages of parent category wordpress
- update custom taxonomy custom fields
- Filter taxonomy by CPT
- Display Posts that fit a certain criteria on Category pages
- How do I find out which (page) template file my custom child post is looking for?
- How to display “META” array in register_taxonomy
- If ACF Post Object post has custom taxonomy term…
- Custom Post Taxonomy Template Not Loading Properly
- Customise Permalink Structure For Custom Post Types
- How to filter taxonomy of a custom post type and display it in the single post type page in the back end?
- Parent and child categories with their id in drop_down in CPT
- CPT/Taxonomy/Postname permalink structure makes pagination break
- Custom Taxonomy not working front side Woocommerce
- Custom post type post_type_link gives “page not found” on any other custom post type
- Exclude Posts in a Given Category
- I want to create an archive and single page for a custom taxonomy for a custom post type
- Taxonomy’s title
- Display all posts from single taxonomy term
- Front page url permalink
- Best way to use Category & Custom Fields?
- Heirarchical URLs with CPT and custom taxonomy
- Displaying taxonomies with manage_{custom-post-type}_posts_custom_column
- Plugin Error on activating
- Paginate custom taxonomy category with wp_custom_pagination
- Custom post type post taxonomies
- If taxonomy show class of active
- Custom Taxonomy Showing in WP Menu
- Storing/querying custom date data
- Custom Template Taxonomy
- Custom Post Type Permalinks Problem
- How to relate one custom post type to another custom post type
- Issue On Listing Woocommerce Parent Tag List
- How is it possible to list custom post types by “category” like with simple posts?
- Links in archive not including taxonomy parameter
- Permalinks for Custom Post Types and Taxonomies