When you create a custom menu item for the custom post type archive you have to include the entire url and not just /your-custom-post-type-name
. If you use the entire url the wordpress url rewrite function will check it against all the other menu items as well as against all your pages and so on. What you end up with in the menu parent is something like current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor
.
Related Posts:
- Highlight specific menu item when custom post is page
- Filtering a custom post type by custom taxonomy in archive template
- Exclude a category from WP_Query
- Creating “static” taxonomies to choose from, inside custom post type?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- How to build a complex page structure
- How to filter custom post types by custom category taxonomy
- Is there a way to use regular categories with custom post types?
- How to list all categories and tags in a page?
- Extend walker class with custom post types [closed]
- remove support for ‘Categories’ for a custom post type
- How to Programically add to the new WordPress menus
- Glossary with Custom Post Type
- Custom-Taxonomy as categories: Remove “most-used” tab?
- Filter get_categories() for taxonomy term in WordPress
- Add filter to wp_list_categories and query what type of taxonomy-terms it use?
- Custom edit post column – category not showing
- Taxonomy list. Order by a specific custom post type count
- How to show custom taxonomy in the permalink?
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Custom post type taxonomy template
- Custom/separate categories for custom post type
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Taxonomy structure of Sport site
- Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
- Display Custom Category (taxonomy) Name in Custom Post Type
- get_categories() for only CPT
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Show Post Count of a Category
- custom taxonomy archive by year
- Menu Multiple Taxonomies
- Get categories and descriptions from custom post type
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Combining custom post type and post category
- Querying Term Posts in Loop
- How to create new category for custom post type?
- Weird problem happening with custom taxonmy when creating/updating posts
- Add/Remove current_page_parent class
- Insert HTML inside link in a walker
- Custom Post Types and independent Categories – complex Taxonomy
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Should I use custom taxonomy or custom post type
- get_terms() parent, child and grandchild
- Get child categories of custom taxonomy category?
- Custom Post Type Custom Archive Page Not Working
- List child categories from parent category on custom taxonomy page
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Custom post types category
- Get terms for a specfic post from multiple taxonomies in custom post type
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- Custom post not appearing under custom taxonomy category
- Retrieve Custom Taxonomies with Description and Slug
- Custom post type category permalinks and archive pages
- Custom post type specific category box
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- how to organize my categories or should I do custom post types for some?
- Advanced archive url structure (category, tag and date)
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- How to divide Subcategories into pages of parent category wordpress
- Custom front-end form for adding post – Category problem
- How to show related posts of category on post within custom posttype
- How to display custom taxonomy term specific post?
- How to set “section categories”?
- Create custom post type categories
- Show Custom Post Type based on Category on Archive Page
- Set a Default CPT taxonomy by taxonomy id
- How to manage a dynamic multi-level page hierearchy system?
- Categories manage
- Automatically add CPT UI categories to the menu
- Custom category taxonomy – archive page not showing up
- Custom post type category link + add to menu
- Help with Travel Guide Setup
- Custom post types not displaying per category
- Custom post type category archive URL redirects to home page
- Help with Multi Level Category Archive Page
- Dropdown switching subcategories portfolio
- Display custom Taxonomies same as listing Categories
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Display 2nd category, only once, as sub-heading, in the loop
- Post Editor: display categories from current post type taxonomy only?
- List all posts from custom post type by taxonomy
- Get a list of categories ids
- Trying to create hierarchy between 3-4 custom post types
- Custom Taxonomy Showing in WP Menu
- Customize category URL
- Plugins for putting Custom Post Types into the Menu
- Category / Custom Post Type permalink issue
- Getting (Invalid) when adding custom taxonomy of custom post type link in menu [closed]
- Display a custom post type list by taxonomy term
- Return Custom Post Type Categories
- Remove slug from Custom Category Permalink + dual-category permalinks
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- Navigation won’t update to show full path to single post
- How can I show second most recent post in sidebar, if most recent post is open in the browser?
- Is it possible for post and custom post type to share a category base slug?
- How to add categories to a custom post type using wp_insert_post($new_post);
- WP Query filtering by custom category not showing all relevant posts
- How to get the proper category in permalink with custom post type assigned to multiple categories
- Category display using conditions