[Resolved] How to hide more than one profile field?
I have two profile fields that I need to hide from being displayed. I was able to successfully hide a single field by modifying some code in the profile-loop.php file using guidance I found in an old thread here: http://buddypress.org/support/topic/hide-profile-field/
But I’m very new to PHP and don’t know how to modify the code using an OR statement to include the second profile field I need hidden. (I am assuming an ‘or’ statement is what I should include to accomplish this.)
The guidance in above-referenced thread states the following:
Change this line:
while ( bp_profile_fields() ) : bp_the_profile_field();
while ( bp_profile_fields() ) : bp_the_profile_field(); if ( bp_get_the_profile_field_id() != 'ID # YOU WANT TO SKIP' ) :
then change the corresponding endwhile; line to:
Can someone please tell me what additional revisions I should make to those lines of code in order to hide two fields (instead of just one field)?
- The topic ‘[Resolved] How to hide more than one profile field?’ is closed to new replies.