Conditional logic based on Timestamp (3 posts)

  1. shua
    Posted 9 years 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.

    any thoughts???

  2. tsguitar
    Posted 9 years ago #

    Did you try doing exactly what you described? Is it working or is it just taking too long to implement?

  3. shua
    Posted 8 years 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

Topic Closed

This topic has been closed to new replies.

About this Topic