Can you provide a link to your site and a little more explanation on what you are trying to achieve?
Here’s a shot in the dark guess.
Archives shows content of type ‘post’, but you can alter it to include custom post types. Add this filter to your functions.php file:
function namespace_add_custom_types( $query ) {
if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
$query->set( 'post_type', array(
'post', 'nav_menu_item', 'your-custom-post-type-here'
));
return $query;
}
}
add_filter( 'pre_get_posts', 'namespace_add_custom_types' );
Related Posts:
- Custom Post type & Taxonomy URL structure
- Combining Multiple Taxonomies in one URL
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- Remove taxonomy slug when not assigning taxonomy with custom post types
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- Custom Post Type Advanced Slug
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Hide custom post type slug url from search engine [closed]
- Rewriting a custom-post-type permalink with taxonomy term?
- Custom Post Type Permalink / Rewrite not working immediately
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Taxonomy, Terms, and Template Files
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- Change slug of registered custom post type in child theme
- Templates for Custom Post Types and Custom Taxonomies
- Create permalink structure for one taxonomy archive per custom post type
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Custom permalinks
- Understanding Permalinks on Custom Post Types
- Add links to post categories and taxonomies in wysiwyg link modal?
- Prepend meta_value to permalink of post
- Rewrite permalinks for custom posttype and custom taxonomy
- How to check if last uri segment is a custom post type or taxonomy term?
- Custom Permalinks for Custom Post Types and Taxonomies
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Custom post type category, taxonomy and URL rewrite problem
- Define permalinks for custom post type by taxonomy in WP 3.4
- Custom Taxonomy List links being re-written
- Highlight nav menu terms
- Custom Post Type: How to display all of same taxonomy?
- Custom Post Types, Custom Taxonomies and Permalinks ?
- Want to filter only parent post in admin area
- Remove “-2” from a Toolset Types URL with the same post name
- Programmatically adding posts
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- multiple url slug for single custom post type
- Custom post type and taxonomy permalinks – Structure
- Custom Post Type and Custom Taxonomy Permalinks
- How do I fix permalinks for custom post types that has the same slug as a page?
- Permalink Structure CPT With Custom Taxonomy Fails
- Change Permalink Structure for Tag.php template
- Why does wordpress keep adding postname to my CPT’s permalink in the end?
- Remove post type slug of all post types from permalinks
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- How can I see a list of my Custom Post Types of the last term I was in?
- Child post with numeric only slug keeps redirecting to parent
- Custom post type url with category
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How to filter wp_list_categories output with some custom post type meta query?
- Permalink for a custom post type isn’t working and I don’t know why
- How to Filter custom post type by taxonomy?
- How can I make the slug of the taxonomy also the slug of the custom post
- Assign same parrent Page to pages AND custom post types
- Removing custom post type slug from URL
- Customize Custom Post Type URL
- How to have this permalink structure: post_type/postname/custom_inner_page
- Custom taxonomy returns 404
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- permalink /category/post-name with custom post type and taxonomy
- Custom post type and taxonomy permalinks
- Custom permalink with child taxonomy terms
- Custom post type Permalinks with hierarchical Taxonomies
- Template files for Custom Post Type and Taxonomy
- How do you create %post_type%/%postname%/ permalink structure?
- Can’t use pagination with custom taxonomy
- Using page slug in wp_query
- Filter posts by tax (dropdown) and meta value
- Listing all slugs?
- How to get all posts related to particular category name on button click?
- Changing CPT slug and taxonomy already registered in parent theme
- Using page title as a link to term archive
- Error 404 change permalink term custom term taxonomy
- Filter in Custom post type to find the parent post
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- Change permalink incrementor into pseudo-subdirectory
- Remove CPT Slug with 2 taxonomies and 1 post meta
- Pretty permalink structure with multiple (AND OR) taxonomies
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Custom Post type and Taxonomy in post URL error
- How can I add a “fake” parent into the permalink?
- How to retrieve the permalink for a specific (custom) term?
- Add category slug as class attribute in a link array
- Exclude Custom Post Type from shared Custom Taxonomy
- Costum post type with costum (sub)taxonomy
- WordPress Custom Permalink Structure with Custom Post Type and Taxonomies
- Add taxonomy to custom post type archive
- Permalinks Works for Custompost type but not with pages Why?
- Problem with Custom Post Types, Taxonomy, permalink, Archive
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)
- Modify permalink of CPT archive to support two taxonomies
- Have Custom Taxonomy Slug Fall Under Custom Post Type Slug