/tag/thetag/
is the correct default permalink for a tag archive. There is no concept of per-post type taxonomy archives, just a single archive for all types.
The issue you have with a 404 on those pages if they only contain custom post types, is that the built in tag and category taxonomy archives by default only query the post
post type. If you want to add custom types to that you need to hook pre_get_posts
and add your custom types to those queries.
function wpd_custom_types_on_tag_archives( $query ){
if( $query->is_tag() && $query->is_main_query() ){
$query->set( 'post_type', array( 'post', 'your_custom_type' ) );
}
}
add_action( 'pre_get_posts', 'wpd_custom_types_on_tag_archives' );
Related Posts:
- Categories and Tags not working!
- How to remove custom post type archive
- How to use a custom post type archive as front page?
- tag.php doesn’t work with tags on a custom post type post?
- Proper way of making custom post type landing page or archive page
- Load custom posts with same tag as page
- Custom Post Type Archives with 0 Posts Redirects as 404
- How to filter custom post type archive by meta value
- “Edit” option for custom post types archive page
- Get posts with tag all post types
- Get monthly archives for custom post type
- How to get_queried_object on multiple objects?
- Assign Page Template Within A Custom Post Type
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- Post type archive page not working
- Custom Post Type – Archive page title
- Should I change these content meta types before building complex archive page?
- Getting taxonomy terms used by custom post type
- Archive or taxonomy pages not working for custom post type
- Query for custom posts with a specific tag slug
- associate custom post type with tags with specific pages
- How to list custom post types?
- I am facing problem in my archive page , it is partially working
- taxonomy template for custom post type the same as the archive
- Display only post types that are direct children of the current taxonomy
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Custom post type search with slug in URL
- Conditional tags don’t work
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Custom template won’t load for a custom post type (custom permalinks used)
- Group posts by custom post type
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- CPT custom archive template does not get loaded
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- Custom post type is showing custom home page, not archive page
- URL of a custom post type’s post format archive?
- Create template for taxonomy results limited by Custom Post Type
- How to use has_archive but disable feed per post type?
- Custom post type: Disable single page, but keep archive
- WordPress post_where & posts_join not working only for custom post type
- Custom Tag Description unable to display just below and outside of the Loop
- Custom Post Type has_archive
- list archives per post types
- Cross reference custom post types
- Display a custom posts page for post type
- How to get all tags of a custom post type by id
- Is it possible to have a custom post type with feed but without the archive?
- My archive-posttype.php template is not loading
- Add parent post to Custom Post Type [closed]
- Show all tags on custom post type
- data-type=”” … needed post tags stripped of characters
- What’s the name of the custom post type yearly archive template?
- How to display CPT archives?
- get_the_tag_list() returns bad links
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- How to list tags from custom post type attachments?
- current-menu-item not added on page showing custom post type (rendered with archive template)
- Permalink problems with custom post type and custom taxonomy
- Use the custom post type archive for taxonomies?
- Print all the tags from a custom post type
- How to constrain the results to a specific post_type on tag archive page?
- Default post_tag for custom post type
- Custom posts – tag pagination
- How to Display the tag content of Custom Post?
- add_action ‘init’ from inside a class for custom post types
- Custom post type category permalinks and archive pages
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- One post auto attached to many another items
- Navigate by Tags inside a custom Post Type
- CPT archive with WP native/core tax/categories
- Invalid content when I try to import custom post type from the old template wordpress
- Search CPT by tag ids
- How to add specific terms in a custom post type?
- Finding the CPT archive template source
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- Group custom post type posts by month
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- Custom Post didn’t display on tags page
- get_permalink() of page the enclosing page not posts
- How to manage a custom post type archive as a page?
- Custom post types not displaying per category
- How do I get the posts from single page custom post type from a sidebar to display in a page?
- Custom post type with two templates
- Custom Post Type tag taxonomy “Page Not Found”
- Do not output category and tag URLs
- Custom post types archive
- Filter custom post type by tags
- Custom Post Type – Admin Columns
- Archive.php is not displaying tags
- Custom post type category page not working
- paging is not working properly on news archives page [duplicate]
- CPT Archive with parent page
- Tags and Taxonomy links not working for Custom Post Types
- Post type cloud like tag cloud?
- custom post type not getting archived?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Remove plugin’s custom post type archive page and single pages [closed]
- how insert how many post type in this function?
- Dynamic WordPress rewrite rules for multiple custom post types
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query