Thread Starter
Aurox
(@aurox)
Worked with this, thank you sir.
<?php
if ( is_home() && !is_paged() ) {
echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago';
} else {
echo the_time('d.m.Y');
}
?>
Thread Starter
Aurox
(@aurox)
thanks for your answer.
This code didn’t worked.
<?php
if ( is_front_page() ) {
echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago';
} else {
echo 'x';
}
?>
Is just displaying like “2 hours ago” even if I’m on page 2.