[Support request] Author byline with email & name displayed in author archive

Home Forums Support [Support request] Author byline with email & name displayed in author archive

Home Forums Support Author byline with email & name displayed in author archive

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1027816
    shpr

    I am trying to achieve something like this:
    https://www.digitalspy.com/author/221188/louise-mccreesh/

    – add the author user email to the author page.
    – display the author name beside all the posts listed on author page (only author pages – not other archives).
    – use the author initials as profile (not so important and I realise this is nothing to do with generatorpress…but if you have any ideas please let me know!).

    Thanks

    #1027995
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    1. You would need to create a custom field for each author. A plugin like Advanced Custom Fields (ACF) should help you do that.

    Then you can:

    1. Create a Hook Element: https://docs.generatepress.com/article/hooks-element-overview/
    2. Set the hook to after_archive_title
    3. Add the necessary code from ACF into the hook, and it should display the email if set in the user profile
    4. Set the Display Rules to the author archives.

    2. Beside where, exactly?

    3. Not too sure what you mean by “as profile”. Can you explain a bit more?

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