Creates a shortcode to display the date/time when a post/page was last updated (with optional formatting).
You can use either
[lastupdate], they both work identically.
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.
Just wrap the shortcode in
<?php do_shortcode( ); ?>. So to get the default display, just insert
<?php do_shortcode( [lastupdated] ); ?>
Everyone likes a good shortcode!
Yes, just open
last-updated-shortcode.php and add or change what text you want to trigger the shortcode in on of the arrays near the bottom. If this gets any kind of popularity, I'll make that easier by adding an options page.
Can I? Yes. Will I? Yes, if I think it would be a helpful addition. I'm trying to keep things clean and simple, but there's always room for improvement, so let me know if you think a feature is lacking!
Requires: 2.8 or higher
Compatible up to: 3.5.2
Last Updated: 2013-1-1
Active Installs: 1,000+
Got something to say? Need help?