I don’t know of a conditional tag, but here’s how you would list the built-in types:
echo implode(',', get_post_types( array('_builtin' => true ) ) );
Output:
post,page,attachment,revision,nav_menu_item
Maybe better:
// 1 result if it exists and is builtin, 0 otherwise
get_post_types( array('_builtin' => true, 'name' => $post_type ) );
Related Posts:
- How do test if a post is a custom post type?
- Conditional for single-{post-type}.php
- is_singular() not working if called via callback function of admin-ajax.php
- functions.php conditional tag only for custom post type
- Exclude custom function content from certain pages
- Get template part based on custom taxonomy term
- If on term-page -> get the current term?
- custom post type upcoming post and past post
- changing default comment form arguments [duplicate]
- is_page_template not working as expected
- remove child post from custom post type archive
- if custom posts type exists and there are posts load script
- Need help targeting a custom post type with conditional tags
- Why would this IF statement not work? [closed]
- custom comments on specific post type
- Excluding custom post types
- Register widget only page is a singular of custom post type
- Conditional Query of Custom Post Type and custom taxonomy
- How to run filter only on custom post type edit screen
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Custom Post Conditional for Parent & Child Single.php?
- Conditional for a Single Post That Belongs to a Category?
- How to show only the most recent post on my custom post type archive?
- Conditional Tags for specific category of custom posts
- Move Genesis Single Page/Single Post Title
- How to check if post/page or taxonomy post is published by admin
- TinyMCE Buttons on Certain Post Type
- Display message if no posts in Custom Post Type loop
- Showing taxonomy terms on custom post type
- Check if custom post is a parent?
- Redirect to URL if x number of days passed
- comments hooks on custom post type
- Conditional Statements
- If custom taxonomy else conditional [closed]
- If tag exists, then echo once
- Show specific content on parent custom post type and all children
- Use conditionals with wp_enqueue_style to attach stylesheet according to post type displayed
- How can I check the rewrite slug of current post type listing page
- How to add custom PHP code in post header?
- $_SESSION Not working after X amount of page views
- conditional based upon the count of current user’s published custom posts
- Custom metabox fields not saving when limited to a certain CPT
- Can not hook into custom post type template with: is_page() conditional?
- Diffrent search templates for different post types
- Conditional Tags If Custom Post Parent & Child?
- Custom Post Query Combined with Conditional Tags
- Conditional statement checking two conditions for CPT and Custom Taxonomy [closed]
- strange conditional tag behaviour [duplicate]
- Custom post type is_singular condtional not working when managing sidebar display
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- How can I change the admin search posts fields?
- Creating conditional blocks for WordPress Gutenberg
- Removing base slug from hierarchical custom post type
- Highlight menu item when on a custom post type?
- Querying custom posts and regular posts
- Post slug changed using code doesn’t reflect on editor when post is published
- Detect meta value changes when post is updated (post_updated)
- How to show particular category all post in custom single file
- How to remove ‘create new post’ entry for a custom post type?
- Changing ‘view’ link for custom post type on list post screen?
- WordPress nl2br is not converting newline to html line break when saving metabox value
- Create custom PAGE with register_post_type
- Update CPT post meta with update_post_meta and cron job
- Calculate all custom field values in the post loop
- Rewrite post type slug only for child theme
- Checking if Post Title is Unique as Loop Criteria
- Team club with CPTs and user registration + user dashboard
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Create custom post with custom user rules
- next_/previous_post_link() `in_same_category` appears to fail when true
- Add a ‘guide’ image to custom post type admin page
- archive as a page, so that it can be added in the wp_menu_nav
- singular_name label in custom post type
- Different post title, keywords and description
- Get Terms from Custom Taxonomy and Current Post
- Catch and display error on save_post action
- How to display related posts using the same taxonomy for custom types (WordPress, Pods, Woo)
- Filter custom post type admin list by custom meta column, where the column is another custom posts meta value
- Adding featured image to a new post using front-end form?
- Static Front Page not working for custom theme
- Is there a way to create a sidebar of bullets
- From CPT Custom Loop into Shortcode?
- Set a Default CPT taxonomy by taxonomy id
- Skip latest 3 posts from loop
- Custom taxonomy terms registered not showing when added in child theme
- How to redirect from wp-admin/edit.php to a frontend page for specific custom post type?
- Display all Custom taxonomy terms and their relevant custom posts
- wordpress query_posts with foundation 6 Accordion not working correctly
- Best way to group posts based on custom post type terms
- How to remove UI access to Custom Post Type using direct links?
- get_post_types doesn’t work in plugin
- Would like to add a “leaderboard” (custom field) to a custom post type
- I have a custom post type that I want to query a dynamic category name from a custom meta field
- Is it possible to make one of two custom fields in Custom Post Type UI Required but not the other?
- adding a shortcode into a custom post type
- Custom Post within a custom post
- using a template for more then 1 page
- Add word limit in wordpress posts editor
- wordpress custom post type shows other cpt posts in admin menu
- How to add custom permalink struct with DYNAMIC author to a Custom Post Type