Support

Account

Home Forums General Issues Displaying only the first/last name of user

Unread

Displaying only the first/last name of user

  • I’ve got a ACF that allows me to select a different user. The field name is ‘writer.’ I’ve tried using this code:
    <?php the_field('writer'); ?>
    This spits out the user’s picture along with all of his/her information. I can’t figure out how to spit out just the display name, preferably with a link to that user’s page. Can anyone help me with that?

Viewing 1 post (of 1 total)

The topic ‘Displaying only the first/last name of user’ is closed to new replies.