Guest Author – How to display posts on /author archive page
-
I have used the Advanced Custom Fields plugin to create all the data elements for a company leadership directory page and management bio pages.
On the site blog, management will not be posting articles themselves, but it should appear as if they have. I think this practice is referred to as “guest authors” – authors that don’t have user accounts in the WordPress site where the content is posted on their behalf by site admins.
What I’d like to happen is this:
- When a guest author is selected for the post (an ACF Custom Post Object), output their name. The name should link to the archive page https://www.example.com/author/john-doe.
- When a quest author is not selected, default to the site admin’s author info.
- I do NOT want to create ghost user accounts to post as guest authors. (As mentioned, these guest authors have already been defined in detail as part of the team leadership post type in combination with ACF.)
I’m relatively new to WordPress theme development and have been Googling for a way to achieve this. These two posts are the closest I could find to my situation but do not solve what I’m trying to do:
- https://wordpress.stackexchange.com/questions/110355/guest-author-how-can-i-use-custom-fields-to-create-guest-author-link
- https://wordpress.stackexchange.com/questions/110501/guest-author-how-to-modify-my-custom-function-code-if-the-guest-author-url-wil
Is this a common practice? If so, can someone direct me to more information? I’d greatly appreciate it!
- The topic ‘Guest Author – How to display posts on /author archive page’ is closed to new replies.