Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. $timeago = human_time_diff( get_the_time('U'), current_time('timestamp') );
  2. print $timeago;
  3.  
  4. $timeago = human_time_diff( get_the_time('U'), current_time('timestamp') );
  5. print $timeago;
  6. if( $timeago >= 0 && $timeago <= 5 )
  7. {
  8. print 'NEW';
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement