How to display the user name?
I want to display the user name, is there a better way?
I am displaying it with the following code.
<div class="nickname"> <?php global $user_identity; echo $user_identity; ?> </div> <div class="unique"> <?php $user = wp_get_current_user(); echo $user -> user_nicename; ?> </div>
However, this code does not work when displaying the follower list with “members-loop.php”.
Do you have any solutions?
- You must be logged in to reply to this topic.