php - WordPress Text Editor Buttons not showing -


so, have here custom post type in wordpress , working except when tried add new item , switch visual editor text editor , found out there no buttons available. in text editor have these buttons "b", "i", "link", "ins", "img", "ul" , etc..

it's kind of weird, since pages , posts had buttons. below code tried add custom post type function.

add_action( 'init', '___regposttype' ) ;  function ___regposttype() {  $labels = array(      'name' => _x('custom post type', 'post type general name'),     'singular_name' => _x('test post', 'post type singular name'),     'add_new' => _x('add new item', 'test item'),     'add_new_item' => __('add new item'),     'edit_item' => __('edit item'),     'new_item' => __('new item'),     'view_item' => __('view item page'),     'search_items' => __('search item'),     'not_found' =>  __('nothing found'),     'not_found_in_trash' => __('nothing found in trash'),     'parent_item_colon' => ''  );  $args = array(      'labels' => $labels,     'public' => true,     'publicly_queryable' => true,     'show_ui' => true,     'query_var' => true,     'menu_icon' => 'dashicons-welcome-learn-more',     'rewrite' => true,     'capability_type' => 'post',     'hierarchical' => false,     'menu_position' => null,     'supports' => array('title','editor','thumbnail')  );   register_post_type( 'test' , $args );  } 

i not sure if there's parameter missing or function missing here hope can figure out...


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -