Site logo

[Resolved] How to add “About the author” box to articles

Home Forums Support [Resolved] How to add “About the author” box to articles

Home Forums Support How to add “About the author” box to articles

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1637487
    Joao

    I did a “MK – about the author box post” Block – Hook placed in “generate_before_comments_container” all Posts. So, a author box well designed appears in all posts created by MK.

    Now I’m faced with the following challenge: Since I have have several authors, I need several “XYZ _ about the author box (one per author) to be automatically placed in their respective posts.

    Is Block Hook the best solution? If so, how can I limit each Author Block Hook to their respective posts? Else, what’s the solution? A Hook (non-Block)? https://generatepress.com/forums/topic/author-box-4/#post-1306725 would help?

    Thank you

    Joao

    #1637642
    Elvin
    Staff
    Customer Support

    Hi,

    Now I’m faced with the following challenge: Since I have have several authors, I need several “XYZ _ about the author box (one per author) to be automatically placed in their respective posts.

    In this case, it may be better to use a child theme or Code Snippets plugin.

    That’s because you’ll have to create a loop that renders the layout foreach authors associated to a post.

    Something like the last code snippet provided here:
    https://www.billerickson.net/wordpress-post-multiple-authors/

    #1637991
    Joao

    Hi again

    Something like the last code snippet provided here:
    https://www.billerickson.net/wordpress-post-multiple-authors/

    I do use code snippets but what do I need to change in order to make it work in GP – instead of Genesis?

    (Edit: Feature suggestion: A post author hook would be great for Block – Hook location / exclusions)

    #1638122
    David
    Staff
    Customer Support

    Hi there,

    currently the best way to add author boxes for many authors is to use a plugin like Simple Author Box.

    However, in the next GPP update we are adding Dynamic content to the Block Element so you will be able to create dynamic author elements.

    #1638579
    Joao

    Thank you both.

    I found simple author plugin yesterday and I’m glad you mentioned it now – it adds credibility to plan b.

    GP/GB would be a better solution from my point of view. Eager to see what you’re planning.

    Thank you again.

    J

    #1639236
    David
    Staff
    Customer Support

    Glad we could be of help.

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