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.