0

I have this in my functions.php

add_theme_support( 'post-thumbnails' );

This means all my post-types (normal posts and custom-post-types) have post-thumbnails enabled.

Is it possible to just enable them inside a custom-post-type and not on normal posts?

3

Use remove_post_type_support to disable features for specific post types.

add_action( 'init', 'wpa63635_init' );
function wpa63635_init() {
    remove_post_type_support( 'post', 'thumbnail' );
}
| improve this answer | |
0

If you specify a "supports" argument when registering the Custom Post type, you can leave out "thumbnail" which will disable it for that post-type.

See the Codex entry for register_post_type and look at the 'supports' argument.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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