Opened 12 years ago
Last modified 6 years ago
#23866 new enhancement
WordPress xmlrpc wp_getPosts filter for slug
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.4 |
Component: | XML-RPC | Keywords: | dev-feedback needs-refresh |
Focuses: | Cc: |
Description
When using the Wordpress xmlrpc, it is sometimes very useful to get posts based off of slugs rather than post id.
A use case for this would be synchronizing or migrating two Wordpress sites with the same posts, but with different databases and post ID's.
Attachments (1)
Change History (5)
#2
@
12 years ago
- Keywords dev-feedback added
- Version changed from trunk to 3.4
First if statement still using spaces instead of tabs. Also no clue if name also works for pages (pagename).
Also for syncing even the slug isn't save since slug can also not be the same. I'm not sure if we should include it or not.
Note: See
TracTickets for help on using
tickets.
The patch enables an extra optional argument of 'name' to the xmlrpc getPosts method which will allow xmlrpc users to getPosts by slug name