- This topic has 5 replies, 3 voices, and was last updated 5 years, 3 months ago by
David.
-
AuthorPosts
-
January 28, 2021 at 1:11 pm #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
January 28, 2021 at 6:10 pm #1637642Elvin
StaffCustomer SupportHi,
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/January 29, 2021 at 4:21 am #1637991Joao
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)
January 29, 2021 at 6:38 am #1638122David
StaffCustomer SupportHi 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.
January 29, 2021 at 9:39 am #1638579Joao
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
January 30, 2021 at 4:43 am #1639236David
StaffCustomer SupportGlad we could be of help.
-
AuthorPosts
- You must be logged in to reply to this topic.