WP Last Modified: WordPress Plugin Documentation

No longer maintained: I do not develop or update this plugin any more. The last release is 1.4.6 from December 2019, tested up to WordPress 5.3.

WP Last Modified is a WordPress plugin I wrote. It adds the last_modified_date shortcode, which shows when a post or page was last modified, when it was published and how many revisions it has. Until version 1.1.0 the plugin was called WP Open Last Modified; that is why its directory and its wordpress.org address still use wp-open-last-modified.

Status as listed on wordpress.org in November 2026: version 1.4.6, last updated December 2019, tested up to WordPress 5.3. wordpress.org shows a notice that the plugin has not been tested with the latest three major WordPress releases.

Features

  • Last modification timestamp of a post or page
  • Publication timestamp of a post or page
  • Customizable date format
  • Revision count
  • Custom text with placeholders
  • Excluding single posts or pages from the output

The plugin is available in English and German and can be translated into other languages.

Installation

The plugin has not been tested with current WordPress releases; check compatibility on a staging site first. Install it from the WordPress plugin directory (search for "WP Last Modified"), or upload the wp-open-last-modified folder to /wp-content/plugins/ and activate it in the "Plugins" menu in WordPress.

Usage

Place the shortcode anywhere within a post or page:

[last_modified_date]

The shortcode accepts two optional attributes:

  • format formats all dates the shortcode outputs. It accepts the format characters of PHP's date() function, for example [last_modified_date format="d.m.Y H:i"].
  • description adds a short description of what was changed in the last modification.

Defining the text

Before you use the shortcode, define the text it displays under Settings -> WP Last Modified Settings. You can replace the default text with your own text and one or more placeholders. This text is displayed wherever the shortcode is used. If you do not define a text, a default text without timestamps is displayed. In the same settings you can hide single elements you do not want to show.

Placeholders

  • *last_modified_timestamp*: last modification timestamp
  • *last_modified_timestamp_gmt*: last modification timestamp in GMT
  • *publication_timestamp*: publication timestamp
  • *publication_timestamp_gmt*: publication timestamp in GMT
  • *revision_count*: number of revisions
  • *timestamp*: last modification timestamp (deprecated, use *last_modified_timestamp*)

Excluding posts and pages

Some users asked for a way to exclude single posts or pages from showing the last modification timestamps. Since version 1.4.0 the settings page has a field for post and page IDs (comma-separated). The plugin checks whether a post or page with each ID exists: IDs that were excluded successfully appear in the field again, unknown IDs are removed.

Support and contributing

If something does not work, use the support forum on the plugin's wordpress.org page or contact me. The same applies if you want to help develop the plugin.