Why WP_Query::is_date() returns false when ‘date_query’ argument is set?
The values retrieved by the is_date(), is_day(), etc. methods are set inside the parse_query method and they really seem to be intended for the main query, whether that is explicitly stated (intended) or not. The code parses the public query variables to determine those settings. My interpretation is that these values aren’t really meant for … Read more