Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of drebabels
    drebabels
    Member

    @drebabels

    @henrypwmoulton the code should go into one of your template files (i.e. if you want the followers to appear in your sidebar then you should add the code to sidebar.php). This Buddypress Follower Loop work the same way as WordPress ones do.

    Avatar of drebabels
    drebabels
    Member

    @drebabels

    @henry the code should go into one of your template files (i.e. if you want the followers to appear in your sidebar then you should add the code to sidebar.php). This Buddypress Follower Loop work the same way as WordPress ones do.

    Avatar of drebabels
    drebabels
    Member

    @drebabels

    I needed to do this recently too… this is the technique I used:

    $group = groups_get_group( array( ‘group_id’ => $group_id ) );

    Found on http://bluemandala.com/buddypress-plugin/127/buddypress-get-group-details-from-group_id/

    So in order to get the link to your groups try something like this

    global $bp;
    $group = groups_get_group( array( ‘group_id’ => $group_id ) );
    home_url( $bp->groups->slug . ‘/’ . $group -> slug )

    Avatar of drebabels
    drebabels
    Member

    @drebabels

    Basically what you need to do is create a new BP members loop using bp_has_members(), and filter it so that it returns only the followers / following members. Below is what I am using on my site to return user following avatars.

    `

    <?php

    echo ‘

    Following ‘.$counts.’

    ‘;

    ?>

    • <a href="” title=”">

      <!– –>

    `

    Avatar of drebabels
    drebabels
    Member

    @drebabels

    You can also try this method if you aren’t running WPMU, and nothing else seems to work for you. Just a note, it does require you to change a BP core file. http://adlatitude.posterous.com/how-to-include-recaptcha-into-buddypress

    Avatar of drebabels
    drebabels
    Member

    @drebabels

    Just a note “ echos the count.
    If you want to return the count without the echo use “

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