PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
Jason Caldwell wrote:Nope, sorry. This is NOT in s2Member, or s2Member Pro yet.
In the mean time, you might take a look at this:
http://wordpress.org/extend/plugins/members-list/
<?php
foreach(get_users("role=s2member_level1") as $user)
{
$user = new WP_User($user->ID);
// print_r($user); for a list of properties available for display.
}
?>
<?php
foreach(get_users() as $user)
{
$user = new WP_User($user->ID);
// print_r($user); for a list of properties available for display.
}
?>
<?php
foreach(get_users("role=subscriber") as $user)
{
$user = new WP_User($user->ID);
// print_r($user); for a list of properties available for display.
}
?>
<?php
foreach (get_users () as $user)
{
$user = new WP_User ($user->ID);
echo get_user_field ("my_field_id", $user->ID);
// print_r(get_s2member_custom_fields($user->ID)); // Requires s2Member v110912+.
// print_r($user); // for a list of properties available for display.
}
?>
<?php
foreach (get_users () as $user)
{
$user = new WP_User ($user);
echo get_user_field ("age", $user->ID);
print_r(get_s2member_custom_fields($user->ID));
print_r($user);
}
?>
$user = new WP_User($user);
$user = new WP_User($user->ID);
Jason Caldwell wrote:There are several options here available to sort with:
http://codex.wordpress.org/Function_Reference/get_users
Users browsing this forum: No registered users and 0 guests