Title: Programatically Add Guest Author to Post
Last modified: March 26, 2024

---

# Programatically Add Guest Author to Post

 *  Resolved [Josh](https://wordpress.org/support/users/jmccallweb/)
 * (@jmccallweb)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/programatically-add-guest-author-to-post/)
 * Is there a way to programmatically (via code) add a guest author to a post?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * (@rizaardiyanto)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/programatically-add-guest-author-to-post/#post-17531558)
 * Hi [@jmccallweb](https://wordpress.org/support/users/jmccallweb/)
 * Thanks for using PublishPress Authors.
 * You could do that using REST API. Here is the documentation about it: [https://publishpress.com/knowledge-base/rest-api/](https://publishpress.com/knowledge-base/rest-api/)
 * Hope that helps!
 *  Thread Starter [Josh](https://wordpress.org/support/users/jmccallweb/)
 * (@jmccallweb)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/programatically-add-guest-author-to-post/#post-17532022)
 * Thanks. That looks like it requires the author to already exist, so that you 
   can add by ID. What if this is a new author you need to create first?
   Also, is
   their php method that doesn’t require using the REST API?
 *  Thread Starter [Josh](https://wordpress.org/support/users/jmccallweb/)
 * (@jmccallweb)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/programatically-add-guest-author-to-post/#post-17532753)
 * I guess I can always add the author term and ppma_authors_name post meta using
   core functions, but I thought the plugin might have its own function for creating
   a guest author and attaching him/her to a post.
 *  Plugin Support [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * (@rizaardiyanto)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/programatically-add-guest-author-to-post/#post-17536878)
 * [@jmccallweb](https://wordpress.org/support/users/jmccallweb/) Sorry, we do not
   have a specific function to create guest author and assign it to a post yet.
 *  Thread Starter [Josh](https://wordpress.org/support/users/jmccallweb/)
 * (@jmccallweb)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/programatically-add-guest-author-to-post/#post-17537689)
 * Thanks. I guess I’ll mark the thread as resolved.
 *  Plugin Support [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * (@rizaardiyanto)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/programatically-add-guest-author-to-post/#post-17542039)
 * [@jmccallweb](https://wordpress.org/support/users/jmccallweb/) Thanks, we appreciate
   you using our plugin

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Programatically Add Guest Author to Post’ is closed to new replies.

 * ![](https://ps.w.org/publishpress-authors/assets/icon-256x256.png?rev=3391318)
 * [Co-Authors, Multiple Authors and Guest Authors in an Author Box with PublishPress Authors](https://wordpress.org/plugins/publishpress-authors/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/publishpress-authors/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/publishpress-authors/)
 * [Active Topics](https://wordpress.org/support/plugin/publishpress-authors/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/publishpress-authors/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/publishpress-authors/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/programatically-add-guest-author-to-post/#post-17542039)
 * Status: resolved