在 WordPress 主题日志文件,比如 single.php文件,可能会有好几个到要修改,添加以下代码:
<?php
$u_time = get_the_time('U');
$u_modified_time = get_the_modified_time('U');
if ($u_modified_time >= $u_time + 86400) { //超过1天才显示最后更新时间
$updated_time = '更新于:'.get_the_modified_time('Y年n月j日').'  '; //这里设置时间显示格式,可自由调整。
}
?>
<span class="item"><?php echo $updated_time;?></span>