Hide xprofile data if 'x'
We have a sidebar custom plugin, where we return different user profile data based on the user type.
One of these fields returns one of 6 drop down options. However, what I want to do is only one of 5 of the options if selected, and not display the 6th if present. I still need the 6th option but just don’t want to show it in the sidebar.
Here is the line of code in the plugin to display this data:
echo " <h2 class='sidebarRole'>".xprofile_get_field_data( 'Role (architect)', get_the_author_id()) ."</h2>";
Is there a way to say, if the returned result is ‘x’, then don’t display anything?
You must be logged in to reply to this topic.