You have to add a taxonomy category for your new custom post type such as
function mvli_customtype_category() {
register_taxonomy(
'customtype-category',
'customtype',
array(
'label' => __( 'Category' ),
'rewrite' => array( 'slug' => 'customtype-category' ),
'hierarchical' => true,
)
);
}
add_action( 'init', 'mvli_customtype_category' );
And then you can easily open the link like this
website.com/customtype-category/
let’s say your category is named apple
website.com/customtype-category/apple
Now enjoy this code and rename and replace it with your terms.
Related Posts:
- How to get all taxonomies of a post type?
- Renaming Custom Post Types and Taxonomies
- How to change permalink structure for custom post type and it’s taxonomies?
- How do I append multiple taxonomies to the URL?
- How do I list custom taxonomy terms without the links?
- How to list custom taxonomy categories?
- Custom Taxonomy Template Post List with Sort Order
- wp_insert_term doesn’t work with custom post type’s taxonomy
- Remove quick edit for custom post type
- Count posts that have specific taxonomy term attached
- Taxonomy archives based on Custom Post Type
- Order Posts by Taxonomy and Meta Value
- Get the ‘slug’ of a custom taxonomy
- Taxonomy page returns 404 page not found
- It is possible to get a list of post types asociated to a taxonomy?
- display multiple term post from taxonomy in a single page
- Custom Metabox with Taxonomy Dropdown – Saving Issue
- How to get the parent’s taxonomy?
- Group Custom post type in a page by its taxomony tag
- create a back-end wordpress content submission using custom post type
- Include custom post type in “all posts”
- Same base slug for CPT post and CPT taxonomy terms
- wp_insert_post custom taxonomy
- Display taxonomy term only if there’s a value
- Post Link Filter Help [closed]
- Get all taxonomies for all post types
- Custom Post Types and Categories?
- Problem with custom post types, taxonomy and permalinks
- How to create new category for custom post type?
- Fetch taxonomies by custom post type id array
- get_terms showing all categories instead of the ones assigned to a specific post
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Order By Post Type ThenBy Taxonomy
- How to show CPTs in term archive
- Custom query to filter posts that have current post as a taxonomy [closed]
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Is using taxonomies the way to go here or would custom post types be better?
- Categories of custom taxonomy don’t show any posts
- Custom Taxonomy back-end customizations
- Is it possible to have dedicated page for parent/child taxonomy?
- Display a grid of taxonomy terms at root taxonomy page
- limit value taxonomy based on previous taxonomy value wordpress
- Using meta_query and tax_query at the same time
- How to conditionally redirect to the post from a taxonomy page?
- How to make custom taxonomy into drop down select in a custom metabox
- How do I share categories across multiple post types?
- How to Set Taxonomy Object Description?
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking
- Variable not working in WP_Query
- Hide meta box for everything BUT a certain custom post type
- Associate all Custom Post Types with Taxonomy
- Alphabetically sort a taxonomy.php template by post title
- Show Taxonomies with admin area for custom post type?
- Use the custom post type archive for taxonomies?
- Taxonomy template page not working
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Running a custom query inside another cpt single and trying to grab a variable
- Get posts by category name
- Query Custom Post Type by Taxonomy
- Copying over taxonomy structure from one CPT to another
- Sort Archive by Taxonomy
- Query all posts under one taxonomy? Why is my code not working?
- Display ONE taxonomy and its assigned pages
- CPT archive with WP native/core tax/categories
- Page that lists publications by classifying them by taxonomy
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Filtering posts based on three taxonomies
- Display category filters for custom post type when category is shared by multiple post types
- How to order taxonomy terms by most recent post?
- editing shortcode for custom post type within a plugin
- How to display all terms from all taxonomies in post, but separately for each taxonomy?
- Change custom post taxonomy values from front-end
- List all posts associated under custom taxonomy
- How to transfer categories (default) to custom taxonomy?
- Pages of my taxonomy terms are showing all posts
- Custom post type category link + add to menu
- One of my headings is mysteriously coming up as a link in my CPT Archive
- Single taxonomy for different custom post types
- Reuse the “category” slug for a custom post type
- Taxonomy and Custom Post type with Collpase
- Best approach to allow front-end display of posts’ reviewers?
- Listing Custom Post Post from certain category
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Type parent slug as menu item
- Sorting on Taxonomy in archive page
- Displaying taxonomy icon outside archive page
- Taxonomy Grid Archive Help?
- Archive templates based on taxonomies
- List a custom post type’s posts ordered by nested custom taxonomy
- Author template – separate custom post type by custom taxonomy term for $curauth
- Single and Archive Pages with Custom Post Type
- Sharing a custom taxonomy – No posts?
- See the process of creating a taxonomy and tell me where I made a mistake
- show only one category posts in admin
- How do I get parameters from the URL?
- Show only taxonomy types terms associated with a custom post type in WordPress PHP
- Taxonomy term archive claims there are no posts, but there are. How to resolve?
- How to list custom taxonomy terms without the hyperlinks?