Problem with Meta boxes on CPT
-
I have a custom post type that used to have a meta box available. I disabled the public setting for a bit but now I cannot get the meta boxes (on the edit post page) back again. Here is my CPT code. I have checked all the dashboard taxonomy settings many times and as far as I can see the metaboxes should be loading. Any idea what I’m missing.
// Local Reps Custom Post Type $labels = array( 'name' => 'Local Reps', 'singular_name' => 'Local Rep', 'menu_name' => 'Local Reps', 'name_admin_bar' => 'Local Rep', 'archives' => 'Rep Archives', 'attributes' => 'Rep Attributes', 'parent_item_colon' => 'Rep:', 'all_items' => 'All Reps', 'add_new_item' => 'Add New Rep', 'add_new' => 'Add New Rep', 'new_item' => 'New Rep', 'edit_item' => 'Edit Rep', 'update_item' => 'Update Rep', 'view_item' => 'View Rep', 'view_items' => 'View Reps', 'search_items' => 'Search Rep', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into Rep', 'uploaded_to_this_item' => 'Uploaded to this Rep', 'items_list' => 'Rep list', 'items_list_navigation' => 'Rep list navigation', 'filter_items_list' => 'Filter Reps list', ); $args = array( 'label' => 'Local Rep', 'description' => 'Local Sales and Support Representatives', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 6, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => false, 'capability_type' => 'page', ); register_post_type( 'local', $args );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with Meta boxes on CPT’ is closed to new replies.