How do I use custom fields to insert a thumbnail in my excerpt?
-
Following on from this thread about an issue I had with excerpts which I managed to resolve myself, I’m now trying to work out how to insert a thumbnail image into my excerpts to liven them up.
I would like to use the thumbnail image that WordPress automatically generates and saves whenever you upload one as it’s about the right size at 150×150 px and saves me uploading one or saves the browser from scaling down the full size image contained within the post. Some plugins do generate thumbnails from images contained with the post but not all of my posts have images that are suitable for thumbnails, e.g. just contain an RSS icon, which looks rubbish when scaled up to 150×150 px.
I’m wondering if there is a way to force a thumbnail image to show in my excerpts by using custom fields as I can then control when I want one to display and when I don’t. Thanks in advance for any pointers.
- The topic ‘How do I use custom fields to insert a thumbnail in my excerpt?’ is closed to new replies.