/ Published in: PHP

## Benefit
To notify visitors that the current post they are viewing is an old post. Suitable for Blog / Website that provide timely articles
To notify visitors that the current post they are viewing is an old post. Suitable for Blog / Website that provide timely articles
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?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>'; } ?>
Comments
