Sorting meta box values by start- and enddate and all dates in between
I think you can do the trick running 2 loops, in the first you prepare an helper array of posts ordered by date, in the second you display this array: Something like this (completely untested): if ( $agenda_query_full->have_posts() ) { $date_events = array(); // helper array $today = date(‘Y-m-d’); while ( $agenda_query_full->have_posts() ) { $agenda_query_full->the_post(); … Read more