Have you made sure your CPT is using the 'has_archive' => true,
parameter?
And try something like;
wp_reset_query();
if (is_post_type_archive('articles')){
// do something
}
Related Posts:
- Custom post type single-{custom}.php not working
- Filtering a custom post type by custom taxonomy in archive template
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- get term archive url / link
- Pagination throws 404 error on custom taxonomy archive pages
- How to build a complex page structure
- Archive page with multiple taxonomies rewrite
- Create permalink structure for one taxonomy archive per custom post type
- Custom Post Type Archive URL takes over page URL
- Pages, Custom Posts & Custom Taxonomy defining slug structure
- How to show a tag archive of one post type only
- Custom taxonomy archive page not working
- How to show multiple post types on taxonomy archive?
- Disable single pages and archives and keep preview
- Custom post type archive sorted and grouped by date in post meta field
- How to create archive page for taxonomy terms within custom post type
- Category and post tag archives do not include posts from custom post type
- Get post type from taxonomy or category page
- Limit users by custom taxonomy and user roles
- custom taxonomy archive by year
- Display custom post type taxonomies as an archive page
- Generate Shortcodes by Taxonomy
- 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)
- Displaying a custom post types custom taxonomy value?
- Archive page for taxonomy terms
- Custom Post Type Archive Page Filtering
- Root slug of taxonomy returning 404
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- Create template for taxonomy results limited by Custom Post Type
- Help need making decision. Ads rotating site on wordpress
- custom taxonamy and post type
- Return the latest post from a custom Taxonomy and Post Type
- Don’t know how to show custom taxonomies from a custom post_type
- Display a grid of taxonomy terms at root taxonomy page
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- How to have this permalink structure: post_type/postname/custom_inner_page
- Custom post type / taxonomy rewrite archive page 2 gives 404
- How to produce a sub-page-system in WordPress
- How can I get this request to use the Custom Post Type page template instead?
- Archive for a Taxonomy of a Custom Post type
- What’s the name of the custom post type yearly archive template?
- Archieve.php not loading for custom post type
- Custom Post type & Taxonomy 404
- Taxonomy archive 404ing (not term archive)
- Custom taxonomy or custom page templates?
- Dynamically insert an article at the top of a taxonomy archive – or?
- how to get this tax_query working?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Show Taxonomies with admin area for custom post type?
- Archive links for custom post types
- Include custom post type custom taxonomies in Categories widget
- Use the custom post type archive for taxonomies?
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Archive page for custom post type and custom taxonomy
- Why does my URL keep returning 404 error code?
- Advanced archive url structure (category, tag and date)
- Getting Same Description in All the Custom Taxonomy Posts
- Error 404 change permalink term custom term taxonomy
- Custom post type 404 category page
- Custom Post Type Archive Page showing as 404
- How to search through all child taxonomies using WP_Query?
- I have a random letter appearing before my content. Where to start looking for the cause?
- Set up Custom Taxonomy Archive Template File To Cover 3 Categories
- Custom Post Taxonomy Template Not Loading Properly
- How to show custom post count in archive page
- Custom Post Type archive page listing a 404 or single post
- How to display only child category post in related posts in custom post type?
- Order archive custom posts by taxonomy term [duplicate]
- Custom category taxonomy – archive page not showing up
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Custom taxonomy archive slug overwrites static page
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Help with Multi Level Category Archive Page
- Custom Post Type tag taxonomy “Page Not Found”
- Custom post type with custom taxonomy permalinks
- Custom taxonomy page template
- show custom taxonomies in hierarchy
- archive-{custom_post_type}.php not getting recognized wordpress
- Archive.php is not displaying tags
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- How to Create Custom Post Type with Multiple Color Options?
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Custom post type and custom taxonomy archive inaccessible
- Apply custom names for generic custom taxonomy name?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Show custom category archive as front page and remove taxonomy slug from urls
- Multiple Content Block
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Loop custom taxonomy to get lists of cutom post types?
- Query & Order posts by custom fields
- Display post content with respect to its title?
- WP_Query orderby and tax_query
- Creating custom post type with custom taxonomy and custom fields programatically
- How to see posts in taxonomy endpoint
- Arduous WordPress Custom Post Type Permalink Path
- Archive page of taxonomy returns a 404 error
- How to change permalinks to taxonomy and post type’s posts