Need simple "if" php code for xprofile_get_field_data
Hi all, I want to display a specific profile field somewhere else on the member profile page. This works perfectly:
<?php echo xprofile_get_field_data(’2′); ?>
BUT, I only want to display it if the user actually entered something into that field. So, I need a simple php if statement. Can anyone help?
You must be logged in to reply to this topic.