I'd like to highlight the most recent post in a query. Right now I'm checking for the first post, but I can't do that on page 2 because that would be wrong. How do I highlight my most recent post? Thanks!
I'd like to highlight the most recent post in a query. Right now I'm checking for the first post, but I can't do that on page 2 because that would be wrong. How do I highlight my most recent post? Thanks!
combine your check for the first post with the is_paged() conditional tag:
hypothetical example:
if( $first_post && !is_paged() )
Excellent, thanks! Topic closed! :)
This topic has been closed to new replies.