I've tried my best to scour the net and find the solution as to why this isn't working. The goal I am attempting to accomplish is to have the Loop use the featured image thumbnail if the post thumbnail equals NULL. Currently the code is as follows:
<?php if (is_category('News') && is_tag('Anime') && has_post_thumbnail()){
the_post_thumbnail('homepage-thumb');
}
if (class_exists('MultiPostThumbnails')) :
MultiPostThumbnails::the_post_thumbnail(
get_post_type(),
'post-image',
NULL,
'homepage-thumb');
endif;
?>
Thanks in advance for any help you can give me.
Aucun commentaire:
Enregistrer un commentaire