What you are looking for is the_post_thumbnail();
.
You should do something like this:
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail(); ?>
<?php endif; ?>
More information can be found here.
What you are looking for is the_post_thumbnail();
.
You should do something like this:
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail(); ?>
<?php endif; ?>
More information can be found here.