[wp-trac] [WordPress Trac] #18694: Improved date arguments for WP_Query

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 13 07:43:03 UTC 2012


#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:  has-patch     |
--------------------------+------------------------------

Comment (by scribu):

 > They only do that because they need to modify both the JOIN and the
 WHERE. My stuff is strictly WHERE-based so there's no need to return
 array( 'where' => $sql_string ) is there?

 Speaking of which, it would be useful if we could treat custom fields as
 date columns. For example, there are many 'event' post type definitions,
 with two custom fields: 'start_date', 'stop_date'.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18694#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list