Archived topic
show image in excerpt post
7 replies · Started by John on August 4, 2016
Hi Tom,
Is there a way to show a image which is in a post (not a featured one) in the excerpt of that post?
Kind regards
John
WordPress excerpts strip all HTML (including images).
However, you could set a manual excerpt using the more tag which will include HTML: https://generatepress.com/knowledgebase/using-the-more-tag/
Hi Tom,
Thanks for your reply.
Ik now it must be possible to do, because the website i want to restyle with GP is built with a theme that doesn't use features images. The image which is placed in the post is shown in the excerpt. Even not above but left or right aligned. (sliedrecht24.nl)
Maybe an idea to place it in the suggestions for GP ?
Kind regards
John
They might be using a custom excerpt function, which isn't a good idea (and not allowed in themes on WordPress.org).
OK, in that case i have to live with it. :-(
Kind regards
John
A plugin like this might help: https://en-ca.wordpress.org/plugins/advanced-excerpt/
Hi Tom
Many thanks, i also found this one" https://en-ca.wordpress.org/plugins/easy-custom-auto-excerpt/
I am glad that I can continue with the website.
Kind regards and have a nice weekend,
John
Glad I could help.
You too! :)