I have to update an existing CPT which needs to support editor
it was
$args = array(
'label' => __( 'annual reports', 'ledexpo2018' ),
'description' => __( 'Annual Reports', 'ledexpo2018' ),
'labels' => $labels,
// Features this CPT supports in Post Editor
'supports' => array( 'title', 'author', 'thumbnail', 'custom-fields', ),
// You can associate this CPT with a taxonomy or custom taxonomy. 'editor',
'taxonomies' => array( 'category' ),
/* A hierarchical CPT is like Pages and can have
* Parent and child items. A non-hierarchical CPT
* is like Posts.
*/
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
// Registering your Custom Post Type
register_post_type( 'technical-issues', $args );
and i added editor to the supports parameter
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'custom-fields', ),
but after a restart and even a permalink update the editor window is not visible??
What do i need to check/do to get this to work??
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745363233a4624455.html
评论列表(0条)