• Hi guys,

    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:

    http://www.brownsmart.com.au/test-page-for-sidebar/

    And here is the code I’m using to generate that:


    <div class="when">
    <span class="month"><?php echo date('M', $start_time); ?></span>
    <span class="date"><?php echo date('j', $start_time); ?></span>
    </div>
    <!-- Post Starts -->
    <div class="post wrap">

    <div class="show">
    <?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');?><
    </div>
    </div>

    </div>
    <!-- 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:

    http://www.brownsmart.com.au/

    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..

  • The topic ‘[Plugin: The Events Calendar] Events List Widget — how to get the excerpt to work?’ is closed to new replies.