The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] post_author field on wp.newPost call in XMLRPC API not working as expected (1 post)

  1. pzimbelman
    Posted 4 years ago #

    I've tried making calls to the wp.newPost API method with credentials for one user while trying to supply a post_author field for another user_id (from a wp.getAuthors call).

    I would expect the post_author field to take precedence over the logged in user credentials but the new posts continue to be associated with the user account from the login credentials. Is this a bug? Or is there something else that I am missing? If this is the expected behavior, how do I make use of the post_author field to get the post to show up with the author I am trying to specify?

    Using the API from here http://codex.wordpress.org/XML-RPC_WordPress_API/Posts

Topic Closed

This topic has been closed to new replies.

About this Topic