[wp-trac] [WordPress Trac] #19866: Allow specifications of any wp_posts field(s) in WP_Query

WordPress Trac noreply at wordpress.org
Sat Jan 10 02:55:44 UTC 2015


#19866: Allow specifications of any wp_posts field(s) in WP_Query
-------------------------+-----------------------
 Reporter:  bigdawggi    |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------
Changes (by sc0ttkclark):

 * status:  closed => reopened
 * resolution:  maybelater =>


Comment:

 Would be great if this possible, losing out on everything WP_Query can
 provide for query building (meta_query, tax_query, search, etc), simply
 because it doesn't prime caches for the posts returned (exactly like any
 non-default 'fields' currently does in core).

 I think we ''should'' encourage this through WP_Query, let's not make
 people write more custom SQL that is anything but backwards compatible,
 pretty please?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/19866#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list