tags:

views:

159

answers:

2

I have a loop where I post list of authors w/ SQL Query, I also need to post the_author_posts_link with links to author pages. When I put it into loop it renders only 4th entry for every iteration.

foreach ($all_users_id as $i_users_id ) :


$user = get_userdata( $i_users_id );

the_author_posts_link();

$email = $user->user_email;
echo $email;
?>

<?php endforeach; ?>
A: 

Why not work with an existing wordpress template tag?: Template Tags/wp list authors « WordPress Codex

Edit: Gravatars: Search WordPress Plugins >> gravatars

songdogtech
Yes, but then I have hard time displaying gravatar images. Any Thoughts on that?
dd
A: 

dd, did you find a solution to this? I literally have the same code written. I can fetch emails, names, aim, website, and custom meta information. However, I can't fetch a link to an author's recent posts.

I know this isn't an answer, but the website wasn't letting me message you or leave a comment. Sorry for the confusion.

P.S. would this work?

$current_link = get_author_posts_url($curauth->ID,$curauth->display_name);
Sahas Katta