[wp-trac] [WordPress Trac] #18433: Retrieve a list of posts via XML-RPC
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 27 08:40:37 UTC 2011
#18433: Retrieve a list of posts via XML-RPC
------------------------------------------+------------------------------
Reporter: nprasath002 | Owner: westi
Type: feature request | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch mobile westi-likes |
------------------------------------------+------------------------------
Comment (by daniloercoli):
Replying to [comment:8 maxcutler]:
> For fields, there are two types of values: conceptual groups and
specific fields. The conceptual groups are 'post', 'taxonomies', and
'custom_fields'. Since the latter two require extra queries, performance-
conscious callers can skip them by omitting them from 'fields'.
>
> And to give extra control, you can specify specific individual fields
instead of/in addition to conceptual groups. So for daniloercoli's use-
case, he could use array('title', 'dateCreated', 'post_status').
>
Nice, I like this implementation because we can specify individual fields
(what we really need in our mobile apps). At the end don't think it's so
tedious specify every single field you need in the response, or at least
this should make you think before ask for everything.
> Also, should we add a filter to let plug-ins modifying the $post_data
array after it's generated?
+1
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18433#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list