Title: Style latest post differently
Last modified: August 18, 2016

---

# Style latest post differently

 *  [dalio](https://wordpress.org/support/users/dalio/)
 * (@dalio)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/style-latest-post-differently/)
 * 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](https://wordpress.org/support/users/dalio/)
 * (@dalio)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/style-latest-post-differently/#post-129498)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [dalio](https://wordpress.org/support/users/dalio/)
 * Last activity: [21 years, 5 months ago](https://wordpress.org/support/topic/style-latest-post-differently/#post-129498)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
