Skip to:
Content
Pages
Categories
Search
Top
Bottom

# of registered members display

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

  • Jeff Sayre
    Participant

    @jeffsayre

    Since the number of members on your BP site is the same as the number of users of your WPMU site, you would use a WPMU function.

    I have not tested this, but you should be able to do something like this:

    <?php if ( bp_has_site_members() ) :
    $members_of_site = get_user_count();
    echo 'My awesome site has ' . $members_of_site . ' members';
    else:
    echo 'No members found';
    endif;
    ?>

    Just change the message to whatever you want and wrap it in some CSS, and you should be good to go.


    Kunal17
    Participant

    @kunal17

    Thanks for the quick help Jeff. Ill try this out.


    Kunal17
    Participant

    @kunal17

    The code worked fine. Thanks!


    Jeff Sayre
    Participant

    @jeffsayre

    Great! I’m glad to have helped.


    Kunal17
    Participant

    @kunal17

    Is there a similar reference that can pull up # of blog posts (or # of blogs if thats not possible) as well as # of discussions (forum topics)?

    Thanks again for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘# of registered members display’ is closed to new replies.
Skip to toolbar