Skip to:
Content
Pages
Categories
Search
Top
Bottom

Help shortern this code…


  • gerikg
    Participant

    @gerikg

    This code is to show group 3 (third tab) in the profile.

    <?php if ( bp_has_profile('user_id='.get_post_author_id().'&profile_group_id=3') ) : ?>
    <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    <?php if ( bp_profile_group_has_fields() ) : ?>
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    <?php if ( bp_field_has_data() ) : ?>
    <?php bp_the_profile_field_value() ?>
    <?php endif; ?>
    <?php endwhile; ?>
    <?php endif; ?>
    <?php endwhile; ?>
    <?php else: ?>
    <?php endif;?>

  • The topic ‘Help shortern this code…’ is closed to new replies.
Skip to toolbar