My custom_post_type fields are showing up in custom fields
-
Hi,
I’ve created a ‘custom post type’ and when you go to add/edit a post or page, my ‘custom post type’ fields appear in the custom fields section. I don’t want them there, is there a way to not display them in the custom fields section?
Here are the arguments for my custom_post_type:
$args = array( 'label' => 'products', 'labels' => array(), 'description' => 'Displays Products', 'public' => true, 'publicy_queryable' => true, 'exclude_from_search' => false, 'show_ui' => '', 'capability_type' => 'post', 'capabilities' => array(), 'hierarchial' => '', 'supports' => array(), 'register_meta_box_cb' => '', 'taxonomies' => array( 'category', 'post_tag' ), 'menu_position' => 4, 'menu_icon' => '', 'permalink_epmask' => '', 'rewrite' => '', 'query_var' => '', 'can_export' => true, 'show_in_nav_menus' => true, '_builtin' => '', '_edit_link' => '' ); $labels = array( 'name' => 'Products', 'singular_name' => 'Product', 'add_new' => 'Add New', 'add_new_item' => 'Add New Product', 'edit_item' => 'Edit Product', 'new_item' => 'New Product', 'view_item' => 'View Product', 'search_items' => 'Search Products', 'not_found' => 'Products not found', 'not_found_in_trash' => 'Products not found in trash', 'parent_item_colon' => '' ); // hook register_post_type('product', $args);
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘My custom_post_type fields are showing up in custom fields’ is closed to new replies.