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

    How do I target a specific event or date for the countdown clock… not just the next event in line.

    #120062

    There’s no option for this atm but you can try to modify the theme files. Open up wp-contentthemesincarnationconfig-events-calendarconfig.php and replace:

    $defaults 	= array( 'posts_per_page' => 2, 'eventDisplay'=>'upcoming' );

    with

    $defaults 	= array( 'posts_per_page' => 2, 'eventDisplay'=>'upcoming', 'tax_query'=> array(
    array(
    'taxonomy' => 'tribe_events_cat',
    'field' => 'slug',
    'terms' => 'conferences'
    )
    ) );

    Instead of “conferences” use a custom event category which contains the events you want to use for the countdown clock.

    The change won’t take effect immediately – if you don’t want to wait for the next event remove following line:

    $next_event = get_transient('avia_next_event');

    Then reload your website and insert the code again.

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

The topic ‘Countdown clock’ is closed to new replies.