Changing user profile name from permanent username to their nickname

This topic contains 9 replies, has 4 voices, and was last updated by  Kenneth 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #499636

    Kenneth
    Full Member
    Post count: 66

    How can I change the username under the avatar on the listing page to display the users nickname? I was able to change it for the “Author Box Content” but not sure how / where to change it for the Directory Listing Page. Please advise.

    Thank you

    #499652

    Kor
    Moderator
    Post count: 16516

    Hi Kenneth,

    Thanks for your post. Could you share a screenshot of what you’re trying to change here?

    #499670

    Kenneth
    Full Member
    Post count: 66
    This reply has been marked as private.
    #499847

    Kor
    Moderator
    Post count: 16516

    Hi Kenneth,

    Thanks for your post. Please share your Website WP admin access here and I’ll check your GD setup.

    #499855

    Kenneth
    Full Member
    Post count: 66
    This reply has been marked as private.
    #499856

    Kenneth
    Full Member
    Post count: 66
    This reply has been marked as private.
    #500502

    Kenneth
    Full Member
    Post count: 66

    Hi Kor,

    Do you have an update for us?

    #500521

    Alex Rollin
    Moderator
    Post count: 27815

    This isn’t an option at this time, but I am asking the developers if there is a workaround for it.

    The issue is that there is quite a bit of logic to do what you are asking, though it is a relatively common thing.

    The developers will let us know if it is possible.

    #500559

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @preditor,

    we have provided hooks to customise detail page header section.
    seems like you are using supreme directory theme.
    you can use the code below.

    
    
    
    add_filter( 'sd_detail_author_link', 'sd_detail_author_link_callback');
    function sd_detail_author_link_callback( $author_link ){
        global $post;
    	$author_id = $post->post_author;
    	$author_link = "<a href='" . get_author_posts_url( $author_id ) ."'>". get_the_author_meta('user_nicename' , $author_id ) . "</a>";
    	return $author_link;
    }
    
    #500601

    Kenneth
    Full Member
    Post count: 66

    Thanks guys! Appreciate the help.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket