[Resolved] Custom Author Archive Page

Home Forums Support [Resolved] Custom Author Archive Page

Home Forums Support Custom Author Archive Page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1119348
    Alirio

    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

    #1119386
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this filter is what you are looking for:
    https://docs.generatepress.com/article/generate_page_hero_post_author/

    #1119413
    Alirio

    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?

    #1119923
    David
    Staff
    Customer Support

    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/

    #1119950
    Alirio

    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

    #1119988
    David
    Staff
    Customer Support

    Are you the only author on the site?

    #1120011
    Alirio

    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.

    #1120047
    David
    Staff
    Customer Support

    The filter this user provided should do the trick:

    https://generatepress.com/forums/topic/how-to-link-to-different-about-pages-for-different-authors/#post-1112810

    In that topic – my reply, I link to a way of adding more authors…

    #1120474
    Alirio

    David, that worked! Thank you so much.

    #1120718
    David
    Staff
    Customer Support

    Glad we could be of help

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