• Resolved Josh

    (@jmccallweb)


    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

    (@rizaardiyanto)

    Hi @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/

    Hope that helps!

    Thread Starter Josh

    (@jmccallweb)

    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

    (@jmccallweb)

    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

    (@rizaardiyanto)

    @jmccallweb Sorry, we do not have a specific function to create guest author and assign it to a post yet.

    Thread Starter Josh

    (@jmccallweb)

    Thanks. I guess I’ll mark the thread as resolved.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @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.