The aptly named is_post_type_archive()
seems to be what you need, or perhaps that plus is_archive()
depending on exactly what you are trying to do.
Related Posts:
- How can I remove the “Add New” button in my custom post type?
- Submit post and upload image from front-end
- Taxonomy, Terms, and Template Files
- Quick edit screen customization
- How do I filter the excerpt metabox description in admin?
- WP_Query orderby custom field then post_date in one query
- Using Custom Fields in Custom Post Type URL
- How to show more posts on an archive page?
- How to list all categories and tags in a page?
- Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?
- Display posts of custom type in hierarchical order
- Many to Many Taxonomies or rewrite rules?
- How to display the rest of categories on Portfolio filterable
- How to query custom post type by term?
- Custom Post Type Name Causing Problem
- attach one post from one post type to another post from another post type
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Post the content of a specific “Custom Post Type” post within a post using a shortcode
- How to get the first term for the current taxonomy?
- Including an External File in a Post (and Using Processed Paths)
- Notice: Undefined property: stdClass::$delete_posts with custom post type
- get_template_part for custom post type content not working
- Ignore sticky posts if post is not in meta query
- Creating Accordians in WordPress Theme
- Multiple custom post type loops in category.php
- Display Posts in Custom Post Types Timber
- Find the user who initially created the post
- Custom Post Type with has_archive ignores my custom archive and single template
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Pagination on a custom post type loop
- Display all post titles of current post type
- Custom post type multiple loop by taxonomy term
- Add custom post type settings to wordress default posts
- A better way to add a meta box to custom post types
- How do I set all of a particular post meta to a value within the custom post type I’m in?
- What’s the WP way to load remaining custom posts?
- Manage custom post type in woocommerce /my-account/ page
- Custom post Type, child of a Page?
- How to add a contribute page
- Some posts from custom post type to subdomains
- WordPress subpages to custom post types
- Different results between permalink and query var search
- How can I display custom post types on a page?
- calling categories in a custom post type
- 404 Error on form submission within custom post type
- Query of custom post types only shows first post
- Set thumbnail and title for a post type archive (not post itself!)
- Can I restrict category availability?
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Conflict between Capabilities and Menu Visibility with Custom Post Types
- Custom Post not working as expected
- How to use next_posts_link/previous_posts_link for custom post types paginate?
- How to insert data into meta box from another plugin?
- Remove categories taxonomy from custom post type
- Generate new post from email
- YOAST SEO won’t work on custom post type archive [closed]
- CPT Taxonomy As Archive Page – Error 404
- Can a custom post type be used as a ‘parent’ on a normal page?
- Methods for development wordpress themes [closed]
- Custom Post Type Archive Pagination
- Preventing role reading others posts
- Query custom posts of logged in user only
- How to keep a record of changes to a custom field?
- Custom post type specific category box
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Post type to calendar
- How can I increase the post count for custom post types only?
- Update value inside array update_post_meta
- Search custom type post
- WP query_posts group by meta field related
- CPT: Enable Gutenberg, but disable editor field
- Publish box in CPT remove ‘edit’ link
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- custom post type and a “sticky” position taxonomy
- Is image slider possible in wordpress post
- custom post template design with dropdown option
- Staggering featured post using ‘sticky’
- Confused about where to store my data
- Pagination for custom query returns 404
- How can I get the last 5 element of this tax query?
- Custom Post Type duplicating slug for new posts
- Metaboxes in Loop
- order taxonomy alphabetical
- Query breaking with ‘posts_per_page’ => -1
- Custom Post type and Taxonomy in post URL error
- Custom Post Type Organisation – Taxonomies, Categories and Pages
- How to avoid hardcoded text in a custom page template?
- Exclude categories For Custom post types
- How to use get_sidebar in plugin folder?
- How to Create Custom Post Type with Multiple Color Options?
- Filter CPT based on meta box value using Flexible Posts widget?
- Custom Post Type supports author
- Custom post type & role issues
- Display Custom Post Type on Toolset Types Plugin
- Filter Custom post type by another Custom post type
- Show search for data extracted from metabox
- Retrieve a post with its ACF repeater fields in wordpress
- Filter page ID outside the loop and order
- the_post_navigation in single page with multiple taxonomies
- display related posts based on the PAGE TITLE