I have been banging my head against the wall on this one!
I am creating a custom template for the home page. Everything seems to be working fine EXCEPT I can't get the excerpts to show!!
The idea is to have three columns that each pull the most recent post from a specific category. The title and "read more" are showing up and linking through to the appropriate posts, but the excerpt itself is not showing up. It will only do so if I create an explicit excerpt which I really don't want.
Here's the code I'm using:
<?php $posts = get_posts('numberposts=1&category=6'); foreach($posts as $post) : ?> <h2><a>"><?php the_title(); ?></a></h2> <p><?php the_excerpt();?></p> <p><a>">Read more...</a></p> <?php endforeach; ?>
I'm using the Twenty Eleven theme and I've already created a child theme.
Here's the testing page: http://jannmirch.com/ypie/
You'll see the left column has the manually added excerpt.