Not getting past events when on category or archive page

Home Forums Calendar Products Events Calendar PRO Not getting past events when on category or archive page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #50540
    mitchell360
    Participant

    For some reason, when I use tribe_get_events to get past events on a category or archive page, the result is is none.

    If I run the same code on a single page (is_single()), the result is as expected.

    Here is the snip. Anything obvious here?

    $past_webinars_args = array(
    'start_date'=>$begin_date_range,
    'end_date'=>$end_date_range,
    'posts_per_page'=>-1,
    'tax_query'=> array(
    array(
    'taxonomy' => 'tribe_events_cat',
    'field' => 'slug',
    'terms' => 'cpe-webinar'
    )
    )
    );

    $past_webinars = tribe_get_events($past_webinars_args);

    #50583
    Barry
    Member

    It’s possible some of that code was lost (unfortunately, the forum doesn’t deal with code very nicely). Can you paste the code to Pastebin, Gist or a similar service then add the link here?

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Not getting past events when on category or archive page’ is closed to new replies.