181 comments found

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years

How do I get my upcoming events to only show future events (no expired events)? This code is showing expired events:

[dt_events_list limit=’3’ excerpt_length=’15’/]

designthemes

Hi..! Hope that the following instruction & screenshot will help you get a clear view.

1) Open the file wp-content/themes/sushi/framework/theme_shortcodes.php

2) Find the function dt_events_list

3) Find the following line of code in that function

$all_events = tribe_get_events(array( ‘eventDisplay’=>’all’, ‘posts_per_page’=> $limit ));

4) Change “all” to “upcoming”. Thats it!!!

https://www.dropbox.com/s/ehskfjduiswjovy/upcoming_events.png

Let us know, if you find any difficulties…!

by
by
by
by
by
by