Title: Last Modified Timestamp
Author: Evan Mattson
Published: <strong>January 11, 2012</strong>
Last modified: August 16, 2025

---

Search plugins

![](https://ps.w.org/last-modified-timestamp/assets/banner-772x250.jpg?rev=3200533)

![](https://ps.w.org/last-modified-timestamp/assets/icon-256x256.jpg?rev=3200533)

# Last Modified Timestamp

 By [Evan Mattson](https://profiles.wordpress.org/aaemnnosttv/)

[Download](https://downloads.wordpress.org/plugin/last-modified-timestamp.1.0.6.zip)

 * [Details](https://pcd.wordpress.org/plugins/last-modified-timestamp/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/last-modified-timestamp/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/last-modified-timestamp/#installation)
 * [Development](https://pcd.wordpress.org/plugins/last-modified-timestamp/#developers)

 [Support](https://wordpress.org/support/plugin/last-modified-timestamp/)

## Description

This plugin adds information to the admin interface about when each post/page was
last modified (including custom post types!).

Enhanced areas:

 1. Page/post admin tables – added `Last Modified` column which is also sortable.
 2. Page/post edit screen (`post.php`) – added `Last modified on: *timestamp*` to `
    Publish` meta box.
 3. Admin messages after editing a page/post – ie: `Post updated. *timestamp* View 
    Post`,

No options currently available, but the output can be fully customized with filters
and the shortcode can be easily customized using attributes!

### Gutenberg, WordPress 5, and Beyond

This plugin does not yet enhance the new editor provided by Gutenberg and introduced
as the default editor in WordPress 5.0. No plans exist to add support for this although
it may be added in the future.
 Other areas of wp-admin enhanced by the plugin still
work, as does the classic editor.

## Screenshots

 * [[
 * Page/post admin tables – added `Last Modified` column.
 * [[
 * Page/post edit screen (`post.php`) – added `Last modified on: *timestamp*` to`
   Publish` meta box.
 * [[
 * Admin messages after editing a page/post – ie: `Post updated. *timestamp* View
   Post`

## Installation

 1. Upload the `last-modified-timestamp` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## FAQ

### How to add the last modified time to my page or post?

This plugin does not change the public facing appearance of your website, but gives
you a few ways to add this if you wish.

 1. Using the `[last-modified]` shortcode. See below.
 2. Using template functions in your theme or plugin. See below.

### How to provide the last modified time to search engines?

The best way to provide the last modified timestamp to search engines is by using
a plugin to add an XML sitemap for your website. This is a special kind of document
which provides various information to search engines about all the content on your
website, including when each was last modified. Many SEO plugins provide include
this functionality with them, but there are many standalone plugins for this as 
well. This allows search engines to reference a single file (which is automatically
kept up to date for you by the plugin) to know exactly what content has changed 
on your whole website since it was last indexed, rather than recrawling every page.

This plugin may be used to display the last modified date and time to a reader on
your website, but it is not intended as a tool for SEO.

### How to use the [last-modified] shortcode?

[last-modified] Returns the last modified timestamp in this format `date seperator
time`.

_Attributes (all optional)_

datef – specify a date format using the [PHP date format](http://www.php.net/manual/en/function.date.php).

timef – specify a time format using the [PHP date format](http://www.php.net/manual/en/function.date.php).

sep – specify the character/text you want to use to separate the date & time.

format – define the output format using placeholders `%date%`, `%time%`, and `%sep%`.
Other text can be used as well.

### How to change the outputted date/time format?

By default, the plugin mimicks the time & date formats used in the same context (
ie: admin tables, publish box) that WordPress uses.

As mentioned above, LMT uses PHP date format strings for the formatting of the outputted
date & time.

To customize the output with a shortcode, use the attributes as described above.

To customize the output in an admin context, a filter may be used.

 * **last_modified_timestamp_defaults** – allows default values to be filtered. 
   Shortcode attributes override defaults when present, otherwise there are defaults
   for shortcode output as well. Passes 1 parameter (array).

For example, if you wanted to change the time format in the admin messages that 
appear after a post is modified to a 24hr format with leading zeros, add this to
your theme’s functions.php:

    ```
    function my_lmt_defaults( $d ) {

        $d['contexts']['messages']['timef'] = 'H:i';

        return $d;
    }
    add_filter('last_modified_timestamp_defaults','my_lmt_defaults');
    ```

### Template Tags

Models the function naming convention used by WordPress for `get_the_content` / `
the_content` and similar functions.

 * `get_the_last_modified_timestamp()` – returns timestamp.
 * `the_last_modified_timestamp()` – displays/echos the timestamp.

These functions accept 2 arguments, both are optional:

 * `$context` (string) to output formatted according to a defined context (ie: admin
   messages, posts table, etc.)
 * `$override` (array) using this will override any defaults that are specified 
   here, but output can still be overriden at final output.
    Example array structure
   is: `array('datef' => 'M j, Y', 'timef' => 'g:i', 'sep' => '&rarr;', 'format'
   => '%date% %sep% %time%')`

## Reviews

![](https://secure.gravatar.com/avatar/01717ec98d61f7aff2c46b4b0cd5b6720e5aff3f9329db00960f47545ca94659?
s=60&d=retro&r=g)

### 󠀁[Works well!](https://wordpress.org/support/topic/works-well-2652/)󠁿

 [brochite](https://profiles.wordpress.org/brochite/) November 3, 2022

This plugin works well, despite my confusion with a conflicting plugin that did 
give some issues. Kudos to the plugin writer Evan for writing back to help me solve
an issue that wasn’t his to solve!

![](https://secure.gravatar.com/avatar/6de9ab1bf38d988d2f915e35dc6337019557086718878d57c3dd39a02113e3ee?
s=60&d=retro&r=g)

### 󠀁[I use it ever day!](https://wordpress.org/support/topic/i-use-it-ever-day/)󠁿

 [bobsled](https://profiles.wordpress.org/bobsled/) July 27, 2022

I’ve used this plugin for years now. It works like a charm and does exactly what
it says on the box.

![](https://secure.gravatar.com/avatar/60fccdf240941865706235399b2d956b869f552263dfffd2cd437d23bcbd78aa?
s=60&d=retro&r=g)

### 󠀁[Useful, simple plugin!](https://wordpress.org/support/topic/useful-simple-plugin/)󠁿

 [ip-rob](https://profiles.wordpress.org/ip-rob/) July 8, 2020

Great way to track modification dates of posts on my blog on the admin side while
giving the option of putting it on a post. I like that you can control if the modified
date shows up by inserting the shortcode but it doesn’t do it automatically. Some
posts I don’t want the modified date to be inserted if I’m fixing a typo or something
similar. Great plugin!

![](https://secure.gravatar.com/avatar/3f02031339fcb3a6b0d51b9b8c8d54cd4bda11352080b2dc2a485cd29a6c9236?
s=60&d=retro&r=g)

### 󠀁[Should be a standard feature](https://wordpress.org/support/topic/should-be-a-standard-feature/)󠁿

 [thingevery](https://profiles.wordpress.org/thingevery/) April 3, 2019 1 reply

I added a privacy policy page to a client’s website and wanted to automatically 
display when it was last updated. I was surprised to find this feature lacking from
WP. Searched and found this super simple plugin, and it worked great. Thanks!

![](https://secure.gravatar.com/avatar/a7698edd04a574b4cbb3f4f92073e5cb50abe9d6dd7a0f874c9a62b0a89e5bcb?
s=60&d=retro&r=g)

### 󠀁[Simple & Effective](https://wordpress.org/support/topic/simple-effective-131/)󠁿

 [amreshkramar](https://profiles.wordpress.org/amreshkramar/) September 5, 2018

An effective plugin for lasting bloggers.

![](https://secure.gravatar.com/avatar/509808f298ae7c8781276bfaa0facb2bed39890d249dd3a11cf2f3dc149baac7?
s=60&d=retro&r=g)

### 󠀁[Essential for any blog](https://wordpress.org/support/topic/essential-for-any-blog/)󠁿

 [](https://profiles.wordpress.org/mitchellk/) August 18, 2018 1 reply

I have a blog now 17 years old, THIS has proven to be the single most valuable plugin
for me. Works like a charm.

 [ Read all 28 reviews ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/)

## Contributors & Developers

“Last Modified Timestamp” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Evan Mattson ](https://profiles.wordpress.org/aaemnnosttv/)

“Last Modified Timestamp” has been translated into 3 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/last-modified-timestamp/contributors)
for their contributions.

[Translate “Last Modified Timestamp” into your language.](https://translate.wordpress.org/projects/wp-plugins/last-modified-timestamp)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/last-modified-timestamp/),
check out the [SVN repository](https://plugins.svn.wordpress.org/last-modified-timestamp/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/last-modified-timestamp/)
by [RSS](https://plugins.trac.wordpress.org/log/last-modified-timestamp/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.6

 * Fix notice about loading translations too early
 * Bump minimum required version of WP to 4.6

#### 1.0.5

 * Tweaked hook for testing
 * Integrated GitHub Actions

#### 1.0.4

 * Add automated tests

#### 1.0.3

 * Template function bugfix

#### 1.0.2

 * Min required WP bump to >= 3.2
 * PHP compatibility fix

#### 1.0.1

 * General housekeeping & maintanence
 * Tested against 3.8

#### 1.0

**Major Update**

 * Added support for all custom post types.
 * Added `[last-modified]` shortcode.
 * Added filters to provide complete control.
 * Added template tags.
 * Encapsulated code.

#### 0.4

 * Added support for other types of update messages.
 * Added filter to allow output to be customized.

#### 0.3.1

 * Fixed sortable column on pages table.

#### 0.3

 * The `Last Modified` column in the admin post/page tables is now sortable!
 * CSS – widened `Last Modified` column to account for extra width needed for sortable
   arrow.
 * Updated screenshot of `Last Modified` column in the admin post/page tables.
 * Corrected a typo in the admin messages for pages.

#### 0.2

 * Fixed date formatting in the admin tables.

#### 0.1

 * Initial release

## Meta

 *  Version **1.0.6**
 *  Last updated **8 months ago**
 *  Active installations **7,000+**
 *  WordPress version ** 4.6 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 5.3 or higher **
 *  Languages
 * [Czech](https://cs.wordpress.org/plugins/last-modified-timestamp/), [Danish](https://da.wordpress.org/plugins/last-modified-timestamp/),
   [English (US)](https://wordpress.org/plugins/last-modified-timestamp/), and [Swedish](https://sv.wordpress.org/plugins/last-modified-timestamp/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/last-modified-timestamp)
 * Tags
 * [last-modified](https://pcd.wordpress.org/plugins/tags/last-modified/)[modified time](https://pcd.wordpress.org/plugins/tags/modified-time/)
   [page modified](https://pcd.wordpress.org/plugins/tags/page-modified/)[post modified](https://pcd.wordpress.org/plugins/tags/post-modified/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/last-modified-timestamp/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  27 5-star reviews     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/)

## Contributors

 *   [ Evan Mattson ](https://profiles.wordpress.org/aaemnnosttv/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/last-modified-timestamp/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LRA4JZYALHX82)