You have to set "hierarchical" => true
in order to get %category%
and %subcategory%
to display:
"rewrite" => array(
"slug" => "producten",
"with_front" => false,
"hierarchical" => true
),
Don’t forget to flush permalink settings by opening settings
→ permalinks
and save.
More info: WordPress Codex: Function Reference/register post type
Related Posts:
- Adding categories to custom post type in permalink
- How to change permalink structure for custom post type and it’s taxonomies?
- Is there a way to use regular categories with custom post types?
- On clicking on the category name the page is redirecting on 404 pge
- How to show custom taxonomy in the permalink?
- Custom post types and permalink
- Get a permalink structure of /%posttype%/%category%/%postname%
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- Custom Post Types and independent Categories – complex Taxonomy
- Add custom post type settings to wordress default posts
- Can’t remove front from permalinks for custom taxonomy category page
- Custom Post Type with modified permalink structure results in 404
- Custom post type category permalinks and archive pages
- Searching in multiple category + URL hierarchy in real estate WordPress site
- Modify category permalink to use post type slug
- Category permalinks don’t work even after flushing
- Adding categories to custom post type in permalink
- Change custom post type permalink according to category
- how to use two permalinks for one custom post type based on categories
- Get full control over custom post type url
- How to switch from custom post type URL to category URL?
- Custom Post Type + Category archive
- Category / Custom Post Type permalink issue
- Custom Post Type Permalinks with %category%
- Remove slug from Custom Category Permalink + dual-category permalinks
- Custom post type and category permalinks
- Is it possible for post and custom post type to share a category base slug?
- How do I get the permalink of a custom post type?
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Custom Post type & Taxonomy URL structure
- How can I list all the categories under a Custom Post Type (taxonomy)?
- category__in not working on custom post type
- Slug for custom post type archive
- how do I group content in magazine-style ‘issues’?
- Semantic URL Custom Post Type and Taxonomies permalinks
- How can I add single catogory for custom post type?
- Categories and Tags not working!
- automatically save custom post type title as a category
- category.php displays ALL posts instead of just those with the current category
- Passing parameters to WordPress static front page
- Display Next/Prev when looping Custom post-types archive?
- Weird problem happening with custom taxonmy when creating/updating posts
- Removing parent slug in hierachial custom post type
- Wrong generated page_name/slug on first publish of custom post type
- CPT Archive with core Category
- Stop / prevent WordPress from updating permalinks of custom post type
- Replace li Items with divs with classes
- showing custom post types of a certain category only
- get_posts() with custom post type does not work outside page.php
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- Why doesn’t a custom post type permalink ever hit index.php
- Allow post/page hierarchy across different post types?
- Multiple level category drop-down from the WordPress dashboard
- How to get categories linked in posts for a specific post type
- Custom Post Type + Categories
- Permalinks: custom post type -> custom taxonomy -> post
- Custom post type permalink tag 404
- Custom permalinks rules don’t match and lost of query var in the process
- How can I show 1 featured post in a styled element, and the next few below differently styled
- How can I list Custom Post Types created with the Types plugin under categories?
- How to Create Template File for Parent Page of Custom Post Type
- Changed permalink structure of CPT – should I redirect?
- How to hyperlink content from archive page with custom post-type
- Template for custom post type when taxonomy is in the URL
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- The Difference Between Categories and Tags and Taxonomies and Terms
- Get assigned post categories
- Default Category Page not showing custom post type which has taxonomy category
- Post Query not working
- Am I mixing up the concept of posts pages and categories?
- Custom rewrite rules for /pastissues/%category%-%postname%.html
- Stop displaying Permalink
- Custom front-end form for adding post – Category problem
- Custom Post Type Category Displaying ALL Sub Categories as well
- Custom Endpoint For Specific Custom Post Type
- Control over custom post types on a specific page
- How do you create pillar content pages?
- create a “add icon” field in taxonomies page
- Feature image Gallery made from Custom Post type + Categories
- Custom post type single page returning 404 error when sharing archive url with custom taxonomy
- Get meta values from parent post and save in child post
- How to make “single post” permalink maintain it’s sub-page structure
- Two and more diffrent custom page type in one permalink
- Page as parent for CPT and other pages
- Custom permalink with custom taxonomies for custom post type
- Change the url of a custom post type to include taxonomy
- Multiple custom post type and permalink issue
- Remove sequential number from permalinks
- Redirect permalinks after creating custom post types
- Parent cpt/child custom post type URL permalink relationship
- how to show perticular category posts in custome page
- Use only selected regular categories for a Custom post form
- Problem with menu categories doubling up when updating database?
- Custom Post Types and 404 Pages
- Posts picking up old Permalinks, how to reset?
- WordPress Set A Static Page/Template For All Sub-Pages
- How to query posts by category with the_title();
- How to add categories to a custom post type using wp_insert_post($new_post);
- Modify permalink of CPT archive to support two taxonomies
- Allow child pages with the same base as the CPT slug