Display added text to loop using IF and compare to published date
-
Hey Eliot! Have question for you on the use of the post published date. I am wanting something like this to work in a post loop that is ordered alphabetically.
- Kindergarten ELA Curriculum Map
- Kindergarten ELA Scope and Sequence – NEW!
- Kindergarten ELA Standards
- Primary High Frequence Words Resources
I would like to use an IF statement to make the text NEW! be displayed for 10 days after the publish date and then disappear.
Here’s what I have tried so far with no success.
[-if field="date" value="today" compare="less" value_2="11"]<strong>NEW!</strong>[/-if]
I’m also using this within another IF statement which is working fine.
Any ideas?
Thanks for your help. You’re awesome!
Jerrad
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Display added text to loop using IF and compare to published date’ is closed to new replies.