WordPress.org

Ready to get started?Download WordPress

Forums

Frisco for BuddyPress
[resolved] Member Friend on Header (3 posts)

  1. Cidade Sonho
    Member
    Posted 1 year ago #

    Put this code in anywhere on member-header.php (bp-default)

    <?php if ( bp_has_members( 'type=random&max=20&user_id' . bp_loggedin_user_id() ) & is_user_logged_in() ) : ?>
    <?php while ( bp_members() ) : bp_the_member(); ?>
    "><?php bp_member_avatar('type=width=40&height=40') ?>
    <?php endwhile; ?>
    <?php endif; ?>

    this will get the friends of user only logged members

    type=popular
    type=newest

    http://wordpress.org/extend/themes/frisco-for-buddypress/

  2. Cidade Sonho
    Member
    Posted 1 year ago #

    #FIXED

    Put this code in anywhere on member-header.php (bp-default)

    <?php if ( bp_has_members( 'type=random&max=20&user_id' . bp_loggedin_user_id() ) & is_user_logged_in() ) : ?>
    					<?php while ( bp_members() ) : bp_the_member(); ?>
    						<a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar('type=width=40&height=40') ?></a>
    					<?php endwhile; ?>
    <?php endif; ?>

    this will get the friends of user only logged members

    type=popular
    type=newest

  3. David Carson
    Member
    Theme Author

    Posted 1 year ago #

    Marking as resolved.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic