Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I dont want to use the WYSIWYG at the top of my Custom Post Type. I want to use a custom field textarea that i can place at bottom of my list of custom fields instead.

Is this possible?

share|improve this question

3 Answers 3

up vote 4 down vote accepted
add_action('init', 'init_remove_support',100);
function init_remove_support(){
    $post_type = 'your post type';
    remove_post_type_support( $post_type, 'editor');
}

place it to your themes functions.php

share|improve this answer
    
That was quick. Perfect. You're a star. –  scottgemmell Nov 16 '12 at 16:12
    
Note: I would recommend calling remove_post_type_support() inside the same callback that you call register_post_type(), to ensure proper order of execution. –  Chip Bennett Nov 16 '12 at 16:21
    
I dont see register_post_type() in functions.php. I am using Custom Types UI in combo with AdvancedCustomFields. –  scottgemmell Nov 16 '12 at 16:42
    
That you're using the Custom Post Types UI Plugin is a rather important detail to your question. :) The Plugin exposes the supports parameter in its UI. Refer to these screenshots. –  Chip Bennett Nov 16 '12 at 16:58
    
Aaahh... OK thanks. –  scottgemmell Nov 16 '12 at 16:59

Alternatively, you can handle post-editor support directly in your register_post_type() call, via the 'supports' parameter in the $args array.

The default value is: 'supports' => array( 'title', 'editor' ).

You can change it to whatever you need; for example: 'supports' => array( 'title' ).

share|improve this answer

Re: this comment:

I am using Custom Types UI in combo with AdvancedCustomFields.

The Custom Post Types UI Plugin exposes all of the register_post_type() $args array parameters in its UI.

In this case, you simply need to find the Supports section, and disable/uncheck Editor:

Custom Post Types UI Plugin - Register Post Type options

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.