Closed guuthemes closed 10 years ago
You can use MultiPostThumbnails::has_post_thumbnail()
the same way you would use the standard has_post_thumbnail()
to check for it. Just pass in the same parameters you would to MultiPostThumbnails::the_post_thumbnail()
. You could also use MultiPostThumbnails::get_post_thumbnail()
which will return false
if there isn't one to be more efficient.
Hi,
Have this currently -
And was wondering if there was an option to show a placeholder image if the thumbnail had not been set?
I can achieve this via the usual route of - if ( has_post_thumbnail($post->ID) ){ .... else ......placeholder.img etc...
But cannot see how I could hook this into your code?
many thanks