WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 10 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
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

You can actually disable the WYSIWYG editor, leaving only the html source editor. Choose a function below:

add_filter('user_can_richedit', 'disable_wyswyg_for_custom_post_type');
function disable_wyswyg_for_custom_post_type( $default ){
  global $post;
  if( $post->post_type === 'product') return false;
  return $default;

add_filter('user_can_richedit', 'disable_wyswyg_for_custom_post_type');
function disable_wyswyg_for_custom_post_type( $default ){
  if( get_post_type() === 'product') return false;
  return $default;
share|improve this answer

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


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.