Archived topic
Display Featured Image In Latest Posts with Excerpt
9 replies · Started by Tim on March 16, 2020
Hello
I would like the Featured Image of a Post to display beside the Excerpt in the Latest Posts widget.
How can I achieve this ?
Also if I didn't want to use the Featured Image, but instead the first image in the Content, how could I achieve that ?
Thanks
Tim
Hi there,
the default WordPress Recent Posts widget doesn't support thumbnails.
You would need to use a plugin instead - for example:
https://en-gb.wordpress.org/plugins/recent-posts-widget-with-thumbnails/
Hi David
I'm not aware of a best practice method for adding a such a third party widget to the main content area of a page.
Do you have a code snippet or alternative solution for that ?
Thanks
Tim
I think we have our wires crossed - can you share me a link where i can see the Latest Posts ? You can edit your original topic and use the Site URL Field to share a link privately.
Hi David
I have updated with a link.
It is a Page currently using the WP "Latest Posts" widget for a single category "team" with its listing option set to "Excerpt"
I'm attempting to add the Post's thumbnail to the listing.
Thanks
Tim
Aah ok - the Latest Posts Block doesn't support featured images either.
We recommend the WP Show Posts plugin for creating lists:
OK Thanks David
I have that working now listing with WP Show Posts with the Featured Image and Excerpt, I didn't see a way to use first image in post, so now I'm wondering if there is a way to suppress displaying the Featured Image from the post view ?
Thanks
Tim
See here:
https://docs.generatepress.com/article/adjusting-the-featured-images/
TLDR - Customizer > Layout > Blog --> Featured Images -> Post (tab) Uncheck Display Featured Image
Great.
Thank you again David for fast tracking me through the options and switches.
Happy to be of help