Weijing

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: display opening events #21366
    Weijing
    Member

    Thanks Joyce
    I solved it using wp_query.

    in reply to: display opening events #21253
    Weijing
    Member

    by “opening” i mean events of which the start date is today.
    ongoing events is what the default upcoming events is.
    http://www.nihao-chicago.com/events/
    this is our site.(it’s in chinese) as you can see, the first event in the list starts on may 4th and ends on sep 23. it looks as if the list is dated.

    in reply to: display opening events #21167
    Weijing
    Member

    This is the code I’m using right now:
    global $post;
    $start_date= date(‘j M Y’,);
    $end_date = date(‘j M Y’, strtotime(‘7 days’));

    $get_posts = tribe_get_events(array(‘start_date’=>$current_date,’end_date’=>$end_date,’posts_per_page’=>10) );

    foreach($get_posts as $post) { setup_postdata($post);

    /*post*/
    } //endforeach
    wp_reset_query();

    But the returned list looks exactly the same as the default template.
    can anyone help?

Viewing 3 posts - 1 through 3 (of 3 total)