[wp-trac] [WordPress Trac] #18694: Improved date arguments for WP_Query
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 26 08:42:46 UTC 2011
#18694: Improved date arguments for WP_Query
--------------------------+------------------------------
Reporter: Viper007Bond | Owner: viper007bond
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by Viper007Bond):
Oh, a few more things:
* If `before` or `after` is set in a sub-query, then all other parameters
will be ignored (`month`, `hour`, etc.). Perhaps it shouldn't be this way
("before XXX and month=5") but I only just thought of this now and you can
likely accomplish that anyway with the current code.
* For `before` and `after` sub-queries, you can set `inclusive` to true if
you want to include exactly the `before`/`after` value(s). Basically it
turns `>` and `<` into `>=` and `<=` respectively.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18694#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list