WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pzimbelman
    Member
    Posted 2 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

Tags