WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to count users? (7 posts)

  1. Brigitte
    Member
    Posted 7 years ago #

    This may seem like a really dumb question, but is there a way to show a count of how many authors a blog has? For example:

    This blog has ## users.

  2. Brigitte
    Member
    Posted 7 years ago #

    Ah, nevermind. I found a plugin: http://www.kineda.com/?p=394

  3. Brigitte
    Member
    Posted 7 years ago #

    Hm, upon extraction the coding gets messed up so I had to paste it from WinRAR to notepad to get the lines right. :( Otherwise it works fine.

  4. Xenuan
    Member
    Posted 6 years ago #

    dead link :/ anyone paste?

  5. creatiu
    Member
    Posted 6 years ago #

    I need a plugin to count total members, this one mentioned is not available.

  6. vlp
    Member
    Posted 6 years ago #


  7. MichaelH
    Member
    Posted 6 years ago #

    I put this in the WordPress Default 1.6 theme's sidebar.php file:

    <?php
    $user_count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->users;");?>
    <p><?php echo 'user count is ' . $user_count; ?></p>

Topic Closed

This topic has been closed to new replies.

About this Topic