visual editor - Modifing an existing Custom Post Type doesn't work?

I have to update an existing CPT which needs to support editorit was$args = array('label' =>

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

相关推荐

  • visual editor - Modifing an existing Custom Post Type doesn't work?

    I have to update an existing CPT which needs to support editorit was$args = array('label' =>

    8小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信