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:
- Create a custom archive page for a custom post type in a plugin
- Admin Filter – Add Post Type Description on Post Type Page
- how to group custom post types
- How to add custom columns to Custom Post Type admin screen
- Custom post type Admin Page
- Page is defaulting to archive page and not designated template
- custom post type archive page url to point to Page permalink
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Add Settings to Custom Post Type
- Ordering Post 2 Post admin meta box by meta from CPT
- Custom post type permalink structure with the category also acting as an archive
- Custom Post Type Works but Still Shows “Page Not Found”
- Rewrite custom post type url’s adding meta box values
- I can’t set meta_key in my custom post type query
- Displaying Post Title on Post Edit page?
- Archive page for taxonomy of custom post type
- Add meta data to the custom post type ARCHIVES page
- Make a custom column sortable, by custom post count
- Using multiple instances of wp_editor in Custom Post Type admin area
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- How i add new link after Edit | Quick Edit | Trash | View in quick edit section
- Use a textarea for a custom post type
- Restrict categories to a custom post type
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- Adding menu_order to CPT admin page
- Custom query variable – get wordpress to redirect to nice permalink url
- add_rewrite_endpoint() and Custom Post Type Archive
- Custom post type archive page pagination
- Add custom post type archives to search results?
- How to make post sticky in the admin page?
- Second Custom Post Type Archive
- How do I get the permalink structure to work like this?
- is_main_query() not working for WP REST API
- WP_Query | ‘post_type’ doesn’t work
- Editable Meta Data for Custom Post Type Archive Template
- Admin not showing all custom post type posts and views not working
- Unable to retrieve any posts of CPT in wp-admin
- Set up Custom-Post-Type Author Archive
- Custom post type templating problem
- Addition of custom option panel crashes Media Library & Admin Area
- Single post with a Custom Post Type returns 404, when archives of the CPT work correctly
- Custom post type archive page blank
- Admin Filter – Add Post Type Description on Post Type Page
- Creating a Custom Post Type
- Custom Post Type slug same as page name
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- It’s possible to hide body copy box for a custom post type?
- WordPress custom post type capabilities issue
- How to integrate single and archive templates for custom post type in any WordPress theme
- Show categories of custom post type and not all posts
- Custom Post Type with Configurable Sidebar via ACF
- Questions regarding add_meta_box()
- Archive page for custom post type and custom taxonomy
- Order Custom Post Type Archive by multiple values in functions.php
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- Sorting custom post types in edit.php : Post disappear
- How to have multiple archive pages?
- Create a Custom Path to Archive
- Display All Courses in Course Archive Page
- Hide title field of selected post-types on edit pages
- Archive page of CPT’s custom Taxonomy
- Getting Same Description in All the Custom Taxonomy Posts
- Archive page for WordPress Custom Post Type doesn’t show pagination from paginate_links()
- Custom post type archive URLs with a single taxonomy
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- Admin Post Table – Remove Title Edit Link
- Custom post type author issues
- Custom Post Type / Taxonomy not displaying archive
- pagination problem listing custom post types of taxonomy in wordpress
- ACF Pro Accessing fields on a Custom Post Type
- Do not show child pages within a file page
- Permalink for custom post type pages not working
- Restrict Custom Post Type to One Item
- Set archive of custom post type like ‘posts’ page in reading settings is set
- Custom taxonomy with custom post type archive page
- Simple Data picker meta box
- Custome post type “tags” pick default archive instead of custom post type archive
- Customize url from the_terms
- Want to display my custom date archive to date.php but dont know how
- Help with Multi Level Category Archive Page
- Highlight a Post on archive page if it has a new comment?
- Display custom post type archive on page.php template
- Pagination fault in custom post type archive page [duplicate]
- Custom Post Type Archive Links Not Working
- CPT archive as home page
- Archive page of filtered posts
- Why is this custom post type defaulting to archive.php?
- Show a custom field instead of username in the backend author area
- Can’t preview custom post – Redirected to home page
- 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
- admin search of pages returns custom post types
- has_archive for default post type
- Pagination for Custom Post Type with Multiple Types
- Custom Post Type Archive Title Lowercase
- Pagination not working only on Archive-Name.php using new WP_Query
- 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