Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter issues.inc

    (@issuesinc)

    Thanks r-a-y!

    In case anyone else needs this, here’s the code

    Display Following:
    <?php if ( ! $following = bp_get_following_ids( array( 'user_id' => bp_loggedin_user_id() ) ) ) {
    return false;
    }
    if ( bp_has_members( array(
    'include' => $following,
    'max' => 30,
    'populate_extras' => false,
    ) ) ) : ?>
    <?php while ( bp_members() ) : bp_the_member(); ?>
    [a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name();?>"]
    <?php bp_member_avatar( $avatar_args ) ?>
    [/a]
    <?php endwhile; ?>
    <?php else: ?>
    <?php _e( 'You are not following anyone yet', 'buddypress' ) ?>
    <?php endif; ?>

    Display Followers:
    <?php if ( ! $follower = bp_get_follower_ids( array( 'user_id' => bp_loggedin_user_id() ) ) ) {
    return false;
    }
    if ( bp_has_members( array(
    'include' => $follower,
    'max' => 30,
    'populate_extras' => false,
    ) ) ) : ?>
    <?php while ( bp_members() ) : bp_the_member(); ?>
    [a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name();?>"]
    <?php bp_member_avatar( $avatar_args ) ?>
    [/a]
    <?php endwhile; ?>
    <?php else: ?>
    <?php _e( 'You dont have any followers yet', 'buddypress' ) ?>
    <?php endif; ?>

    the %scategory% should be placed in the common settings, choose custom structure and put /%category%/%postname%/ in there, and just leave the base category empty.

Viewing 2 replies - 1 through 2 (of 2 total)