Just flip the “less than” <
to “greater than” >
:
<?php if ( date( 'U' ) - get_the_time( 'U', $post->ID ) > DAY_IN_SECONDS ) : ?>Old Post<?php endif ?>
http://codex.wordpress.org/Easier_Expression_of_Time_Constants
Just flip the “less than” <
to “greater than” >
:
<?php if ( date( 'U' ) - get_the_time( 'U', $post->ID ) > DAY_IN_SECONDS ) : ?>Old Post<?php endif ?>
http://codex.wordpress.org/Easier_Expression_of_Time_Constants