WP Query to displaying date and posts for that date?
I was able to do this using the following: $args = array( ‘post_type’ => ‘show’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ‘orderby’ => ‘meta_value’, ‘meta_key’ => ‘show_date’, ‘order’ => ASC ); $query = new WP_Query( $args ); if( $query->have_posts() ) { $day_check = ”; while( $query->have_posts() ): $query->the_post(); $day = date(‘Y-m-d’, strtotime(get_field(‘show_date’))); if ($day != … Read more