Archived topic
Custom Author Archive Page
9 replies · Started by Alirio on January 1, 2020
With Elements, I created a header for my posts showing the post title, the last updated date, and the author. I don't like the default format of the author's archive page, so I'd like to link the author's name to a custom archive page created with WP Show Posts.
I just need to link the author's name to a custom page.
How could I do that?
Thank you!
Rio
Hi there,
I believe this filter is what you are looking for:
https://docs.generatepress.com/article/generate_page_hero_post_author/
Thank you, Leo. How do I link the author with the target page?
Do I replace post_author with the author's name and then replace http://schema.org/Person with target URL?
I'm guessing I need to add this filter with Code Snippets, correct?
Hi there,
this WPSP doc explains using static pages for archives, and should work regardless of where the link is output:
https://docs.wpshowposts.com/article/use-static-pages-as-category-archives/
Thank you, David. So, let me summarize to make sure I understand what I'm going to do.
1. I need to add the snippet that Leo gave me above generate_page_hero_post_author with Code Snippets.
2. If my author's page is https://ithrive.health/author/rioadmin/, I then need to create a page with this slug: https://ithrive.health/rioadmin/.
Am I on the right track?
Rio
Are you the only author on the site?
Yes, it's just me for now, but I may have my wife create posts sometime in the near future. Long shot but possible...hehe. Hopefully.
I tried just typing my name instead of {{post_author}} and then wrapping around an anchor link to my blog archive page, but then the "By Alirio Zavarce" text appeared right under the header and above the social share icons. Couldn't figure out why, though. So, I went back to adding the post author tag.
The filter this user provided should do the trick:
In that topic - my reply, I link to a way of adding more authors...
David, that worked! Thank you so much.
Glad we could be of help