By default in WordPress if you create a new post, or custom post type based on post, and fill in the title but no body and press “Publish” it will save it as a draft instead of actually publishing it. If the post is saved as a draft it won’t show up in your list of posts during the loop.
Can you elaborate more on why you’re trying to accomplish this? There might be an easier solution for the bigger goal.
However, if you do want it to work exactly as specified, you’ll To specifically modify which posts go through the loop, you would need to run a custom query.
Did you already modify the loop by adding parameters or doing a custom query? If so, please post that for a start.
Related Posts:
- Prevent trash/delete action on specific post types
- How to add custom content template part for a custom post type on main query using a plugin
- Loading custom page template via plugin
- Why The Init Hook For Custom Post Types
- wordpress plugin error handling
- How to get term link that crosses different custom post types?
- register_taxonomy with multiple object type and update_count_callback
- How often do you need to register_post_type?
- Where to put archive-{post-type}.php
- How to use a dedicated template for the Custom Post Type from a plugin?
- Determine which template-{slug}.php is being loaded
- How to append text to title of Custom Post Type post (without affecting all titles on page)?
- Remove POST_TYPE from custom post type permalink
- Use a textarea for a custom post type
- Make custom post type display as a page
- How do I include drag-and-drop in a plugin?
- How to rename image at uploading on specific plugin or post-type in WordPress
- How do I alter the position of a Custom Post Type menu item within my plugin admin menu?
- Custom Post Type Navigation on Custom Field
- Plugin translation not working apart from name and description
- Get rewrite slug of custom post type in template
- Hook to override title, image and content
- Custom posts don’t work
- No posts found – Custom Post Type show_ui
- How to customize a permalink (URL) structure?
- WordPress multiple custom post types capability conflict in a single menu
- Update post meta not working in transition_post_status
- Addition of custom option panel crashes Media Library & Admin Area
- Custom post type archive page blank
- Custom post listing page layout of custom post type
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- A custom post type in another post type
- Plugin fatal error
- Wrap meta boxes & data handling for specific post types in classes?
- Suggestion on custom post type/ taxonomy relationship
- WordPress custom post type capabilities issue
- HowTo: Custom Post Type (Meta) to Custom Table
- Custom Empty Results page for my Custom Post Type
- How to group navigation items in the admin panel
- How to access the thank you page from the single post?
- How do you make a list and list item relation if custom post types?
- Add form after woocommerce admin order edit
- Custom Meta Box returns no HTML
- How to Use Custom Meta Field Instead of CPT Title in Post URL
- Validate Custom Post Type fields
- Is it possible to sort metabox teaxtarea values?
- shopping cart plugin development
- Modify a plugin function output from another plugin
- how can i show a google map in custom post type
- Custom rewrite rules for /pastissues/%category%-%postname%.html
- Content in WP Editor displayed below CPT shortcode [duplicate]
- How add column from new table in Custom Post Listing (admin)
- Writing a custom Glossary plugin
- restricting custom rewrite to just one custom post type
- Change Text in Admin Panel
- allowing custom user role to access custom post type in wordpress admin
- How to show Custom Post Types under Taxonomy in a new WordPress page template?
- Custom Endpoint For Specific Custom Post Type
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- custom post type and user post count shortcode
- How to display the post using a shortcode in WordPress?
- Custom post type specific item design
- Issue removing columns from admin table
- Shortcode and get_template_part
- dynamic vue widget inside custom post
- Getting data from dynamically allocated metaboxes within a custom post
- WP REST API Custom endpoint don’t work in my plugin
- Insert custom taxonomy into category query
- % encoded URL giving 404 error in WordPress
- how to allow subscriber to add/edit/delete custom post type
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- Custom meta box in editor of custom post type not working
- what file is required to be created in plugin folder in order to show all the post content of a CPT with the help of permalink
- Not Able to Get Custom Post Type in Single and Single-custom-post-type
- Remove Custom Capability
- Can I override the permalink/slug on creation
- call_user_func_array() error after moving to another server
- Displaying multiple custom post types in single post type at admin section
- Custom Post Type Audio Content
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Items By Group added to custom post type
- Custom Taxonomy Showing in WP Menu
- Issue on Adding Taxonomy to Custom Post Type Using Function
- Custom Post Types in plugins?
- Multiple Block Quotes without using HTML
- How to apply order on custom taxonomy and custom meta key on custom post type
- Hide custom post type and use its slug in new plugin menu
- Set a Custom Post Type as a Homepage
- Need some hints for my own WP theme development
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- Custom Post Type urls not working
- I want to show a list of post with title that have link goes to that post and icon under the specific category to which it belongs
- Custom post type template not loading from plugin
- Redirect to All Custom post types
- I am having a problem with fetching product data in the Gutenberg block editor
- how can i call archive-{post type}.php template from my custom plugins to my theams?
- REST API callback function is not called
- Add taxonomy or category slug to custom post types URL
- Redirection after saving a post
- How to fix post_tags not showing for a CPT in new post for a custom user role?