Last Updated On

Although it doesn’t look on all web sites, adding a “Last Updated On” line with today’s date can increase user’s trust when they visit your PPC landing page. The reason that this features works well for PPC landing pages is that it reassures the visitor that the information they are reading isn’t out of date.

Since you don’t want to have to update your page manually everyday, here’s how to do it automatically with PHP:

Wordpress isn’t displaying the PHP properly. So the first and last tags are [ and ], in your code you’re going to want to replace them with < and > and it will work.

Above the html tags at the very very top of your index file, paste the following code :

[?php
$yesterday = date(’m/d/Y’, mktime(0, 0, 0, date(”m”) , date(”d”) - 1, date(”Y”)));
?]

Add the following code where you want the “Last Updated On: XX/XX/XXXX” to appear:

Last Updated On : [?php echo $yesterday ?]

Source

Leave a Comment

You must be logged in to post a comment.