Du musst dich anmelden um Beiträge und Themen zu erstellen. Einloggen · Registrieren

Display Recently Registered Users

Quick and easy method for displaying a list of recently registered users. Place the following code directly into your theme, wherever you would like to display the list:

	<?php $usernames = $wpdb->get_results("SELECT user_nicename, user_url FROM $wpdb->users ORDER BY ID DESC LIMIT 5");

		foreach ($usernames as $username) {
    			echo '<li><a href="'.$username->user_url.'">'.$username->user_nicename."</a></li>";

As-is, this code will spit out the five most recent registered users. This is easily changed to whatever number you wish by simply editing the number “5” in the first line.

Source: WPRecipes.com