Skip to content

Last Update Shortcode

Oliver Juhas edited this page Jun 22, 2017 · 3 revisions

Info

Displays date when the last post (or custom post type) was added.


Example

[wm_last_update post_type="post" /]

Parameters

Please note that you can omit parameters with empty values when writing the shortcode.

Parameter Type Value example    Description
class string my-class Adds a custom CSS class(es) onto shortcode wrapper.
format string PHP date format Not really needed to set up as it defaults to Settings » General &raquo "Date Format" WordPress setting.
post_type string Any existing post type of your WordPress website, such as post or page. Use your website post type IDs (you can get it from your WordPress dashboard when editing a post type).

Compatibility

Please, make sure your theme supports this shortcode, before using it.
Some themes may not be compatible with certain shortcodes as they may use different approach to displaying similar elements. In that case the shortcode is displays in its raw code format on your website front-end.