Jump to content

custom post types : Featured Image problem


sergi

Recommended Posts

my theme supports post-thumbnails. they work when i am adding a post.

 

however, i don't have the option to add them when i'm creating a Custom Post Type.

 

i've completed Ben Falk's Custom Post Types videos, but I'm using Coyier's Blank Theme, not twentyten.

 

still, I have the array that should allow the thumbs to work in my register_post_types funtion, e.g., 'supports' => array('title', 'editor', 'thumbnail')

 

Anyone have any suggestions?

 

Thanks

 

Sergi

Link to comment
Share on other sites

It isn't something simple like the post thumbnails just not being visible on the edit page, right? To check this:

 

-- Create a new custom post

-- in the upper right corner on the edit page, click on the "screen options" tab

-- Check if there is a "Featured Image" checkbox? If it is there, I imagine that it won't be selected.

Link to comment
Share on other sites

Also, one other thing I thought of... In your functions.php file, when you add the add_theme_support() line for post thumbnails, you didn't specify a specific content type (posts/pages/a custom post type/etc), right? I believe that the line should be:

 

add_theme_support('post-thumbnails');

 

rather than (or similar):

 

add_theme_support( 'post-thumbnails', array( 'page' ) );

 

or you'll need to specify your custom post type within the array.

Link to comment
Share on other sites

Also, one other thing I thought of... In your functions.php file, when you add the add_theme_support() line for post thumbnails, you didn't specify a specific content type (posts/pages/a custom post type/etc), right? I believe that the line should be:

 

add_theme_support('post-thumbnails');

 

rather than (or similar):

 

add_theme_support( 'post-thumbnails', array( 'page' ) );

 

or you'll need to specify your custom post type within the array.

 

yeah, this is what ended up working:

 

add_theme_support( 'post-thumbnails', array( 'post', 'video', 'magazine' ) );

 

thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...