开发者

Wordpress the_author_posts_link

开发者 https://www.devze.com 2022-12-20 00:30 出处:网络
I have a loop where I post list of authors with 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 the 4th entry for every iterati

I have a loop where I post list of authors with 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 the 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; ?开发者_Python百科>


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

Edit: Gravatars: Search WordPress Plugins >> gravatars

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号