WP_Query Date Filtering Inclusive Being Ignored
Your arrays seem malformed : $args[‘date_query’] = array( array( ‘after’ => $datefrom, ‘before’ => $dateto, ‘inclusive’ => true ) ); Also check here and be sure you are passing dates with proper string format !