• Resolved fabtigger

    (@fabtigger)


    I want to display the author’s nickname as it is currently set up, with the added featured of being able to also force the display of the first and last names beneath the bio blurb. So for example the social bio would look like…

    npower (23 Posts)
    Bio blurb describing the author
    Nick Powers

    I found the code

    <?php echo the_author_meta('first_name'); ?>
    <?php echo ('?'); ?>
    <?php echo substr(get_the_author_meta('last_name'),0,1).'.'; ?>

    But not sure how to use this, or if it is useful?

    https://www.ads-software.com/plugins/social-autho-bio/

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Powers

    (@nickpowers)

    %name% displays the name as defined in the plugin resolves to what is set in the user’s profile under the “Display name publicly as” setting.

    The reason I didn’t break it out specifically (username, first name, last name) because first name and last name are optional fields in the user profile.

    Given that it would not be difficult to add %first_name% and %last_name% tokens given that caveat that they might be blank.

    I’ll keep that in mind for a future version.

    Thanks,

    Nick

Viewing 1 replies (of 1 total)
  • The topic ‘Display author nickname and the author's full name’ is closed to new replies.