Code to hide empty custom fields in profile?
-
Hi,
Before you flame me, I have been searching for this in the forums for the last half hour and have come up empty handed!The question: I’ve added some custom fields to the wordpress User Profile. I can’t figure out how to hide them from the profile page if they’re empty (if the user didn’t fill them out).
This is the code I’m currently using to display the field:
<?php echo $user->favmus; ?>
I can’t get the “IF” part of the code quite right. Can anyone help me out? Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Code to hide empty custom fields in profile?’ is closed to new replies.