Support » Fixing WordPress » [xmlrpc] How to get posts with offset?

  • Hello,

    I use xmlrpc with Java to get my posts.
    I would like to be able to do a pagination (like 10 posts by page), but with xmlrpc the only method available is mw_getRecentPosts().
    I need a method which accepts an offset parameter, and a method which returns the count of all my posts.

    How I can do?
    Do I have to implement that by myself?


Viewing 5 replies - 1 through 5 (of 5 total)
  • The existing XML-RPC APIs don’t really provide a way for collecting all of the post data right now.

    Thread Starter themcme


    That sucks 😉
    I didn’t want to update the WP code to be able to upgrade it easily, but I think I will have to…

    You can add new XML-RPC methods via plugins in WordPress, so it’s easy to get going on something like this. That also might make it easier to get potential changes into core WP later on.

    Thread Starter themcme


    But anyway I also have to modify xmlrpc.php right?

    Nope, you can add XML-RPC methods via the ‘xmlrpc_methods’ filter. This makes it possible to add new methods entirely from within a plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[xmlrpc] How to get posts with offset?’ is closed to new replies.