get_the_time('U')
returns $string
. You cannot subtract a string from an integer
function new_badge(){
if ( (time() - strtotime ( get_the_time( 'U' ) ) ) <= (3*86400)) {
echo '<div class="new"></div>';
}
}
get_the_time('U')
returns $string
. You cannot subtract a string from an integer
function new_badge(){
if ( (time() - strtotime ( get_the_time( 'U' ) ) ) <= (3*86400)) {
echo '<div class="new"></div>';
}
}