[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:53:18 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):
> How would that work with the URL style of querying?
I think this would work:
fields[]=ID&fields[]=post_title
but I wouldn't worry too much about it. If you need specific fields,
you're likely to pass an array or args anyway.
> And what would be the options made available?
'all', 'ids', 'id=>parent'
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14777#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list