[wp-trac] [WordPress Trac] #18694: Improved date arguments for WP_Query
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 18 07:15:04 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):
I think I'm ditching string support. It's so much easier from a code
perspective (hard to parse) and less ambiguous if you just pass an array
of year, month, day, hour, minutes, and/or seconds.
Replying to [comment:6 johnbillion]:
> Could we get a 'field' parameter too? We have `post_date`,
`post_date_gmt`, `post_modified` and `post_modified_gmt` which could all
work with this query format. `post_date` would be the default of course.
Totally.
Replying to [comment:8 GaryJ]:
> C/W/Should the arguments here also eventually cover dates stored in meta
fields too?
No, I don't think so. So much added complexity and I think the existing
`meta_query` arguments should be able to handle most (but not all) of that
kind of stuff.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18694#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list