Hi!
I was wondering whether it is possible to show all the events – even pasts – in the same landing page of the Event Calendar. In other words the as in the current default layout one needs to go back to the date to see past events but I would like to show the preview of past events listed in a unique page with the most recent on top.
Is that possible?
Thank you for the kind support!
Hey MeryVi!
You can use our “Upcoming Events” element for that. Open up /enfold/config-templatebuilder/avia-shortcodes/events_upcoming.php and on line 191 you should see this.
$query = array( 'paged'=> $page, 'posts_per_page' => $params['items'], 'eventDisplay' => 'upcoming');
Change it to this.
$query = array( 'paged'=> $page, 'order'=> 'DESC', 'eventDisplay' => 'all');
Now our “Upcoming Events” shortcode will display all events in descending order.
This is if your not selecting a category in the shortcode. If you are selecting a category then you’ll need to edit the query right above this on line 180.
Regards,
Elliott
Hey!
Like I said that is for our “Upcoming Events” shortcode. If you want to do it in the default events page then you’ll need to contact the plugin author, https://wordpress.org/plugins/the-events-calendar/.
Regards,
Elliott