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 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
- Filter get_categories() for taxonomy term in WordPress
- Taxonomy list. Order by a specific custom post type count
- How to show custom taxonomy in the permalink?
- Custom/separate categories for custom post type
- Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
- Display Custom Category (taxonomy) Name in Custom Post Type
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Show Post Count of a Category
- 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
- How to create new category for custom post type?
- 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 taxonomy or custom post type
- Display all posts in main category and 1 subcategory
- Custom Post Type Archive Page Filtering
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Correct classes for WordPress menu items
- Custom Taxonomy Navigation, with current menu items for children?
- Custom Post Type With Categories
- Display posts from Custom Post Type in category page on front-end
- get_category_parents for custom post type taxonomy
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- Show a Category X’s custom post type on Category X archive page?
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- Hide parent categories when clicked, and show it’s childs
- Getting categories of posts under a custom taxonomy
- Can’t remove front from permalinks for custom taxonomy category page
- How to edit this code to get the categories in achieve page?
- How to get custom posts sub category link
- Use custom walker to add taxonomy terms to main nav menu
- browse by category and tags?
- List of Posts and Categories
- WP the_posts() on single-cars.php get category link
- in_category for custom post types
- get_category_link() for custom post type does not include custom slug rewrite?
- Disable custom taxonomy on admin bar
- Why does my taxonomy have a category style div id?
- Targeting categories in custom fields
- Get custom post type categories to show up in menus
- WordPress menu with custom taxonomy
- Listing all slugs?
- category list with cutom post count
- Include custom post type custom taxonomies in Categories widget
- Custom Post Type Categories URL not displaying posts
- Custom post type categories gives 404 error
- get_terms() parent, child and grandchild
- 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
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- 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
- Advanced archive url structure (category, tag and date)
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- 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
- Set a Default CPT taxonomy by taxonomy id
- How to manage a dynamic multi-level page hierearchy system?
- Categories manage
- Custom post type category link + add to menu
- Help with Travel Guide Setup
- Custom post types not displaying per category
- Help with Multi Level Category Archive Page
- Dropdown switching subcategories portfolio
- 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
- Customize category URL
- 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
- 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);
- How to get the proper category in permalink with custom post type assigned to multiple categories