Description:

With this hack you will be able to set message to show in a specific date.

The Code:

Thanks to Wprecipes for this great hack i’ll show you how to display a custom (and customizable) message to your user only in a specific Date. Just put following code where you want to display message:

So:

<?php
if ((date('m') == mm) && (date('d') == dd)) { ?>
    Custom message here
<?php } ?>

Obviusly you need to replace “mm” with month number and “dd” with desired day number; For example for Halloween the code must be:

<?php
if ((date('m') == 10) && (date('d') == 31)) { ?>
 Happy Halloween
<?php } ?>

Josh Stauffer suggest this code to do the same thing

<?php if ( date( ‘m-d’ ) == ’12-25′ ) { echo ‘Merry Christmas’; } ?>