Home / admin / Disable the visual editor for posts and pages
  • How do you make the editor totally gone (e.g. display:none; ) for certain post types? For example, all content will be by filling out custom fields. Thanks, Kevin.

    •  Hi Cliff, This is a sample custom post type

      function sample_post_type() {
          register_post_type( 'sample_cpt',
                  'labels' => array(
                      'name' => __( 'Sample' ),
                      'singular_name' => __( 'Sample' ),
              'public' => true,
              'menu_position' => 5,
              'rewrite' => array('slug' => 'sample'),
              'supports' => array('title','thumbnail','editor'),    // supports options

      add_action( 'init', 'sample_post_type' );

      The following can be added,

      ‘editor’ (content)
      ‘thumbnail’ (featured image, current theme must also support)
      ‘comments’ (also will see comment count balloon on edit screen)
      ‘revisions’ (will store revisions)
      ‘page-attributes’ (menu order, hierarchical must be true to show Parent option)
      ‘post-formats’ add post formats, 


      So if you remove the option editor from that array above it will not display the editor, then add excerpt or what ever other options you would like.