I've been working on customising the Events List widget and have successfully done some tweaking but I'm getting stumped by another issue.
Bascially, I would like the post excerpt to be displayed along with the post. Here's a test URL with the widget enabled:
And here is the code I'm using to generate that:
<span class="month"><?php echo date('M', $start_time); ?></span>
<span class="date"><?php echo date('j', $start_time); ?></span>
<!-- Post Starts -->
<div class="post wrap">
<?php woo_get_image('image',50,50,'widget-post-thumbnail',90,get_the_id()); ?>
<div class="event"><h2><?php echo $post->post_title ?></h2></div>
<?php the_excerpt(); ?>
<div>" rel="bookmark" title="<?php _e('Find out more','woothemes') ?>"><?php _e('Read More..','woothemes');?><
<!-- Post Ends -->
You can see the_excerpt function in the code but for some reason it's generating the content, not the excerpt, as those excerpt fields are definitely filled. I would like the Widget to display something like what's on the home page:
I think it has something to do with the way the loop is generated for this widget. It's probably simple but solving this issue is a bit beyond my knowledge.
Thanks for your help..