Forums

How would I lay this out? latest post and recent posts (4 posts)

  1. tjobbe
    Member
    Posted 2 years ago #

    I want to create a home page that shows the latest post up to "the_excerpt" and then have four recent posts that show an image and a title that link through to the post.

    So basically, the home page will show the five most recent posts, with the top most recent post being shown in more detail.

    I know the HTML and CSS I need for this as I already have the page in question mockedup up, but what I'd like to know is how to create what I've described above?

    Similar to the following: http://www.farstyle.com/tj.gif

    How do you get the latest post in more detail, and still have four more recent posts underneath?

    Any advice appreciated, don't really know where to start with this!

  2. Icethrill
    Member
    Posted 2 years ago #

    You probably need to have two loops and make smart use of the post query function.

    http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query

    The first loop is made to show only 1 post while the other one will ignore the latest post and show everything in excerpts.

    So have two loops, read this also might be helpful: http://perishablepress.com/press/2008/09/01/multiple-loops-and-multiple-columns-with-wordpress/

  3. tjobbe
    Member
    Posted 2 years ago #

    Thanks IceThril, will look into this, hopefully I can understand it well enough!

  4. tjobbe
    Member
    Posted 2 years ago #

    Unfortunately it's just that bit too advanced for me to understand.

    If anyone has the time, and feels like helping me out, would love to know how to get another loop in that shows the 4 most recent posts, bar the topmost recent post because I will be echoing that at the top, the additional posts need to follow on from that. I have figured out how to show the most recent post - I think - and therefore just need to try and get the other older posts to show up somehow.

    If anyone can help, that would be truly magnificent!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.