Giving a blank array to ‘supports’ in the declaration of the post type should get rid of the editor and the title, along with every other default box in the edit post page.
$supports = array ('');
$args = array(
'label' => 'people',
'supports' => $supports,
'hierarchical' => false,
'public' => true,
'rewrite' => true
);
register_post_type( 'people', $args);
Result:
Populate ‘supports’ with whichever elements you want to show up, such as trackbacks, comments, etc. Or just leave it blank to leave the page empty, except for the box that lets you save your posts. Make sure to visit here if you want to get rid of hierarchical taxonomy metaboxes as well.
Related Posts:
- Visual editor issue by having multiple tiny mce editors in a CPT
- Is it possible to activate customfield ‘text description’ upon activating the customfield ‘checkbox’?
- Editor / Add Media: Is it possible to only allow galleries?
- Advanced search form with filters for custom taxonomies and custom fields
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- What should I use – Taxonomies, custom fields, Post Type?
- Automatically fill custom field value on post publish/update
- Right way of storing large number of custom post fields
- Retrieving values of custom fields in Quick Edit mode
- Orderby custom field for custome post type
- List upcoming events, ordered by date in a custom field
- Custom Post Type with Custom Title
- How to create download links based on Custom Fields with Rewrite API
- One to many custom post relationships
- Backend search; include CPT meta?
- Use Custom Post Type as Custom Field
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Saving multiple Metabox contents
- How to Sort Custom Field Admin Column by Date
- How can I customize “Pages” admin (edit.php) and “Edit Page” admin (post.php) for bulk edit of custom content type?
- Custom post type / custom fields
- how to set default value for checkbox in wordpress
- WordPress Rest API only returns content when posttype has editor capability
- How to Display ACF Relationship Custom Field as Link to Specific Custom Post?
- Take Variables Set in Functions.php and Echo Them Inside My Custom Post Template
- Assign Taxonomy Based on Custom Field Value
- Ajax form filter post by custom fields [closed]
- Custom Posts Hierarchy? (State/City/Restaurant)
- Customize permalink when creating a post
- wp_query to find posts by year and month
- Assigning the same custom meta box to multiple post types
- meta_query compare >= not working but
- How to structure a site with product variations pages?
- Save an array from drop-down in custom meta box
- Including Custom Meta with posts_where query
- How to create shortcode to display custom field value on a custom post type
- How to set up multisite for multi language?
- Filtering custom post type on a combination of custom taxonomies and custom fields?
- Creating a Custom Post as a repository for theme constants
- Orderby CPT custom fields not working
- get_post_meta not working on publishing
- Query custom post type with ACF Date
- How to create a custom post type with additional fields?
- Add custom field in comments form
- Order Custom Post Type by Custom Field Value
- Hierarchy and access control for Custom Post Types (CPT)
- Hierarchical custom fields
- Fields for different parts of a page
- Facebook social publisher and custom post type fields [closed]
- Searching Custom Fields
- Custom Post Meta from custom metaboxes is randomly being deleted
- How to display custom field value on page?
- How to get specific post meta by title or id
- Populate a custom field dropdown with post titles by author
- echo selected value from dropdown
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- Get data from PHP to JavaScript to set position of each post on front page
- Capabilities not working with custom post type
- Get custom term meta problem on single post type
- Adding Template Post Content
- How to display a WordPress Custom Field only on a specific day of the week?
- Filtering custom posts by custom fields (ACF) [closed]
- Incorrect ordering of custom post type based on time
- How can I see a list of products that I have set to outofstock through a custom field check box?
- delete duplicate meta_value with same post_id
- Save Custom Fields
- Writing a custom Glossary plugin
- Filter search posts by post meta?
- Adding a location field to buddypress activity
- Display Posts that fit a certain criteria on Category pages
- Sort custom post column by generated value?
- How to only display all posts to a custom User Role?
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- register_rest_field update_callback don’t work for $_FILES
- How to convert Post Object Custom Field into Tags
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- I want to create a metabox under custom taxonomy
- Sql Update CPT from publish to draft and particular custom field
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- PHP Notice: Unidentified index
- check_admin_referer not working in custom meta box for custom post type
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- How do I add custom fields to posts without having to manually add everytime I post?
- How to display custom post type ordered by a custom field date
- Setting a custom $query->query_vars[‘meta_key’] breaks the WordPress menu
- WP_Query and two custom fields returns no posts
- I want to split this into two functions
- Repeatable Custom Field for Media Upload
- How to store datetime from custom meta box so that it can be sorted by
- Custom Post Meta on a Different Page?
- Custom Post type easy way for editors
- Adding a custom field after post title (ex.Example Title [30 Second Read])
- Creating post custom field text area
- querying to custom field over ACF REST API
- Send email on creation of custom post type and use get_post_meta()
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu
- Post object GUID adding http:/
- WordPress does not show the custom fields box
- Query order by a numeric ACF field