[theme-reviewers] wordpress featured image
Abhik Biswas
abhik at itsabhik.com
Sat Aug 10 12:51:53 UTC 2013
Well, you don't need to remove the core defined image sizes to do what you
want to do.
If I read you correctly, a conditional to check cpt is all you need, like..
if ( get_post_type() == 'post' ) {
if ( has_post_thumbnail() ) {
the_post_thumbnail('your_thumnail_id_for_posts');
}
} elseif ( get_post_type() == 'customposttype' ) {
if ( has_post_thumbnail() ) {
the_post_thumbnail('your_thumnail_id_for_custom_post_types');
}
}
You'd get a better response if you asked this on Support
Forum<http://wordpress.org/support/>
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130810/3c5df1ab/attachment.html>
More information about the theme-reviewers
mailing list