最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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??

发布评论

评论列表(0)

  1. 暂无评论