Home › Forums › Back End › WP: How Do You Get A List Of Posts By A Specific Author › Re: WP: How Do You Get A List Of Posts By A Specific Author
July 5, 2009 at 12:50 pm
#60261
Member
This is the code I use on a custom page template to achieve something similiar to what you are aiming for.
In order for this to work you have to assign the template to a page like normal. Then create a custom field called "author" and assign this a value of the author id whose posts you wish to appear.
Code:
Recent blog posts
ID, ‘author’, true)) :
query_posts(“author={$author}&post_status=publish&post_type=post&showposts=3”);
if ( have_posts() ) : ?>
This person doesn’t have a blog yet.
I really hope that this helps you. Please let me know how you get on.