Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m assuming that you’re familiar with editing your own template files?

    I use this in my template for ordering it by eventdate.

    <?php $wp_query->set('meta_key', '_EventStartDate');
    		          $wp_query->set('orderby', 'meta_value');
        			  $wp_query->set('order', 'ASC');
        			  $wp_query->get_posts(); if(have_posts()) : while(have_posts()) : the_post(); ?>

    ASC = From old->new

    For this code, how do you make sure that if an event has passed, the post no longer shows up in the loop?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: The Events Calendar] Sort by date of event and not date of post’ is closed to new replies.