the thumbnail support is working for post, but I have another post type called product and it is not working for this. I am trying: add_theme_support( 'post-thumbnails', array( 'post', 'product' ) );
I am also using the multiple post thumbnail plugin.
Leave a Reply
You must be logged in to post a comment.
By default all custom post adds support for Title and editor, if you want more stuff like comments, thumbnail and revisions you have to add it manually in the support argument.
Read more about how to register your custom post type here, you can also find the section about support to see what you can add.
Here is an example wehere to register thumbnail for the custom post “Books” and it hav support for:
'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments'
For custom posts, you first have to enable support for thumbnails:
You can also use
add_post_type_support()
to add a single feature, if you don’t want to rewrite the defaultsupports
options when registering your custom post type: