Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • r3volution11, thanks a lot. Your first block of code worked out great. And you were correct about it not limiting the posts which I was able to resolve by limiting the overall posts in the admin section. Thanks again.

    I recently upgraded wp 3.1 and now the upcoming events are not showing at all… Anyone figure this out? Here is the code I’m using:

    <ul>
                  <?php $calender = get_cat_ID( 'Events' ); $calender_link = get_category_link( $calender );?>
                  <?php global $spEvents;
    	$spEvents->loadDomainStylesScripts();?>
                  <?php
    		$todaysDate = date('Y-m-d G:i:s');
    		$cal_query = new wp_query('category_name=Events&posts_per_page=3&meta_key=_EventStartDate&meta_compare=>=&meta_value='.$todaysDate.'&orderby=meta_value&order=ASC'); ?>
                  <?php while ($cal_query->have_posts()) : $cal_query->the_post(); ?>
                  <li><?php echo the_event_start_date( null, false ); ?><br />
                    <?php the_title('<a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a>'); ?>
                  </li>
                  <!-- End tec-event-entry -->
    
                  <?php $alt = ( empty( $alt ) ) ? ' alt' : '';?>
                  <?php endwhile; // posts ?>
                </ul>

    Any help would be awesome.

Viewing 2 replies - 1 through 2 (of 2 total)