Home Forums Plugin Support WP User Frontend Pro Nickname field is NOT working

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  O Park 3 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #71385

    O Park
    Member
    Post count: 44

    Setting up Nickname field on front-end form does not do anything.

    It still shows username on get_the_author() even after saving Nickname.

    #72182

    towhid
    Participant
    Post count: 4505

    Hello Park,

    Please use the following code.

    $current_user = wp_get_current_user();
        		echo 'User Nickname: ' . $current_user->nickname;

    Hope it will display the nickname.

    Thanks

    #72347

    O Park
    Member
    Post count: 44

    echo get_the_author_meta( 'nickname' );, echo the_author_meta( 'nickname' ); and echo $current_user->nickname; work for me.
    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Nickname field is NOT working’ is closed to new replies.