Not showing in Admin UI
-
I did the following:
1) Created custom post type
2) copied code & pasted in functions.php
3) deleted the custom post type from CPT UINow i can visit the post type by going to “/edit.php?post_type=properties”, but it doesn’t show in Admin UI.
Here is the code i’m using:
/* Register Custom Post Type 'Properties' */ add_action('init', 'cptui_register_my_cpt'); function cptui_register_my_cpt() { register_post_type('properties', array( 'label' => 'Properties', 'description' => '', 'public' => true, 'show_ui' => true, 'show_in_menu' => 1, 'capability_type' => 'post', 'hierarchical' => true, 'rewrite' => array('slug' => 'properties', 'with_front' => 1), 'query_var' => true, 'has_archive' => true, 'menu_position' => '15', 'supports' => array('title','editor','thumbnail'), 'taxonomies' => array('locations','types','bedrooms'), 'labels' => array ( 'name' => 'Properties', 'singular_name' => 'Property', 'menu_name' => 'Properties', 'add_new' => 'Add New', 'add_new_item' => 'Add New Property', 'edit' => 'Edit', 'edit_item' => 'Edit Property', 'new_item' => 'New Property', 'view' => 'View Property', 'view_item' => 'View Property', 'search_items' => 'Search Properties', 'not_found' => 'No Properties Found', 'not_found_in_trash' => 'No Properties found in trash', 'parent' => 'Parent Property', ) ) ); }
https://www.ads-software.com/extend/plugins/custom-post-type-ui/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Not showing in Admin UI’ is closed to new replies.