[wp-trac] [WordPress Trac] #14777: Adding "fields" to arguments array for get_posts()/query_posts()/WP_Query()
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 4 20:19:12 UTC 2010
#14777: Adding "fields" to arguments array for get_posts()/query_posts()/WP_Query()
--------------------------+-------------------------------------------------
Reporter: mikeschinkel | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: Query | Version:
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
Comment(by scribu):
I think we can have both:
get_terms() style:
{{{'fields' => 'ids'}}}
individual fields:
{{{'fields' => array('ID', 'post_title')}}}
As a follow up, we could add the second style to get_terms() too.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14777#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list