I have Advanced Custom Fields 4.3.7 by Elliot Condon and Custom Post Type UI version: 0.8.2 by WebDevStudios.com "plugged" in and would like to limit pluggins to only those two.
I have multiple ACF's for date_one, date_two, date_three,... up to 20 (unlikely any event gets past 10, but just in case) and are in Y-m-d PHP format.
Goal: All event lists will be chronologically ordered by their NEXT event date and will only be a single line of information with only one date (the NEXT event date).
I started with the below to get only today's events but can't even seem to get that to work and it doesn't address the issue of tomorrow's events.
<?php query_posts(array( 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'date_one', 'value' => date( 'Y-m-d' ), 'compare' => '=', 'type' => 'DATE' ), array( 'key' => 'date_two', 'value' => date( 'Y-m-d' ), 'compare' => '=', 'type' => 'DATE' ), array( ... ), ), 'posts_per_page' => 30, 'post_type' => 'performances' ) ); ?>
Ultimately, I have a fallback idea that involves only start and end dates, but I am really hoping for this particular feature.