Hi David!
Thanks for reaching out to us! Let me help you with that.
First off, I do want to note that we are fairly limited in how much we can support custom development questions like this. That said, I’d be happy to at least point you in the right direction as best I can.
You can change the order in which events show up in the tags archive page by customizing the query with the following code snippet:
add_action( 'pre_get_posts', 'custom_tag_order' );
function custom_tag_order($query) {
if ( $query->is_main_query() && is_tag() ) {
$query->set('orderby', 'meta_value');
$query->set('order', 'ASC');
$query->set('meta_key', '_eventStartDate');
return $query;
}
}
You should place this code in your theme’s functions.php file and it will order your events by their start date, starting from the earliest.
I hope that helps! Let me know if you have other questions.
Best,
Victor