Do you mean something like this?
$args = array( 'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
'rewrite' => true,
'capability_type' => 'post',
'hierarchical' => false,
'menu_position' => null,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
);
This code goes after the function that creates your CPT and before the register_post_type
i.e.
function my_custom_post () {
...
}
$args = array (...)
);
register_post_type ($cpt, $args);
Related Posts:
- Change the text on the Publish button
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- How to remove custom post type archive
- Row actions for custom post types?
- How to use a custom post type archive as front page?
- Custom Post Type Archives by Year & Month?
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- Get custom post type slug for an archive page
- Create a custom archive page for a custom post type in a plugin
- Register CPTs using Dashicons for admin menu icon in WP 3.8
- How can I remove the “Add New” button in my custom post type?
- Custom Post Type Settings page, choose page to display archive
- Adding a menu item for a Custom Post Archive
- Custom Post Type Archive Page not showing
- Adding custom post type archives to a WordPress menu
- How to set a custom post type to have viewable future posts
- Remove “posts” from admin but show a custom post
- Custom Post Type Template – Archive
- Page Template as Custom Post Type Archive
- Custom post type yearly/ monthly archive permalinks
- Can’t get post id on page that is a custom post type archive
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Add content in custom post type page after the title and before columns
- Change the edit page for a custom post type?
- How to check if I’m on a custom post type archive in the admin area
- Admin Filter – Add Post Type Description on Post Type Page
- How do you create an archive for a custom post type from a plugin?
- how to group custom post types
- How do I filter the excerpt metabox description in admin?
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- How to add custom columns to Custom Post Type admin screen
- Is it OK to move admin menu items?
- How to List All Custom Post Types Names (Not Posts)
- Hide/Show only specific categories in wp-admin new-post.php
- Best way to filter featured image text for a custom post type?
- WordPress Custom Post Type Admin Page really slow
- Templates list in “Page Attributes” metabox is inaccurate
- Stop Custom post type from being searched via URL
- Permalink of custom post type partly broken
- Remove the “View” Link in Post edit Admin
- Custom Post Type Pagination Problem in Admin Section
- Custom Post Type Archive Links Not Working
- CPT archive as home page
- Have two (permalinks) urls for a same custom post type
- Archive page of filtered posts
- How to display the FAQ Archive page in my menu
- Rewrite rules causing hole
- Filtering in admin broken for custom post type in 3.8.1?
- Custom post type category page not working
- Why is this custom post type defaulting to archive.php?
- Custom post type won’t take my custom fields
- title tag for custom post type remove taxonomy name from title tag
- How can I retrieve the slug for a custom post type via name?
- paging is not working properly on news archives page [duplicate]
- Change the text on the Publish button
- Show a custom field instead of username in the backend author area
- How can I set up the URL for a category archive for a custom post type?
- CPT Archive with parent page
- Can’t preview custom post – Redirected to home page
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- How to make an admin create/edit post page to look like taxonomy page?
- Archive Page Pagination not working
- Custom taxonomy archive page not routing?
- single-mySlug.php works: archive-mySlug.php does not. Custom Post Type
- Create a Page Templete to Display Table Of Content for Custom Taxonomies
- Show posts of parent in edit.php
- admin search of pages returns custom post types
- has_archive for default post type
- custom post type not getting archived?
- Pagination not working for archive
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Remove plugin’s custom post type archive page and single pages [closed]
- Pagination for Custom Post Type with Multiple Types
- Custom Post Type Archive Title Lowercase
- Add a class to a menu item depending on a body class
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- Pagination not working only on Archive-Name.php using new WP_Query
- Show custom post type on post category page doesn’t work / breaks navigation
- On archive.php show loop for child categories if they exist or posts if they don’t, on custom post type
- Pagination not working on custom post type archive
- Best practice to display a list/archive of Custom Posts in a Page Template
- Archive pagination – second page shows exactly the same posts
- Custom archive URL as a subfolder of the custom post type slug
- Custom order of CPT posts by title, in wp-admin area by default
- Change CPT Edit Target Link for Admin List
- Can’t add custom post type archive page to menu
- Dynamic WordPress rewrite rules for multiple custom post types
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- How to work with URLs where sometimes a post or a subcategory is in the same part of the URL structure
- Show only taxonomy types terms associated with a custom post type in WordPress PHP
- Create side bar widget showing list of years as hyperlinks for a custom post type
- Made a Custom Post Type using ACF. Via the dashboard I cannot see the view button to see the post
- Remove date rewrite rule for custom post type archive page
- Custom Post Type Pagination Showing 404 On archive pages
- Cannot create custom post types with a specific name
- Display posts of only a certain category in WP Admin section?
- Display box in sidebar of custom post type
- Rewrite taxonomy permalink appended to CPT archive url
- How to set up a private custom post type that is accessible in the administrative dashboard?