Linux 软件免费装
Banner图

MSC: Post Last Updated Date

开发者 djm56
更新时间 2026年11月23日 21:33
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0+
版权网址: 版权信息

标签

last updated date last modified date content freshness show modified date dateModified schema

下载

1.3.0 1.4.0 1.4.1 1.4.2 1.6.0 1.6.1 1.6.2

详情介绍:

Display the last updated date on your WordPress posts, pages and custom post types — automatically, no theme editing required. Readers and search engines both favour fresh content. MSC: Post Last Updated Date shows exactly when a post was last modified, with a customisable label, your choice of date format, and clean HTML5 <time> markup with an ISO 8601 timestamp. Key features:

安装:

  1. Upload the micro-site-care-post-last-updated-date folder to the /wp-content/plugins/ directory, or install directly from the WordPress plugin screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings → MSC Post Last Updated Date to configure the plugin.

屏幕截图:

  • Usage & Support tab — template tag examples and label reference for showing the last updated date anywhere in your theme.
  • Front-end last updated date on a post — the "Updated" label with schema-friendly HTML5 time markup, displayed below the content.

升级注意事项:

1.6.2 Updated translations: 8 new languages added (Russian, Simplified Chinese, Turkish, Polish, Indonesian, Swedish, Ukrainian, Arabic) and all 20 locales refreshed to 100% coverage. 1.6.1 Compatibility update: confirmed tested against WordPress 7.1. No functional changes — safe update. 1.5.0 Improved WordPress.org listing and FAQ; removes a dead stylesheet enqueue. No behaviour changes — safe update. 1.4.2
  • Tested with WordPress 7.0.2. No functional changes.
1.4.1
  • Tested with WordPress 7.0. No functional changes.
1.4.0
  • Adds complete translations for 10 additional locales. No functional changes.
1.3.0 Adds Brazilian and European Portuguese translations. No functional changes. 1.2.0 Fixes settings-save redirect and label template behaviour. Adds Usage & Support documentation tab and redesigned settings layout. 1.0.0 Initial plugin release.

常见问题:

How do I show the last updated date on my WordPress posts?

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.

Why is the label not appearing on my posts?

  1. Go to Settings → MSC Post Last Updated Date and confirm Enable output is ticked.
  2. Make sure the relevant post type (e.g. Post or Page) is selected in the Post types list.
  3. If Only show when modified date differs from publish date is ticked (the default), the label only appears on posts that have been edited after their original publish date.
  4. If Automatic placement is set to Manual only, nothing is injected automatically — you need to add the template tag to your theme.

Does this plugin change my published date or modify my posts?

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.

How do I place the date exactly where I want in my theme?

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.

Is there a shortcode?

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.

Can I show a relative date like "3 days ago"?

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.

Can I change the label text ("Last updated", "Last checked", …)?

Yes. Use the Label template setting. The %s token is replaced with the formatted date. Examples:

  • Updated %s outputs Updated March 28, 2026
  • Last checked: %s outputs Last checked: March 28, 2026
  • Omitting %s entirely shows the label text with no date appended.

Can I use a custom date format?

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.

Can I show the date only when a post has actually been edited?

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.

Does it add schema.org structured data for SEO?

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.

How do I style the date label?

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.

Does it work with custom post types?

Yes. All registered public post types appear in the Post types list on the settings page, in both include and exclude modes.

Will it slow down my site? What data does it store?

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.

更新日志:

1.6.2 1.6.1 1.6.0 1.5.0 1.4.2 1.4.1 1.4.0 1.3.0 1.2.0 1.0.0