Hi, I resolved some questions, but not all.
I resolved the problem for invert ordering. I found a snippet on website and add to functions.php of my theme and works.
The problem for view for default the past event and not the upcoming events I resolved with this snippet added to my functions.php:
add_action( ‘parse_query’, ‘tribe_set_default_date’ );
function tribe_set_default_date () {
if ((get_query_var(“eventDisplay”) == “default”)) {
$_REQUEST[‘tribe_event_display’] = ‘past’;
}
}
But this it’s not perfect, and I have a little problem: If I stay on first page the link for next events is for first page, and not second page, and after I clicked the link changed and it’s second page.
Other problem that I want see past events only if I don’t have upcoming events. If i have upcoming events I want to see the upcoming event. How can I see if have upcoming events and to do this only if I don’t have upcoming events?
Thank you very much.
Marco