Title: Conditional Tags and Date Modified
Last modified: August 19, 2016

---

# Conditional Tags and Date Modified

 *  [CowboyFrank](https://wordpress.org/support/users/cowboyfrank/)
 * (@cowboyfrank)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/conditional-tags-and-date-modified/)
 * I’d like to display a list of the three most recently modified posts, and if 
   the modified date of a post is also **today**‘s date, I’d like to apply a different
   CSS class. (so that I can alter how it looks, making it more obvious that it’s
   a brand new version of a post.) I looked through the Conditional Tags article
   in the documentation, but couldn’t find the “if” statement that tied those two
   factors (the modified date and today’s date) together.
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [CowboyFrank](https://wordpress.org/support/users/cowboyfrank/)
 * (@cowboyfrank)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/conditional-tags-and-date-modified/#post-1835807)
 * >bump<
    “Class…anyone?”

Viewing 1 replies (of 1 total)

The topic ‘Conditional Tags and Date Modified’ is closed to new replies.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [date](https://wordpress.org/support/topic-tag/date/)
 * [if](https://wordpress.org/support/topic-tag/if/)
 * [modified](https://wordpress.org/support/topic-tag/modified/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [CowboyFrank](https://wordpress.org/support/users/cowboyfrank/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/conditional-tags-and-date-modified/#post-1835807)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
