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?
- The topic ‘Need simple "if" php code for xprofile_get_field_data’ is closed to new replies.