• Hi all,

    I have my permalinks set to the Month and Name setting. This generates URLs like /blog/2009/09/my-post-name. Every time a post is updated, it changes the posting date, which can potentially change the permalink address.

    This is wreaking some havoc on my site, as I’ll have banner/button ads throughout that point to the permalink. When a post from August is updated in September, all of the ads become broken links until I discover this and change it.

    Is there any way to make the original posting date stay static, despite any updates? I’m looking for something like a plug-in or an overlooked setting, as I have multiple authors with varying degrees of computer literacy.

    Thanks for any help!
    Cory

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You need to search this code in single.php file of your theme and remove it:

    $u_modified_time = get_the_modified_time(’U');
    if ($u_modified_time != $u_time) {
    echo “and last modified on “;
    the_modified_time(’F jS, Y’);
    echo “. “; }

    This coe display modified date. Once you remove this code it should display the original posted date and your permalink would not be changed.

    Thanks,

    Shane G.

    Thread Starter corydee

    (@corydee)

    Hi Shane,

    That code doesn’t appear in my template – I actually don’t display the post date at all, it’s simply used in permalinks.

    The majority of our posts are about upcoming events, so by nature, you can have more than one event with the same name (thus wanting year/month in the url), but also the posting date isn’t relevant to the user, its the event date that matters to them.

    Any more ideas?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Post Dates Changing With Updates’ is closed to new replies.