Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Can you run multiple profile loops in single/profile-loop.php ?


Boone Gorges
Keymaster

@boonebgorges

A couple things –

– You need an `if` before `bp_has_profile`, eg `( if ( bp_has_profile( ‘profile_group_id=1,3,4’ ) ) ) :`
– You’ll need to close the ifs and whiles; before the final `}` put `endwhile; endif;`
– You need to actually display some content after bp_the_profile_group();. Look at the xprofile templates (bp-themes/bp-default/profile…) to get a sense of the template tags you’ll use inside of the loop to display content.

Skip to toolbar