WordPress API for Guest Author

You are here:
< Back

Get Guest Author(s)

/wp-json/guest-author/authors

https://www.plugins.shooflysolutions.com/guest-author-name/wp-json/guest-author/authors

Options

To return a specific author, use one of the options below:

id – Guest Author Id
name – Guest Author Name
slug – Guest Author Slug

https://www.plugins.shooflysolutions.com/guest-author-name/wp-json/guest-author/authors?id=1310


returns a list of author classes similar to the user author class with the permalink and slug.

    $author->id 
    $author->name  
    $author->permalink 
    $author->url 
    $author->description 
    $author->slug 

Get posts for a specific author

/wp-json/guest-author/posts

Options (use one)

id – Guest Author Id
name – Guest Author Name
slug – Guest Author Slug

https://www.plugins.shooflysolutions.com/guest-author-name/wp-json/guest-author/posts?id=1310

Returns an array of posts for the specific Guest Author with two additional values

$post->is_guest_author – True
$post->guest_author – The guest author id