Page update date not working
-
Hi there,
I am using WordPress as a CMS rather than a blog, and have the following code in “footer.php”:
<?php the_modified_date('Y-m-d H:i:s T'); ?>
This works on the home page, but is blank on all other pages on the website. All of these pages have been modified since creation.
I have also tried…
<?php echo the_modified_date('Y-m-d H:i:s T'); ?>
… (in other words, adding “echo”) and I have also tried using the_modified_time. In all cases, the last modified date is correctly displayed in the footer on the site’s home page, but the place where there should be a date on other pages is blank.
Haven’t seen this inconsistency mentioned anywhere else. Anyone have any idea what I might have done wrong?
Thanks.
Craig
- The topic ‘Page update date not working’ is closed to new replies.