There is no date_query
, not yet, or not in your version of WordPress. From the Codex:
date_query (array) - Date parameters (available with Version 3.7).
3.7 has not been released, though you can get it via SVN, and you are using 3.6.
Related Posts:
- Meta Query for specific months
- Query custom post type by date field only working when two posts match the query
- Divide WP_Query posts by date & post type
- Query Posts by date range with fixed beginning and end
- Get posts that were most recently tagged
- Wp get all the sub pages of the parent using wp query
- WP_Query orderby date not working
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- How to uniquely identify queries?
- Get posts by meta data OR title
- WP_Query ordered by custom field that is a date string?
- How to make an activities stream mixing posts and comments?
- Duplicate Queries
- How to query for a week using key => value WP_Query argument notation?
- SQL query equivalent to WP User Query
- How to count post type that has a particular term?
- How can I hide posts that are over 2 years old
- Foreach-generated custom tax queries, each with an ajax “Load more” button
- meta_query on a date range using an array of values
- WP_Query Performance Issues with meta_query
- How to detect custom query inside `posts_where` hook?
- Is temporarily overwriting $wp_query a bad idea?
- Query Set Order By Author
- Retrieve or Query Pages by ID
- How to output different posts per page?
- How to do a query on custom taxonomies that is uncategorised?
- Empty tax_query array returns an empty array
- How do I search inside specific taxonomies in WordPress
- Pass array of taxonomy terms to wp_query
- How to orderby meta_value_num with dollar ($) sign
- Complex date range with WP_Query and BETWEEN
- merge two query arguments into one WP_Query call
- Using WP_Query in “parse_query” or “pre_get_post” in Posts2Posts
- Query: offset post list, unless it’s a specific category
- How to reduce the number of queries?
- Comparing dates in custom field
- remove query arg from url after set query
- List of the years with posts presented
- How to display upcoming events by dat with Modern Events Calendar Lite
- Query custom post type by custom taxonomy (category slug)
- Custom Query num_rows returns wrong amount
- Overwrite YoastSEO meta-tags with another page’s [closed]
- Editing the default wordpress search
- How to duplicate 5 posts out of WP_Query results?
- Weird orderby => post__in issue
- Slow page loads due to WordPress Core Query
- Set global $wp_query/$post variable for dynamic page generation
- WP_query sorting can’t sort danish letters (æ, ø, å)
- Slow queries on a huge database
- WP_Query with ‘rand’, but equal number of posts from the taxonomy terms given
- Multisite pagination issue by multi query archive 404
- Query with relation and one without relation using multiple taxonomies?
- Meta Query relation “AND” then set array accordingly
- Sort WordPress Posts Meta value by Week not Day
- 2 wordpress loops showing 1 post from same post type – how to avoid showing the same post?
- Transient api Caches confused
- How can I override one post and make it display content for another post?
- Get multiple users with meta value in one query and populate WP_User class
- How to check the array values, what WP_Query has brought to me?
- Query where ANDing slug values not working
- How to filter query loop block with a search string from the query parameters
- Get specific ACF key and value from all posts – no access to DB
- Limit loop to future events
- How to SQL query posts IDs by categories AND authors?
- I am officially missing something about transient posts
- Added Date Filter To Popular Posts Query
- Start Query from 2nd Post without offset
- Post incorrectly excluded when using “category__in”?
- Query multiple post types, but different order for each
- Display posts ONLY from the current logged in user and current week/year/month Elementor posts
- Any way to use FETCH_KEY_PAIR with $wpdb?
- Comparing Meta Field date in WPQuery using Meta_Query?
- How to get only present and past posts with post_date
- Query against multiple locations within single custom post type post
- How to get_comments() ordered by date and parent?
- Sort posts on custom field AND after that sort on date?
- How to query users by post count no less than 10
- WP Query. Ordering posts by another post types meta
- How to make a search query if not found in post table then search in postmeta table?
- Adding Category in WP_Query Not Working
- Merge two queries and remove duplicate
- how to show more than 1 post into three columns query
- Using the same WP_Query for shop and widgets in WooCommerce shop
- How can I get all the posts that are related with a specific taxonomy term?
- Fetch only categorized posts
- Custom pagination (Title, date and teaser)
- Pagination in custom query in a category page
- Get a list of the last posts grouped by author and filtered by category
- When should you use WP_Query vs query_posts() vs get_posts()?
- How to query post ids liked by the Author
- Modify query after meta value
- Showing posts from 4 categories along with all latest posts
- Pagination in WP query with transient API
- Parsing External Table Arguments
- difference between methods of query
- Query posts by meta value and sort by another meta key
- Main loop querying current template’s info only in custom category archive pages, not my posts
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- wp_query order by rand is repeating posts