查找显示发布日期的代码。它应该如下所示:
Posted on: <?php the_time(\'l, F jS, Y\') ?>
现在将其替换为以下代码(从
Ardamis’ post):发布于
<?php the_time(\'F jS, Y\') ?>
<?php $u_time = get_the_time(\'U\');
$u_modified_time = get_the_modified_time(\'U\');
if ($u_modified_time != $u_time) {
echo "and last modified on ";
the_modified_time(\'F jS, Y\');
echo ". "; } ?>