Display Last 5 posts from multiple WP Authors — HELP!
-
Hi.
I set up a few friends as authors on my blog. I would like to have a Page in which it shows a number of blocks. Each block would contain:
– Author Name
– Author About Info
– Last 5 posts by that AuthorMy problem is that I don’t know how to create the loop necessary.
I know I can get the list of authors with:
<?php wp_list_authors('show_fullname=1&optioncount=1'); ?>And their About info with
<?php the_author_description(); ?>And their Last 5 posts with
<?php wp_get_archives('type=postbypost&limit=5'); ?>I know I will need to create some kind of Loop which will:
– Query DB for authorsStart: Loop 1
– Set some type of author id variable
– Get the Author’s about infoStart: Loop 2
– Query archives to find their last 5 posts
End: Loop 2End: Loop 1
Any help would be appreciated.
The topic ‘Display Last 5 posts from multiple WP Authors — HELP!’ is closed to new replies.