Ive tried always to show custom image for vendor but nothing showing.
<?php
// Exit if accessed directly.
defined( ‘ABSPATH’ ) || exit;
?>
<div class=”hp-vendor__image”>
<?php
if ( has_post_thumbnail() ) :
the_post_thumbnail( ‘hp_square_small’ );
else :
?>
” alt=”<?php echo esc_attr( $vendor->get_name() ); ?>”>
<?php endif; ?>
</div>
It looks as though
if ( has_post_thumbnail() ) :
the_post_thumbnail( ‘hp_square_small’ );
Is empty so only showing placeholder.
Any ideas?