User Meta Returning Nothing
-
I am trying to call the steam avatar link by doing this in PHP
if ( is_user_logged_in() ) { echo '<a href="'.get_user_meta($user_id, 'steam_avatar', true).'">Avatar</a>'; }I am able to return the logout link the same way like this
if ( is_user_logged_in() ) { echo '<a href="'.wpsap_button_logout_url().'">Logout</a>'; }The problem is that the link ends up being blank with the meta one. Am I using this incorrectly, or is something else wrong?
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘User Meta Returning Nothing’ is closed to new replies.