New answers tagged thumbnails
I think the problem may be that the_post_thumbnail() doesn't accept an ID as a parameter. Instead you should use get_the_post_thumbnail() which does accept an ID as a parameter: <?php echo get_the_post_thumbnail($authors_post->ID); ?>
Sounds like you don't have an image library enabled with PHP (that probably should have generated some errors so maybe first look at your php error logs). Checkout if GD2 is enabled in your php.ini file.
<figure> <?php echo get_the_post_thumbnail( null, $size, $attr ); ?> <figcaption>here goes your caption</figcaption> </figure> for the_post_thumbnail check : https://developer.wordpress.org/reference/functions/the_post_thumbnail/
I think this code will help you: $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full', false, '' ); echo '<img src="'.$src.'">';
Top 50 recent answers are included