Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Co-authors display for a post

  • We create posts about Baby health topics which are vetted by a proper qualified pediatrician or Doctor.

    We need to display the name of the author as well the name of the Doctor on the post

    How do I do this with GP/GB?

  • Hi there,

    is the Doctor also a post author ? Or can it just be a name with no links ?

  • In some cases the author can be a Doctor as well.

    There is no fixed rules.

    But I can type in “Dr” with the name in the name field.

    And in the author box, I will need to show the boxes for both the people with their images and bios etc

  • Then you will need to use a specific secondary author plugin.

    or create custom fields (post meta) to store co-author name and co-author image, then use GB’s headline block and image block, set the content source to post meta > custom_field_slug.

    You can use the WP default custom fields, or use a plugin like ACF to create custom fields.

  • Ok I will try and check back with you

  • Can I create custom fields for author details?

    WIll they be pulled directly. or do I need to manually add the second author to the author box?

  • I just checked my WordPress admin and I find that I can add multiple authors to my posts.

    Hence there is no need to add the ACF plugin

    I have added 2 authors to this post

    https://www.smartbabyadvice.com/test-post-ah/

    Both authors are showing in the post but they are showing together

    https://imgur.com/awV2sRs

    https://imgur.com/bvcE31k

    I want to show these author details separately and not in a single combined field. I also need to show the image of the 2 authors separately ( right now images are not showing )

  • By default WP does not provide a 2 author option.
    Check your plugins to see if there is one providing that option, as it will be dependent on that plugin when it comes to achieving what you want. Let me know

  • I have one plugin Molongui Authorship installed for multiple authors

    But it seems to have some issues as the image of the single author is not getting pulled into my Author box element

    So I am planning to remove it

    I was told to use ACF and build some custom fields for the co-authors

    But I am not sure how to set that up.

    I have installed ACF but I need to know the following

    1. What custom fields do I need to add?

    2.How do i link it to the post?

    3. How to create a author box for the co-author and pull the data dynamically

    Do I need to install any code into my child theme to support multiple authors?

    I know I am asking for a lot of help

  • I have created custom fields using ACF plugin for the co-author details

    https://imgur.com/53Ybiap

    https://imgur.com/QvDufMC

    I want to now create a co-author box to display the co-authors in my posts

    I have already created the co-authors in my Users in WordPress and I need to select the co-author for the post and it should pull the info and image .

    Can you please guide me

  • Does the co-author need to have post archive?

    If not, you do not need to create user for them. Just need to do the below steps:

    1. You need to fill the custom fields in the post editor, eg. co-authour name, bio, image.

    2. in your element, pull the text type custom fields via headline block, enable dynamic data, select post meta as content source, then enter your custom fields slug. Pull the image type custom fields via GB image block, the rest of the settings are the same.

    Let me know if this helps!

  • I dont need any post archives for the co-authors, but I need to save them as users in my WP account, so I can just select them ( from the list of users) when I am creating my posts ( in the post editor).

    These co-authors will be reviewing many of my posts , so I need to add them on various posts ( and not just one off ).

    I also want to create a co-author box below my author box, which should appear at the bottom of the post ( after the content)

    Further if I do not have a co-author for a particular post, then I do not want to show the co-author box , as it will be empty

    I hope you have understood my requirements.

    Please guide me about which custom fields to set up in ACF and also what settings to make so I can accesss all the co-author details from all posts

  • but I need to save them as users in my WP account, so I can just select them ( from the list of users) when I am creating my posts ( in the post editor).

    If you do not need them to have archives, then no, you do not need to create user for them, GB can not output name of the user type fields out of box, it can only return the author ID, so you will need to write custom code to output the name of the co-autuhor.

    Instead of creating user for co-author, you can create radio type ACF fields, it will allow you to be able to select from multiple choices, and GB can output the co-author name via headline directly.

    Check this example:

    a. ACF sitting:
    https://app.screencast.com/3tuytOb6KiiiM

    b. Post editor custom fields:
    https://app.screencast.com/d5hyQBRJS61yl

    c. Use headline block to pull the co-author:
    https://app.screencast.com/susK8bg7CWQuc

    Hope that’s clear.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.