Make WordPress Core

Opened 13 years ago

Last modified 7 years ago

#23866 new enhancement

WordPress xmlrpc wp_getPosts filter for slug

Reported by: SunWaves Owned by:
Priority: normal Milestone:
Component: XML-RPC Version: 3.4
Severity: normal Keywords: dev-feedback needs-refresh
Cc: Focuses:

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)

class-wp-xmlrpc-server.diff (416 bytes ) - added by SunWaves 13 years ago.

Download all attachments as: .zip

Change History (5)

#1 @SunWaves
13 years ago

The patch enables an extra optional argument of 'name' to the xmlrpc getPosts method which will allow xmlrpc users to getPosts by slug name

#2 @markoheijnen
13 years ago

  • Keywords dev-feedback added
  • Version trunk3.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.

#3 @chriscct7
11 years ago

  • Keywords needs-refresh added; has-patch removed

#4 @samuelsidler
11 years ago

  • Summary Wordpress xmlrpc wp_getPosts filter for slugWordPress xmlrpc wp_getPosts filter for slug
Note: See TracTickets for help on using tickets.