- This topic has 13 replies, 5 voices, and was last updated 6 months, 3 weeks ago by David.
July 28, 2022 at 3:25 am #2295905Chris
I am trying to add a second author (“Co-Author”, “Reviewed by”, “Medically Reviewed by”, etc.) to a post. Most of the big medical and finance websites do this now and it’s common practice. It would be great to have the second author displayed in the post meta at the top, as well as in an additional author box at the bottom.
A great example is this: https://www.bankrate.com/banking/federal-reserve/fed-interest-rate-decision-biggest-winners/
When I searched the GP forums there are something like 15+ threads of people trying to do the same thing. However, none of the solutions provided really helped or were straightforward. GP support used to recommend installing some outdated third-party plugin with bad reviews. In the newer threads there are confusing instructions with code snippets that may or may not work anymore.
Could you please provide a guide on how to achieve this with Generate Blocks in 2022 from start to finish? I think it would help a lot of people.
Also please consider adding it as a standard feature to your theme. It’s something that will only get more important over time as Google will continue to value Expertise, Authoritativeness, and Trustworthiness (EAT) as an important ranking factor.
Thanks!July 28, 2022 at 5:28 am #2296007DavidStaffCustomer Support
True co-authors, where many users are saved as the author, and said post shows up in each of their author archives are complicated. Simply because WordPress only allows a Single Author to be saved in the post database.
There has been an open core trac on the subject for many years:
And its still marked as a
maybe laterfeature. In the meantime its left down to two plugins to handle.
It really is a core issue or something a plugin should be used to resolve, as adding this kind of function in the theme, would lead to theme lock, and thats something we don’t really advocate.
If you need the full co-author features ( not just a custom post meta with another name and avatar ) on the post then this is possibly the better plugin ( simply because it works out the box):
If its just meta values of a user name and avatar thats required for the second author then that could be accomplished with custom fields. But for a nice UX you would need something like ACF or MetaBox to handle it.July 28, 2022 at 9:22 am #2296444Chris
Thanks for your reply!
I think most people really only need to be able to:
- Add a second or third author or editor somewhere in the post editor. In other words just being able to select one of the WP users in a custom drop down.
- Then that author or editor to show up in the meta description: “Written by [name1], (reviewed by) [name2]” where “, (reviewed by) [name2]” only shows if multiple authors are selected.
- As well as a second author box below the post, which only only shows if multiple authors are selected.
The functionality of having this post in multiple author archives seems to unimportant, at least for me. And in the example I mentioned the article doesn’t show up either when you click on the editor profile.
Would that be achievable with Advanced Custom Fields being the only third-party plugin needed? I would like to keep using Generate Blocks for the meta description and the author boxes.July 28, 2022 at 10:49 am #2296529YingStaffCustomer Support
You can use ACF plugin to create a custom field for single posts, eg.
Then you can use a GB headline block to call this post meta.July 29, 2022 at 4:39 am #2297143Chris
Could you please add a “User Avatar” option to the GP Dynamic Image block? I think it could help with the above.July 29, 2022 at 5:25 am #2297173DavidStaffCustomer Support
Use ACF to add the custom fields you require for getting the co-author name and image,
You can then use the GenerateBlocks Image Block to display the Post Meta ( ACF Field name ) for your second image.August 2, 2022 at 3:04 am #2300564Chris
I still think a “User Avatar” option for the GP Dynamic Image feature would be a great addition.August 2, 2022 at 10:04 am #2301007YingStaffCustomer Support
GenerateBlocks’s image block does have an author avatar option.
But as David explained before, WordPress only allows a Single Author to be saved in the post database. So the option will only work for the true author.
The 2nd author image will need to be stored as a custom field, the same as the name.February 27, 2023 at 5:00 pm #2549356Myles
I’m running into the same exact issue as the original poster.
I saw this:
“You can use ACF plugin to create a custom field for single posts, eg. co-author.
Then you can use a GB headline block to call this post meta.”
Can you elaborate on what to do here? I know of the ACF plugin, but not sure about anything else like how to create a custom field for single posts.
Can you please advise?February 28, 2023 at 10:41 am #2550365DavidStaffCustomer Support
before we get into the details. How many actual authors do you have on the site ?
OR is it ok, that the Co-author is just a name ?February 28, 2023 at 10:54 am #2550381Myles
Just including the name would be fine in the by-line.
Though, if I could have another author box, that would be great–though I’m trying to avoid using other plugins.
That said, I’m not sure how it works out if there are two others in the by-line by only one author box. Who gets assigned the author box?February 28, 2023 at 12:44 pm #2550478YingStaffCustomer Support
GB is just a tool to call the post meta.
For how to create a co-author post meta using ACF, it’s better to reach out ACF plugin, I found a support topic on ACF’s website:
https://support.advancedcustomfields.com/forums/topic/multiple-authors-per-post-acf/March 13, 2023 at 1:25 am #2565578Alfredo
I just ran into this issue. I understood about creating post meta for co-authors with ACF.
However, if I want the co-authors to have their author page as well I don’t think that is a good solution as there won’t be a link to their page. I would like to treat co-authors just as regular WordPress authors because these co-authors can be single authors in other posts.
What’s the solution if I want the co-authors to have the same features as the single authors?March 13, 2023 at 4:16 am #2565766DavidStaffCustomer Support
Would both of the co-authors need to have the post listed in their author archive?
If it does then you would need a Co-author plugin, theres a couple of options in the WordPress.org plugin repository.
- You must be logged in to reply to this topic.