I have been googling online, searched here in forums and have experimented with a couple of excerpts plugins but haven't been able to find something that works how I wish it to. What I would like to accomplish is:
- for posts to display manual excerpts where I have written one
- to display a thumbnail image in the manual excerpt (that I can position using CSS)
- if there isn't a manual excerpt, to display the whole post instead
Ideally, the code would check to see if there was a manual excerpt - if there was, to display the excerpt otherwise the post in it's entirety. Most of my posts have use the Audio Player plugin and have it embedded at the top before any text and this can lead to some ugly automatic excerpts displays.
For example, the code within the index.php file of my theme reads
<?php the_content('Read the rest of this entry »'); ?> which, after reading a bit more about it in the Template Tags in the Codex, if I replace it with
<?php the_excerpt('Read the rest of this entry »'); ?> does then show any manual excerpts but then displays automatic excerpts for all other posts which don't have any as this image illustrates.
I found and read an articles called "How To Display Manual Excerpts On Your Home Page" (see here) and "How To Create Conditional “Read More” Links For Manual Excerpts" (see here) which seemed to have a solution (except for displaying a thumbnail) but it doesn't seem to work and I'm wondering if I've implemented the code correctly.
So basically, I would like to use manual excerpt function within WordPress - to display one if I've written something (preferably with a thumbnail image) otherwise to just display the whole post. I'm going to experiment a little more but any help or suggestions appreciated. Thanks.