Home Forums Pure Theme Discussion & Support Events page showing past events

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  themeweaver 4 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3068

    JM Knowles
    Member
    Post count: 19

    http://app-promo.com/news-events/events/

    Any idea what I am doing wrong? BTW – we launched the site today. Everyone is super happy with your theme!!!

    #3079

    themeweaver
    Keymaster
    Post count: 730

    Ah, surprised nobody noticed this before, but this is a bug in the template file.

    It will be updated in next version or you can edit the query in template-events.php around line 23 to the following code:

    $args = array(
    					'post_type' => 'event', 
    					'posts_per_page'=>  $posts_per_page,	
    					'meta_key' => 'los_event_start',  //this still need up to 3.1, but future enhancement on cards
    					'meta_query' => array( array( 
    												'key' => 'los_event_start', 
    												'value' => strtotime("today"),
    												'compare' => '>=',
    												'type' => 'numeric'
    												) 
    											),
    					'orderby' => 'meta_value',
    					'order' => 'ASC',
    					'event_category' => $blog_cat,
    					'paged' => $page
    					);
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.