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
- 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 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?
- remove support for ‘Categories’ for a custom post type
- 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
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Custom post type taxonomy template
- 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
- custom taxonomy archive by year
- Combining custom post type and post category
- Querying Term Posts in Loop
- Weird problem happening with custom taxonmy when creating/updating posts
- Insert HTML inside link in a walker
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Display all posts in main category and 1 subcategory
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Posts from all the categories are being displayed instead of particular category
- Correct classes for WordPress menu items
- Conditional Statement custom post type category
- Categories sorting
- Allow user to set custom order to a list of custom taxonomies?
- get_category_parents for custom post type taxonomy
- wp_list_categories() – current-cat class also inside posts?
- How to display custom taxonomies with links in filter menu?
- Second Set of Eyes: One custom taxonomy shows in Appearance > Menus, one does not
- 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
- Limit amount of posts made within a custom taxonomy
- Filter CPT posts by one or more categories
- Can’t remove front from permalinks for custom taxonomy category page
- Hierarchy and access control for Custom Post Types (CPT)
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- How to get custom posts sub category link
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- List of Posts and Categories
- WP the_posts() on single-cars.php get category link
- in_category for custom post types
- Which Template Page Should I Use?
- How to add current custom taxonomy slug to body class
- List Posts By Custom Taxonomy
- get_category_link() for custom post type does not include custom slug rewrite?
- How to Display Posts From Category Within a Custom Taxonomy?
- Targeting categories in custom fields
- WordPress menu with custom taxonomy
- Listing all slugs?
- category list with cutom post count
- The Difference Between Categories and Tags and Taxonomies and Terms
- Include custom post type custom taxonomies in Categories widget
- Custom post type categories gives 404 error
- get_terms() parent, child and grandchild
- Get child categories of custom taxonomy category?
- 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
- Retrieve Custom Taxonomies with Description and Slug
- 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)
- 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
- 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 type category archive URL redirects to home page
- Help with Multi Level Category Archive Page
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Display 2nd category, only once, as sub-heading, in the loop
- 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
- 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?
- How to add categories to a custom post type using wp_insert_post($new_post);