• Hello, first off thanks for the helpful plugin!

    I am trying to display a Custom Field from each Author’s Profile underneath each Author’s name on our main Authors Page.

    How should I go about adding this field to the output?

    I understand that the display_extra filter is supposed to help with this. But I’m lost. What code is needed beyond the apply_filters line you provided? Do I need to add anything to the shortcode?

    If there’s a way to add the Custom Field as an option in the shortcode/button that would be perhaps the most helpful. But I’m open to anything you suggest.

    Thanks and let me know if you have any questions or need me to elaborate!

Viewing 1 replies (of 1 total)
  • Plugin Author Paul Bearne

    (@pbearne)

    Hi @ajohnstone

    There are a number of filters you can use to add content

    apply_filters( ‘aa_user_avatar_html’, $avatar, $user ) // just the image

    this is the first wrap you can use these to just add your content as the first text line below (or above)
    apply_filters( ‘aa_user_avatar_template_with_title’, ‘<span class=”avatar” title=”%s”>%s</span>’, $title, $avatar, $user )
    or
    apply_filters( ‘aa_user_avatar_template’, ‘<span class=”avatar”>%s</span>’, $avatar, $user )

    If these don’t work for you as you want them later search for these in the code and read on for the rest of the filters

    Paul

Viewing 1 replies (of 1 total)
  • The topic ‘Display Custom Author Profile Fields’ is closed to new replies.