WordPress.org

Ready to get started?Download WordPress

Forums

Show most recent post from each author (1 post)

  1. topdownjimmy
    Member
    Posted 8 years ago #

    I'm trying to show, in four separate divs, the most recent post from each of four authors. What complicates this is that I want the divs to be ordered chronologically on the page.

    What further complicates this is that I want the VERY MOST RECENT POST OF ALL to be displayed separately, above these other four, such that the author of this "headline" post will have his SECOND most recent post displayed beneath, among the other three.

    What I've tried to do (though I'm not php expert by any means) is store the author ID in a variable to be checked later, as in:

    <?php query_posts('author = -$firstpostauthor') ?>

    although it's giving me a great deal of trouble.

    Any help would be greatly appreciated. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags