Forums

Can't get last modified date to appear on pages (3 posts)

  1. tactics
    Member
    Posted 4 years ago #

    Hi folks. I've created a special template for online newsletters on my site. At the top of each page, I am trying to display the month the newsletter is sent out in like "July 2007". An example is here:

    http://www.utilikilts.com/?page_id=108

    The code I am using to display the date is:

    <h1><?php the_time('F Y') ?></h1>

    The problem is that the newsletter is written before it is sent out. So I need it to display the date the page was modified, not the date it was first created. I tried using the "page date" plugin from the link below, but I can't get it to work:

    http://vapourtrails.ca/wp-plugins

    I also tried changing the code in my template to:

    <h1><?php the_date('F Y') ?></h1>

    But then nothing shows up for the date.

    Need to get another newsletter out in a couple of days, and I can't figure this out. Any help is greatly appreciated.

  2. glrss
    Member
    Posted 4 years ago #

  3. tactics
    Member
    Posted 4 years ago #

    Kickass, thanks. Don't know why I couldn't find that anywhere, or why someone bothered to create a special plugin if it's that simple.

Topic Closed

This topic has been closed to new replies.

About this Topic