Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Profile Fields Questions


jivany
Participant

@jivany

@gian-ava: For your second question, check out this post https://buddypress.org/forums/topic/faq-how-to-code-snippets-and-solutions#post-13243

I haven’t tried this but it would suggest you could do something like:

<?php if ( bp_has_profile('profile_group_id=9') || bp_has_profile('profile_group_id=7') ) : ?>
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<div id="widget1">
<?php if (bp_the_profile_group() == "9") : ?>
// Do whatever you want with group 9
<?php endif; ?>
<?php if (bp_the_profile_group() == "7") : ?>
// Do whatever you want with group 7
<?php endif; ?>
</div>
<? endwhile; ?>
<?php endif; ?>

The only part I’m not sure about is if you need the first call to bp_the_profile_group() on the second line (after the start of the while loop).

Skip to toolbar