WordPress.org

Forums

Display author's First, middle and last name sepearately (3 posts)

  1. sfacets
    Member
    Posted 1 year ago #

    I have a name that includes two last-names... As such I would like to display my name as

    <h2>
    <?php the_author_meta('user_firstname'); ?> <?php the_author_meta('user_lastname_1'); ?> <?php the_author_meta('user_lastname_2'); ?></h2>

    Obviously there is currently no field for a middle or second last name, so I would either need to implement a field, or use static content.

  2. Chris Hardie
    Member
    Posted 1 year ago #

    You could also put both last names in the "last name" field, and then they should display according to the "Display name publicly as" setting you're using for that user profile.

  3. sfacets
    Member
    Posted 1 year ago #

    The issue is that I would like to define the names separately using microformats such as schema.org or hcard..

Topic Closed

This topic has been closed to new replies.

About this Topic