WordPress.org

Support

Support » Miscellaneous » Conditional logic based on Timestamp

Conditional logic based on Timestamp

  • 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???

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional logic based on Timestamp’ is closed to new replies.