Hello, I found something to order events by
gkevent_date_start custom field :
In category-events-list-
1, replace :
- Code: Select all
<?php while ( have_posts() ) : the_post (); ?>
by
- Code: Select all
<?php
//args
$args = array(
'category_name' => 'events-list-1',
'posts_per_page' => -1,
'meta_key' => 'gk_event_date_start',
'orderby' => 'meta_value',
'order' => 'ASC'
);
//query
$wp_query = new WP_Query( $args );
//loop
while( $wp_query->have_posts() ): $wp_query->the_post();
?>
You can do the same modification for the category-events-list-
2, replacing 1 by 2 in
- Code: Select all
'category_name'
.
Nota : Take care to respect this date format : 2015-06-
05 07:00. From 1 to 9, put a 0 before the date in order to keep the numerical ordering

.