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
- Saving Taxonomy Terms
- Get Posts by Custom Post Type ,Taxonomy, and Term
- How to change permalink structure for custom post type and it’s taxonomies?
- 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
- 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?
- Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy
- Group Custom post type in a page by its taxomony tag
- create a back-end wordpress content submission using custom post type
- Same base slug for CPT post and CPT taxonomy terms
- wp_insert_post custom taxonomy
- Displaying related posts in a custom post type by a custom taxonomy
- Display taxonomy term only if there’s a value
- Post Link Filter Help [closed]
- How to list custom 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]
- Tag page with Custom Post Types not returning any posts
- 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 make custom taxonomy into drop down select in a custom metabox
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy in URL
- How to organise this data within WordPress
- How to Set Taxonomy Object Description?
- Custom select query for taxonomies that have posts categorized in another taxonomy
- How to assign tag to custom post type in wordpress?
- Hide meta box for everything BUT a certain custom post type
- How can I create an automatic drop down menu with my tags?
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- Custom taxonomy template list not working (404)
- Use the custom post type archive for taxonomies?
- Taxonomy template page not working
- Custom taxonomy template shows 404 Error
- How to constrain the results to a specific post_type on tag archive page?
- Running a custom query inside another cpt single and trying to grab a variable
- Custom Post Type with modified permalink structure results in 404
- Get posts by category name
- Problems making shortcode with custom post types and taxonomy
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Get post-meta value of all custom-posts – lowest to highest year-count?
- Query all posts under one taxonomy? Why is my code not working?
- How to use taxonomy term as permalink folder
- CPT archive with WP native/core tax/categories
- Order posts by taxonomy terms
- Display related CPT with custom 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
- Define multiple prefixes for custom post type
- Taxonomies are not showing in the category dropdown
- Change custom post taxonomy values from front-end
- Custom post types not showing on the standard WordPress Category page
- List posts that have the current url taxonomy
- How to transfer categories (default) to custom taxonomy?
- Taxonomy to Post Type. Every Taxonomy Item can be Producer or Developer
- Custom Taxonomy – fields
- Pages of my taxonomy terms are showing all posts
- If custom taxonomy exist on post?
- Reuse the “category” slug for a custom post type
- Displaying the Taxonomy and a Queried Term on a taxonomy.php page?
- Permalinks for a custom post type – with a page template (custom query) and taxonomy archive
- WordPress add taxonomies/terms list as a menu in archive page
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Sorting on Taxonomy in archive page
- Create an additional template page for every term taxonomy
- Displaying taxonomy icon outside archive page
- Taxonomy Grid Archive Help?
- Query Distinct Taxonomies of Custom Post Type
- Show taxonomies from specific CPT
- Using a Taxonomy in Two Spots in a WordPress Post
- insert a taxonomy for a custom post type
- List a custom post type’s posts ordered by nested custom taxonomy
- Custom Post Type Template based on Taxonomy
- Author template – separate custom post type by custom taxonomy term for $curauth
- custom post type tags
- See the process of creating a taxonomy and tell me where I made a mistake
- Taxonomy listing issue – does not display how I would like
- Taxonomy Archive URL + Template