Support » Miscellaneous » Conditional logic based on Timestamp
9 years, 2 months ago
I would like to specify “New” list items if they are younger than 60 days.
My thought is to display “New” after their title, and to use the_date() or the_time() + 24 * 60 * 60 * 60 to compare the current time to.
This, however, has become quite the opposite of a 5 minute dev cycle.
Did you try doing exactly what you described? Is it working or is it just taking too long to implement?
8 years, 5 months ago
it did work exactly as described… but the client wanted more control so we use a custom field and a class to display the ‘New’.
See this post: http://wordpress.org/support/topic/169652?replies=6