How do I control the dimension for post thumbnails (featured images) on the homepage (blog) of my site?
Dimension for the post thumbnails need to consistently be 470px x 370px. I have tried adjusting the dimension in Settings > Media
but this does not work.
My code:
<div class="posts__post">
<article>
// post thumbnail in question
<a class="posts__post--preview" href="https://wordpress.stackexchange.com/questions/239844/<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
<p class="posts__post--tag"><?php the_category(' / '); ?></p>
<h1 class="posts__post--title"><a href="https://wordpress.stackexchange.com/questions/239844/<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<p class="posts__post--meta"><?php echo time_ago(); ?></p>
</article>
</div>
I initially imported posts via the Codex theme unit test page and enabled featured images within my function.php file
.