Its because you are already registered the cpt as blog
and set has_archive
to true
. That means, the url https://example.co/blog/
will act as the archive page for that CPT and URLs like this (https://example.co/blog/categoryname/
) will be treated as a post in that CPT.
All you have to do is change the rewrite slug of the custom taxonomy ('rewrite' => array( 'slug' => 'blog' ),
) to something else, then flush the rewrite rules (just hitting the save button in permalinks will do it) and it will work.
Related Posts:
- How to Add Custom Taxonomy To Woocommerce Plugin
- How to completely disable a taxonomy archive on the frontend?
- register_taxonomy with multiple object type and update_count_callback
- Custom Taxonomy and tax_query Issue?
- How to List Thumbnails based on Custom Categories
- Custom Taxonomy Not Showing in Menu
- Set object terms not working on plugin activation
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- get_object_taxonomies() returns empty array for custom post type
- Adding a custom post type taxonomy template in plugin
- How to add a custom taxonomy to show up in a custom post type menu?
- What is the best practice for displaying my plugin content in themes?
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- Plugin fatal error
- Custom post type’s extra fields – how to handle?
- Main query not querying any posts in custom taxonomy template
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- Dynamically insert code to custom post type loop
- Show current custom taxonomy
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Most viewed post of custom post type
- Writing a custom Glossary plugin
- Custom post type page with parameter
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- How to show Custom Post Types under Taxonomy in a new WordPress page template?
- Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
- Error 404 change permalink term custom term 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
- Changing CPT permalink
- I have a random letter appearing before my content. Where to start looking for the cause?
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- Insert custom taxonomy into category query
- % encoded URL giving 404 error in WordPress
- Which File Populating CPTs in Slug URL
- Not Able to List CPT Based on Taxonomy Term
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- Associate custom categories to different user IDs
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Render custom taxonomy query as single template
- Custom Taxonomy Showing in WP Menu
- Get term_id for each instance of custom taxonomy
- How to internationalize the sub menu name “categories” in Custom post type?
- Issue on Adding Taxonomy to Custom Post Type Using Function
- Custom Post Type urls not working
- How to filter custom post data with AJAX?
- Make term slugs of custom taxonomy available in WP REST API for custom post type?
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Combining Multiple Taxonomies in one URL
- get_edit_post_link() not working as expected when passed id in plugin
- ‘No pages found’ in Dashboard after registering custom taxonomy
- How to display recent posts added in custom post types
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Permalinks when filtering multiple custom post types by single taxonomy
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- How to have the right design for a custom post type without accessing themes
- Dynamic Custom Post Type Plugin
- How can I filter by taxonomy on a custom post type’s page?
- Custom Post Type: Upload Multiple Images
- Conditional Query of Custom Post Type and custom taxonomy
- Getting template_include to work when allow_url_include is off?
- Is $object_type truly required with register_taxonomy()?
- Specific query for custom post type
- Suggested Post and Taxonomy structure
- Display post content with respect to its title?
- Use custom walker to add taxonomy terms to main nav menu
- WP_Query orderby and tax_query
- ACF in wordpress
- Theme independent plugin by using default page template
- Creating custom post type with custom taxonomy and custom fields programatically
- How to see posts in taxonomy endpoint
- Add term slug in URL of custom post type details page
- Custom post type and custom taxonomy 404 on page 2
- Dynamic assign a custom template to custom post type posts
- Ideas on how to organize a project [closed]
- Custom post type in Custom widget – $listItem
- Arduous WordPress Custom Post Type Permalink Path
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Get dropdown child categories from parent category of custom post type
- How to display the post using a shortcode in WordPress?
- How do you create pillar content pages?
- dynamic vue widget inside custom post
- I want to create a metabox under custom taxonomy
- Grid slider with custom post type (how to filter with taxonomies?)
- Set different posts_per_page for custom post type/taxonomy
- Creating adminable dynamic filtering on custom post type
- Remove Custom Capability
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- WP_Query for CPT with filter by another WP_Query
- Get posts in same category not working
- Permalinks when using Custom Post Type with static page for archive
- How to change permalinks to taxonomy and post type’s posts
- Parent cpt/child custom post type URL permalink relationship
- Query Only Show Text on Posts With Certain Taxonomy Tag
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- How to add to taxonomies to a post type
- How to change post cpt with submit button?
- Filtering custom post types using category taxonomy
- How to use wp_set_object_terms depending on page ID?