…$from_date[‘month’], ‘day’ => $from_date[‘day’], ); } // Same for the “to” date. if ( $to_date && checkdate( $to_date[‘month’], $to_date[‘day’], $to_date[‘year’] ) ) { $before = array( ‘year’ => $to_date[‘year’], ‘month’ => $to_date[‘month’], ‘day’ => $to_date[‘day’], ); } // Create the date query array and add the parameter sets to it……) ) { $to_date = date_parse( $_GET[‘to’] ); } $after = null; $before = null; // If the “from” date checks as a valid date, create a parameter set for it. if ( $from_date && checkdate( $from_date[‘month’], $from_date[‘day’], $from_date[‘year’] ) ) { $after = array( ‘year’ => $from_date[‘year’], ‘month’ =>……searches: add_filter( ‘relevanssi_modify_wp_query’, ‘rlv_date_between’ ); function rlv_date_between( $query ) { $from_date = null; $to_date = null; // Get the dates from parameters “from” and “to”, and parse to make sure they are dates. if ( isset( $_GET[‘from’] ) ) { $from_date = date_parse( $_GET[‘from’] ); } if ( isset( $_GET[‘to’]…