Can you run multiple profile loops in single/profile-loop.php ?
I’m trying to wrap my brain around this. I have a site where they want to have 3 different types of profiles: Personal, Business, Artist, each with their own different profile field groups. I am attempting to simulate different profile types by creating a profile question required at registration that has them select from those 3 radio buttons. I have about 6 different profile_group_id ‘s that are available and some of which will be hidden depending on the type of profile. I am wondering if I can run 3 profile loops in profile-loop.php and do something to the effect of this (sorry if it’s clunky and fraught with errors, I’m a beginner) at the beginning of the loop:
if (!bp_field_has_data( ‘field_id=110′ ) && bp_the_profile_field_value( ‘Personal’ ) :
Then inside that particular loop I would limit the profile_group_id’s that are displayed: if bp_profile_groups( ‘id=1,3,4′) ) : bp_the_profile_group();
Does this make sense? I’m sure I’m way off somewhere. Does anyone know an easier way to do this? I’m not able to get it to work. I’m not even sure if I can modify the loop based on the answer to one required question within a profile group. Any help or pushes in the right direction would be greatly appreciated.
- The topic ‘Can you run multiple profile loops in single/profile-loop.php ?’ is closed to new replies.