Support » Fixing WordPress » Display Newest Subscribers

  • Resolved depiction


    Is it possible to display the 4 or 5 newest members or subscribers in the sidebar? I have searched both Google and here at and can not find any plugin that could do this. I am aware of the wp_list_authors tag, but I want to list subscribers. I find no evidence that wp_list_subscribers tag exists.

Viewing 3 replies - 1 through 3 (of 3 total)
  • wp_list_authors works for that too… you just need to set the ‘hide_empty’ parameter to false (because subscribers don’t write posts). Something like this:

    <?php wp_list_authors(“hide_empty=0”); ?>

    The only problem now is that there doesn’t seem to be a way to limit the number of subscribers you want to show.

    Ok… I found something better:

        $subscribers = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users ORDER BY user_registered DESC");
            echo "<li>".$subscribers[$i]->user_nicename."</li>";

    Thanks a lot wp_guy. The code you provided worked great.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Newest Subscribers’ is closed to new replies.