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


Posted

in

by

Tags:

Comments

Leave a Reply

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