Instead of ‘post-thumbnails’, use ‘thumbnail’ in the ‘supports’ parameter and it should be working:
$args = array(
// ...
'supports' => array(
'title',
'author',
'excerpt',
'editor',
'thumbnail',
'revisions'
)
// ...
);
i’ve tried thumbnail, thumbnails, post-thumbnail, and post-thumbnails. none seem to work.
Is the thumbnail feature working on the default post page?
Maybe the code to enable the post-thumbnail feature in your functions.php has a typo?
add_theme_support('post-thumbnails');
that line is there, and there isn’t a typo as everything else that I have as supported is working. Are you telling me that when you create custom post types, the write panel for those types has the featured thumbnail in it?
right now the featured image box only shows up for the regular posts.
i found my problem. I had to add the custom post type to the array besides just posts. So I needed : add_theme_support( ‘post-thumbnails’, array( ‘post’, ‘custom-type’ ) );
@heroicnate, I’ve tried your example and can’t seem to get it to work. I’m beginning to wonder if it’s an issue with BuddyPress or a plugin I have installed. I can get Post Thumbnails to work fine on Pages & Posts. No dice on my custom post types.
Disregard. My issues ended up being related to the BuddyPress Classifieds plugin. Killing it fixed my issues. 🙂