Ready to get started?Download WordPress


[resolved] Custom style for last post on page (4 posts)

  1. tr33m4n
    Posted 6 years ago #

    Hello there,

    I recently read this article http://www.elledoesit.com/on-the-computer/wordpress-tip-add-a-divider-after-all-but-last-post about modifying the loop to change how the last post on a page is displayed. In the tutorial however it shows you how to add a html tag to the last post (like a break for example) and i was wondering whether there would be a way to apply a different css class using the same method? I'm not particularily skilled with php so any help would be greatly appreciated!

    Many thanks

  2. tr33m4n
    Posted 6 years ago #

    Never mind, I asked on the website and got an answer :)

  3. gmisen
    Posted 5 years ago #

    what was the answer? that page isnt up any more

  4. stoutdesign
    Posted 5 years ago #

    I was having the same problem. Take a look at this post to see how to
    Determine the last post in a WordPress loop

Topic Closed

This topic has been closed to new replies.

About this Topic