Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to: list total # of users


  • enlightenmental1
    Participant

    @enlightenmental1

    I want to show the total number of users in the wp-admin back-end

    in the /members page, there is code to list the total number of users

    (you are viewing 1-20 of 150 users)

    this code doesn’t work outside of the /members area

    does wpmu have a way to show total number of users.. rather than adding them up in the users section of the back-end

    i’ve seen people list total number of blogs, total number of posts etc… but i cant find one for total users

    thanks for any advice

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well, yes, ultimately it’s just a COUNT sql query. Where do you want to show this number?


    enlightenmental1
    Participant

    @enlightenmental1

    top of wp-admin next to “howdy Admin”

    admin-header

    or somewhere near there

    yeah… i read some people make custom DB tables where the count total is added by creating a query/sql command… i dont know enough to do that…


    Tim Nicholson
    Participant

    @timnicholson

    Enlightenmental1, I’m not sure if you are a developer or not, but if so there is a function called bp_core_get_total_member_count() in bp-core.php. That function will return the total number of members. However, keep in mind that this may be different than the total number of registered users in WP if you didn’t have BP up and running from day 1. If you are going to hack the core WP admin screens, you should make sure to check that the BP plugin is activated before calling that function.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to: list total # of users’ is closed to new replies.
Skip to toolbar