WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Events not showing on the home page (1 post)

  1. masok88
    Member
    Posted 4 years ago #

    Hey,

    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.

    Any advice?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic