添加以下代码到主题functions.php文件
//文章过期提示
function article_time_update() {
date_default_timezone_set('PRC');
$newdate=time();
$updated_date = get_the_modified_time('Y-m-d H:i:s');
$updatetime=strtotime($updated_date);
$custom_content = '';
if ( $newdate > $updatetime+86400) {
$custom_content= '<div class="article-timeout"><strong><i class="fa fa-bell" aria-hidden="true"></i> 温馨提示:</strong>本文最后更新于<code>'. $updated_date . '</code>,某些文章具有时效性,若有错误或已失效,请在下方<a href="#comment">留言</a>或联系<a target="_blank" title="绿库把爱" href="https://www.lkuba.com"><b>QQ12345</b></a>。</div >';
}
echo $custom_content;
}
打开主题b2child/TempParts/Single文件夹。如果是子主题则需要从副主题复制以下文件到子主题注意目录结构b2child/TempParts/Single下
找到对应文章样式的PHP文件

搜索:<?php do_action(‘b2_single_post_content_after’); ?> 在这段代码上面添加:
<?php article_time_update();//文章过期提示 ?>
然后保存即可