Forums

[resolved] How do I put the current date on a page (not a post)? (3 posts)

  1. Trailmix
    Member
    Posted 2 years ago #

    I want to put the current year on a copyright info page without having to update it every year. I put the php tag <?php echo date('Y'); ?> in the footer (which links to the copyright page) and that keeps the footer link updated, but is there a way to do the same thing on the copyright page itself? I did try just pasting that code into the html page editor but that didn't work, of course. Thanks for helping a newbie.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Create a custom page template that includes the <?php echo date('Y'); ?> code and then apply the new template to your copyright page.

  3. Trailmix
    Member
    Posted 2 years ago #

    Thank you esmi.

Topic Closed

This topic has been closed to new replies.

About this Topic