-1
The intention would be to make cards like this from the last posts,
Catching the first image of the post this all inside a "the loop". Chunks of the codex I tried, but it didn’t work:
index php.:
?php
if ( have_posts() ) : while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
?>
content.php (part):
<img src="<?php the_post_thumbnail_url(the_post()); ?>" alt="">
Does this method return which image within the post? Any with a specific "thumbnail" tag or the first image of the post? I tried to use this function but the image inside the post was not returned.
– Matheus Ramalho Arnaud
So in fact in the standard Wordpress only has a highlighted image, you are using some plugin? Woocommerce maybe?
– Lucius