Filtering from advance custom field data

This is a little more complicated. You have to loop through the elements first, and create a twodimensional array containing weekday and time. $entries = array(); while ( have_rows(‘tag’) ) : the_row(); //clean thisentry $thisentry = array(); // set aufguss and sauno for thisentry $thisentry[‘aufguss’] = get_sub_field(‘aufguss’); $thisentry[‘sauna’] = get_sub_field(‘sauna’); // populate array for wochentag/uhrzeit … Read more

How to do a wp_query with two acf-fields, sorting on one of them

You are just confusing the array levels, ordering is not done inside the meta_query level but on the main query level. It is the difference between two classes: https://codex.wordpress.org/Class_Reference/WP_Query https://codex.wordpress.org/Class_Reference/WP_Meta_Query Also, as the meta query codex says: “Custom field value can be an array only when compare is ‘IN’, ‘NOT IN’, ‘BETWEEN’, or ‘NOT BETWEEN’”… … Read more