通知WordPress中的旧邮件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了通知WordPress中的旧邮件相关的知识,希望对你有一定的参考价值。
## BenefitTo notify visitors that the current post they are viewing is an old post. Suitable for Blog / Website that provide timely articles
<?php // Put inside Post Loop $time_defined_as_old = 60*60*24*365; // A Year echo '<div class="notice"><strong>Notice</strong><br />This article is published more than one year ago. Information in this article might be irrelevant with current situation</div>'; } ?>
以上是关于通知WordPress中的旧邮件的主要内容,如果未能解决你的问题,请参考以下文章