/ / Wordpress the_author_posts_link - php、wordpress

Wordpress the_author_posts_link - php、wordpress

私はSQLクエリで著者のリストを投稿するループを持っています。私も投稿する必要があります the_author_posts_link 著者ページへのリンクがあります。ループに入れると、すべての反復で4番目のエントリだけがレンダリングされます。

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; ?>

回答:

回答№1は0

既存のWordPressテンプレートタグで作業してみませんか? テンプレートタグ/ wp list authors«WordPress Codex

編集: Gravatars: 検索ワードプレスプラグイン>> gravatars