have you tried Settings > Pages > Event List/Archives > Are current events past events
agelonwl your method does not work done as you said and everything is the same as the output and output?
maybe you can create your own scope for this; here is a tutorial to help you get started – http://wp-events-plugin.com/tutorials/create-your-own-event-scope/
e.g.
$today = date('Y-m-d', current_time('timestamp'));
$conditions['scope'] = " event_start_date > CAST('$today' AS DATE)";
you can paste your custom scope in your theme functions.php
Hello agelonwl why your method does not work. I did so with the beginning of the topic of his template in the file functions.php in the end of the added code like this https://www.dropbox.com/s/3x90drq77ekjuer/fa1.jpg then I looked in the admin Events saw there that add time filter here https://www.dropbox.com/s/4ksps62gf2c15ez/f2.jpg but why it does not work instead of that would display on the strip, it displays all the events that I have. Can I do something wrong? I have a version of events-manager Version 5.3.9
maybe it’s because of your condition based on your screenshots ‘+14 days’ ? did you try my sample snippet above?
Why then this method does not work even with the demo with http://wp-events-plugin.com/tutorials/create-your-own-event-scopeI took the copied code in the functions.php the theme of the so https://www.dropbox.com/s/6oq4ieiwtqvg36l/kat1.jpg Then I opened the Admin Events https://www.dropbox.com/s/cdxf7ll03p83z07/tb2.jpg Under condition of code from the demo with us We’ll show you how to create your own scopes by creating a custom “Today and Tomorrow” scope but in the following screenshot why then the filter does not work message may 30, not Invisible does not become https://www.dropbox.com/s/5wlriew4oz6i0au/kl3.jpg In what may be the reason I don’t know ? So angelo_nwl if there are any consideration about this then please tell me
I see why… it’s because the admin area uses a different filtering system (wp_query)
this should work on your front-end pages, but not in the admin area, you could wrap the my_em_scopes function in an
if( is_admin() ){
....
}
to stop it showing admin-side for now.
Will have to update the tutorial to allow admin scopes too…
Marcus thank you very much now it all became clear