Just like srshakya over here, my shortcode output won't appear where I put it, but rather at the top of the content (top of the post/page content).
Here is the page: http://img29.imageshack.us/img29/7155/bloguserspage.jpg
Here it is in the editor: http://img32.imageshack.us/img32/2594/bloguserspageediting.jpg
And here is the relevant code from functions.php:
function abm_blog_users() {
$blogusers = get_users_of_blog(); //gets registered users
if ($blogusers) {
foreach ($blogusers as $bloguser) {
$user = get_userdata($bloguser->user_id); //gets the actual data about each user
echo "<a href=\"".$user->user_url."\">".$user->display_name."</a> (<a href=\"";
bloginfo('url');
echo "/author/".$user->user_nicename."\">";
echo "#userposts</a>)<br />";
}
}
}
add_shortcode('blogusers', 'abm_blog_users');
Desperately hope you have some insight. And for those wondering about #userposts, the function isn't done yet. =)