跳至主要內容
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Micro Site Care: Post Last Updated Date

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

Micro Site Care: Post Last Updated Date

由 djm56 開發
下載
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

Micro Site Care: Post Last Updated Date adds a last-updated date label to your posts and pages. It is lightweight, uses no JavaScript, and integrates cleanly with any theme.

Key features:

  • Show the last-updated date automatically before content, after content, or in both positions.
  • Set placement to Manual and use the template tag in your theme for full control over where the label appears.
  • Customise the label text with a flexible template — use %s to insert the date, or omit it to show a static label.
  • Choose between the WordPress site date format or a custom PHP date format string.
  • Optionally suppress the label when the modified date matches the publish date (suppress unchanged posts).
  • Target specific post types, or exclude selected post types from an all-types baseline.
  • Clean HTML5 <time> element output with an ISO 8601 datetime attribute for SEO and screen readers.
  • Developer-friendly: four filter hooks to customise visibility, label, CSS classes, and final HTML output.
  • Compatible with MSC Post Last Updated Date Pro for relative dates, style presets, per-post overrides, and shortcodes.

螢幕擷圖

Settings tab — two-column layout with placement, label, date format, and post type options.
Settings tab — two-column layout with placement, label, date format, and post type options.

安裝方式

  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.

常見問題集

The label is not appearing on my posts. What should I check?

  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 label will only appear 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.

How do I place the label at a specific spot 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.

Can I change the label text?

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.

What HTML does the plugin output?

Updated March 28, 2026

Style the .msclu-last-updated class in your theme stylesheet.

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.

Does it work with custom post types?

Yes. All registered public post types appear in the Post types list on the settings page.

Is there a Pro version?

Yes. MSC Post Last Updated Date Pro adds relative dates (“3 days ago”), a hybrid mode (relative then absolute after a configurable threshold), style presets (muted, pill, badge), per-post show/hide overrides via a metabox, and a shortcode with per-instance attribute overrides.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Micro Site Care: Post Last Updated Date〉的開發相關工作。

參與者
  • djm56

〈Micro Site Care: Post Last Updated Date〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Micro Site Care: Post Last Updated Date〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.4.1

  • Tested with WordPress 7.0. No functional changes.

1.4.0

  • Adds complete translations for 10 additional locales (de_CH, de_DE, es_ES, es_MX, fr_CA, fr_FR, it_IT, ja, nl_BE, nl_NL). Regenerates .pot source template with correct file references. Populates readme.txt translations for all 12 locales.

1.3.0

  • Adds Brazilian and European Portuguese translations. No functional changes.

1.2.0

  • Fixed: Admin settings page redirect URL pointed to admin.php instead of options-general.php; success notice now appears correctly after saving.
  • Fixed: Label template without %s was silently replaced with the default Updated %s; it now renders as-is.
  • Added: Dedicated Usage & Support documentation tab with template tag reference, label examples, date format quick-reference, FAQ, and support link.
  • Added: Upgrade to Pro and Support sidebar panels on the Settings tab.
  • Removed: Debug error_log() calls from all Free plugin files.
  • Removed: Unnecessary wp_cache_delete() calls.

1.0.0

  • Initial public release.
  • Automatic content injection with before, after, both, and manual placement modes.
  • Configurable label template with %s date placeholder.
  • Site or custom date format source.
  • Visibility condition: suppress label when modified date matches publish date.
  • Include or exclude post type targeting mode.
  • PHP template tags: msclup_the_last_updated() and msclup_get_last_updated().
  • HTML5 <time> element output with ISO 8601 datetime attribute.
  • Developer filter hooks: msclu_should_display, msclu_label_text, msclu_wrapper_classes, msclu_output_html.
  • Two-tab admin settings page with Usage & Support documentation tab.

中繼資料

  • 版本 1.4.1
  • 最後更新 2 個月前
  • 啟用安裝數 少於 10 次
  • WordPress 版本需求 5.9 或更新版本
  • 已測試相容的 WordPress 版本 7.0.1
  • PHP 版本需求 7.4 或更新版本
  • 語言

    Dutch (Belgium)、English (US)、及 Spanish (Mexico).

    將這個外掛本地化為你的母語版本

  • 標籤:
    editoriallast-modifiedlast-updatedpost date
  • 進階檢視

評分

這個項目尚無任何評論記錄。

Your review

查看全部使用者評論

參與者

  • djm56

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

檢視技術支援論壇

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • 造訪我們的 Bluesky 帳號
  • 造訪我們的 Mastodon 帳號
  • 造訪我們的 Threads 帳號
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • 造訪我們的 TikTok 帳號
  • Visit our YouTube channel
  • 造訪我們的 Tumblr 帳號
程式碼,如詩
The WordPress® trademark is the intellectual property of the WordPress Foundation.