• basically, what i want to do is have my MOST recent post (at the top) display in a different format to the other recent posts on the home page.

    So baiscally the most recent post would display one way, then the 2nd-6th posts would display a different way.

    Any ideas?

Viewing 1 replies (of 1 total)
  • If you have ANY php experience, this really isn’t that hard. Any of the old discussions here about how to alternate formatting of posts (odd/even colors), or how to introduce a banner or something after x posts tells you the details.

    The basic overview: before The Loop starts, set a counter variable to 0. wrap the post output in a div, with class=’firstpost’ or class=’otherpost’, depending on whether the counter is 0 or non-0. increment the counter before the close of the div at the end of the post.

    Then, CSS the class=firstpost posts differently.

    -d

Viewing 1 replies (of 1 total)

The topic ‘Calling the x most recent post’ is closed to new replies.