Show 1 Post Per Author in WordPress

Trying to get a template to show just a certain author for a certain category of posts. Finally found this:
One post per author

<?php query_posts(‘author_name=admin&showposts=1’); ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
// and other output
<?php endwhile;?>

This entry was posted in General on by .

About Andy Wibbels

Andy is an award-winning blogger and author of the book Blogwild! A Guide for Small Business Blogging. His work has been featured in The Wall Street Journal, USA Today, Entrepreneur, Wired, Business Week, Forbes, and other national and international media. He was worked at several San Francisco startups including Get Satisfaction, SAY Media, InMobi, Keas, and Mindjet. Currently, Andy is Director of Marketing at Lucidworks. Tw · Fb · G+ · Li

Leave a Reply

Your email address will not be published. Required fields are marked *