Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile groups


  • mcmook
    Participant

    @mcmook

    I am using the code here http://pastebin.com/RLreXE7X which was in another post to display all profile groups during registration. But I can’t figure out how to get the ID (or name) of the current profile group in the loop, is this possible? Psuedo code something like this

    <?php /***** Extra Profile Details ******/ ?>
    <?php if ( bp_is_active( 'xprofile' ) ) : ?>
    <div class="register-section" id="profile-details-section">
    <h4><?php _e( 'Profile Details', 'buddypress' ) ?></h4>
    <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
    <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile(  ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    if (profile group ID = x) SOME CONDITIONAL STUFF
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    ....
Viewing 1 replies (of 1 total)

  • mcmook
    Participant

    @mcmook

    I solved this myself, its easy enough just need to know where to look!
    if (bp_get_the_profile_group_name() == XXX) do something

    is there a full reference online rather than in the code?

Viewing 1 replies (of 1 total)
  • The topic ‘Profile groups’ is closed to new replies.
Skip to toolbar