WP_Date_Query Generator July 25, 2018 Public Micheal Reilly Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone basic-date $date_query = array( array( 'year' => 2018, 'month' => 6, 'day' => 7, 'compare' => '<=', ), );