I’m creating a WordPress theme, but I can’t get the current username. I tried get_currentuserinfo()
but it doesn’t seem to work. Is there any working function to get the username that I can use in the header.php
template file?
Leave a Reply
You must be logged in to post a comment.
Did you read the documentation, this example work well for me :