Last Updated Shortcode
Creates the [lastupdated] shortcode to display the date and/or time of the last update to a post or page. If used without any arguments, it will display the date in the format configured in the Settings > General tab. It supports several optional arguments: format, before, and after. These options a
About this tool.
Creates the [lastupdated] shortcode to display the date and/or time of the last update to a post or page. If used without any arguments, it will display the date in the format configured in the Settings > General tab. It supports several optional arguments: format, before, and after. These options allow you to change how the date/time is formatted and if anything should appear before or after the date/time is displayed.
Readme Generator
- This plugin’s readme.txt file was generated by the bitacre Readme Generator for WordPress Plugins.
Support
- Plugin Homepage
- plugins@shinraholdings.com
Donations
Donations are graciously accepted to support the continued development and maintenance of this and other plugins. We currently accept Paypal and kind words.
A closer look.
Getting started.
- 01Download the latest zip file and extract the last-updated-shortcode directory.
- 02Upload this directory inside your /wp-content/plugins/ directory.
- 03Activate ‘Literal Shortcode’ on the ‘Plugins’ menu in WordPress.
- 04Insert the shortcode in a post or page to return the date/time it was last modified.
Frequently asked questions.
What is the shortcode?
You can use either [lastupdated] or [lastupdate] , they both work identically.
What formatting options can I use
You can use any of the special date variables listed at this WordPress codex page . If you want to insert plain text (like the word “at” for instance) escape each letter with a backslash, \l\i\k\e \t\h\i\s.
How do I insert this in theme files?
Just wrap the shortcode in <?php do_shortcode( ); ?> . So to get the default display, just insert <?php do_shortcode( [lastupdated] ); ?>