Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Profile Fields Questions


Gianfranco
Participant

@gian-ava

And another thing I am trying know (Question #2) is if it is possible to use a conditional statement to check if more than 1 group has fileds that has been filled in and return something accordingly:

<?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(); if ( bp_profile_group_has_fields() ): //groups loop ?>

<div id="widget1">

(stuff from group 9)

(stuff from group 7)

</div>

<?php endif; endwhile; ?>
<?php endif; ?>

After experimenting, I couldn’t make it work.

I need that because in my design I’d like to output a “Personal stuff” widget that has a graphic title and background, and it should display only if some fields from groups 9 and 7 are filles in, otherwise it should’t.

Is that achievable?

That is a guru question, isn’t it?

Skip to toolbar