Hey Everyone,
I created a special template page so that I can list the members on a single page. I'm able to use the code below to get their name, website, and other meta information. However I can't seem to figure out a clean way to grab a link to each person's author archive (aka. the_author_posts_link).
<?php $authors = array("clinton", "bush", "obama") ?>
<?php foreach($authors as $author) : ?>
<?php $user_info = get_userdatabylogin( $author ) ?>
<div class="person">
<?php echo get_avatar( $user_info->user_email, '150' ); ?>
<div class="details">
<?php echo $user_info->display_name ?><br />
<span><?php echo $user_info->user_email ?></span>
</div>
</div>
<?php endforeach; ?>
Using the_author_posts_link in that for loop isn't working. Everything else works perfectly. Can someone please offer me a suggestion to grab a link to a list of their posts. (not their website link.)