| 开发者 | djm56 |
|---|---|
| 更新时间 | 2026年11月23日 21:33 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0+ |
| 版权网址: | 版权信息 |
<time> markup with an ISO 8601 timestamp.
Key features:
%s to insert the date, or omit it to show a static label.<time> element output with an ISO 8601 datetime attribute for SEO and screen readers.[msclu_last_updated] shortcode to place the date anywhere.micro-site-care-post-last-updated-date folder to the /wp-content/plugins/ directory, or install directly from the WordPress plugin screen.Activate the plugin — that's it. By default a "Updated {date}" label appears below the content of any post or page that has been edited after publishing. Fine-tune the placement, label and date format under Settings → MSC Post Last Updated Date.
No. It is display-only: the label is added at render time via a content filter. Nothing is written to your posts, and your published and modified dates are untouched.
Set Automatic placement to Manual only on the Settings page, then add the following in your theme template where you want the label:
<?php msclup_the_last_updated(); ?>
See the Usage & Support tab on the settings page for full template tag documentation and examples.
Yes. Use [msclu_last_updated] anywhere shortcodes run (posts, pages, widgets). Optional attributes: post_id (defaults to the current post) and relative="true" / relative="false" to override the date style for that instance.
Yes. Set Date format source to Relative on the settings page. The visible label reads "Updated 3 days ago", while the machine-readable <time datetime> attribute stays an absolute ISO-8601 timestamp for SEO.
Yes. Use the Label template setting. The %s token is replaced with the formatted date. Examples:
Updated %s outputs Updated March 28, 2026Last checked: %s outputs Last checked: March 28, 2026%s entirely shows the label text with no date appended.Yes. Set Date format source to Custom and enter a PHP date format string in the Custom date format field. The Usage & Support tab includes a quick reference table and a link to the full WordPress date format documentation.
Yes — that is the default behaviour. The Only show when modified date differs from publish date setting suppresses the label on posts that have never been edited after publishing, so "Updated" always means something.
The plugin outputs a semantic HTML5 <time> element with a machine-readable ISO 8601 datetime attribute, which search engines can parse. It does not inject JSON-LD structured data — your SEO plugin's dateModified schema (which WordPress themes and SEO plugins generate from the same modified date) is complemented, not duplicated.
The plugin outputs:
<p class="msclu-last-updated"><time datetime="2026-03-28T14:30:00+00:00">Updated March 28, 2026</time></p>
Style the .msclu-last-updated class in your theme stylesheet or the Customizer's Additional CSS.
Yes. All registered public post types appear in the Post types list on the settings page, in both include and exclude modes.
No measurable impact: the plugin loads no JavaScript, no stylesheets and makes no external requests. It stores a single options row and filters content only on singular views. Uninstalling removes the option — no data is left behind.
[msclu_last_updated] shortcode to display the last-updated date anywhere, with optional post_id and relative attributes.<time datetime> attribute stays an absolute ISO-8601 timestamp for SEO.admin.php instead of options-general.php; success notice now appears correctly after saving.%s was silently replaced with the default Updated %s; it now renders as-is.error_log() calls from all Free plugin files.wp_cache_delete() calls.%s date placeholder.msclup_the_last_updated() and msclup_get_last_updated().<time> element output with ISO 8601 datetime attribute.msclu_should_display, msclu_label_text, msclu_wrapper_classes, msclu_output_html.