I’m using the following code to display posts listed under the category ‘events’ along with three other queries listing posts listed under ‘news’ and ‘blog’..
<?php query_posts('category_name=events&posts_per_page=5'); ?> <?php while (have_posts()) : the_post(); ?> <li> <span class="date"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php echo get_the_date(); ?></a></span> <p class="aggregator-entry"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></p> </li> <?php $alt = ( empty( $alt ) ) ? ' alt' : '';?> <?php endwhile; // posts ?>
And before I active the events plugin it’s working fine. However, when I do the links fail to display. News & Blog queries still work ok, I’ve used this article (http://wordpress.org/support/topic/405084?replies=2) which seems to work fine on another site I had built but for some reason it’s not working.
- The topic ‘[Plugin: The Events Calendar] Events not showing on the home page’ is closed to new replies.