• Hi,

    I’m trying to create a homepage where I can style the latest post differently to the other showing posts (of which there are three).

    I’m using post teaser, and have used the get_recent_posts hack, but I now have the latest post in its own Div as an excerpt and just a list of post titles for the others. I’d like to be able to show the other recent posts with some excerpt – using the post teaser maybe?

    Could someone explain how I can alter the WP post loop to be able to control which posts are put in which div?

Viewing 1 replies (of 1 total)
  • Thread Starter dalio

    (@dalio)

    I managed to work it out – I love this hacking stuff :0)

    Basically I used the post-teaser plugin to only show the first 100 characters of a post and restricted the homepage to display 1 post at a time. The normal loop was in a div called latestpost

    I then found in the Wikki the useful get_posts template tag – so I then created another div called recentposts and used the get_posts function to return the title and excerpt from the most recent 3 posts (using an offset of 1 to miss the latest post).

    Bingo – nice and controlable :0)

Viewing 1 replies (of 1 total)

The topic ‘Style latest post differently’ is closed to new replies.