Support » Plugins » Hacks » Custom Post Types Have No TinyMCE Editor

  • Hi Folks!

    There are no content-editors on the custom post types of a site I am working on.

    I’m hoping someone can shed some light on what could be causing this.

    I have tried manually setting 'editor' => true on the post types.

    I have tried removing everything from functions.php except the post types, disabling all plugins, and removing wp-alchemy.

    I have tried adding a new custom post type after removing all plugins & functions.

    The WordPress-core has not been edited.

    Thanks in Advance!

Viewing 1 replies (of 1 total)
  • Thread Starter admcfajn

    (@ajmcfadyen)

    Fixed!
    Replaced this:

    function register_testimonials(){
     	$labels = array(
    		'name' => "Testimonials",
    		'singular_name' => "Testimonial",
    		'add_new' => "Add New",
    		'add_new_item' => "Add New",
    		'edit_item' => "Edit Testimonial",
    		'search_items' => "Search Testimonials"
    	);
    	$args = array(
     		'labels' => $labels,
    		'description' => "Testimonials",
    		'menu_position' => 10,
    		'public' => true,
     		'hierarchical' => true,
    		'rewrite' => array("slug" => "testimonial", 'with_front' => true),
     		'supports' => array(
     			'title',
     		 	'_custom_meta'
     		)
    	);
    	register_post_type('testimonial', $args);
    }
    add_action('init', 'register_testimonials', 10, 2);

    With this:

    register_post_type( 'my_testimonial',
        array(
            'labels'                => array(
                'name'              => __( 'Testimonials' ),
                'singular_name'     => __( 'Testimonial' )
                ),
            'public'                => true,
            'show_ui'               => true,
    		'supports'              => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail' ),
            'rewrite'               => array( 'slug' => 'testimonial', 'with_front' => false ),
    		'has_archive'           => true,
    		'show_in_nav_menus'     => true,
    		'taxonomies' 			=> array('category', 'post_tag')
        )
    );
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Types Have No TinyMCE Editor’ is closed to new replies.