WordPress.org

Hong Kong 香港中文

  • 佈景主題
  • 外掛
  • News
  • Support
  • About
  • 重要通知
  • WordPress 常見問題
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Post Date Labels

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Post Date Labels

由Small Plugins
下載
  • 詳情
  • 評價
  • 安裝
  • 開發
支援

描述

Post Date Labels is a lightweight WordPress plugin that enhances the post date block by allowing you to add contextual labels before and after the date. Perfect for adding context like “Published on”, “Last updated”, or custom labels to make your post dates more meaningful.

Key Features:

  • Add custom prefix and suffix labels to post date blocks
  • Separate labels for published and modified dates
  • Automatic detection of date type (published vs modified)
  • Clean, semantic HTML output with proper CSS classes
  • Works seamlessly with the WordPress block editor
  • Lightweight and performance-optimized
  • No configuration required – works out of the box

Use Cases:

  • Add “Published on” before publication dates
  • Add “Last updated” before modification dates
  • Include timezone information after dates
  • Create custom date formatting with contextual labels
  • Improve content accessibility and user experience

How It Works:

The plugin automatically detects whether a post date block is displaying the published date or modified date and applies the appropriate labels. You can customize the labels directly in the block editor sidebar when editing a post date block.

Developer Friendly:

  • Clean, well-documented code
  • Follows WordPress coding standards
  • Extensible architecture
  • Proper CSS classes for styling customization

螢幕截圖

  • Post Date block with custom prefix and suffix labels in the editor
  • Block sidebar settings showing label configuration options

安裝

  1. Upload the plugin files to the /wp-content/plugins/post-date-labels directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Edit any post or page and add a Post Date block.
  4. In the block sidebar, you’ll find new options to add prefix and suffix labels for both published and modified dates.

常見問題

Does this plugin work with all themes?

Yes, Post Date Labels works with any theme that supports the WordPress block editor. The plugin adds semantic HTML with proper CSS classes that can be styled to match your theme.

Can I style the labels differently?

Absolutely! The plugin adds specific CSS classes for each label type:
– .post-date-prefix and .post-date-suffix for general styling
– .post-date-published-prefix, .post-date-published-suffix for published date labels
– .post-date-modified-prefix, .post-date-modified-suffix for modified date labels

Does this affect site performance?

No, the plugin is designed to be lightweight and only loads minimal CSS and JavaScript when needed. It has no impact on your site’s loading speed.

Can I use different labels for published and modified dates?

Yes! The plugin automatically detects whether the post date block is showing the published date or modified date and applies the appropriate labels.

Is this compatible with caching plugins?

Yes, Post Date Labels is fully compatible with all major caching plugins as it doesn’t use any dynamic server-side processing that would conflict with caching.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Post Date Labels” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者
  • Small Plugins

將 Post Date Labels 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.1

  • Initial release

1.0.0

  • Internal release
  • Add prefix and suffix labels to post date blocks
  • Automatic detection of published vs modified dates
  • Clean HTML output with semantic CSS classes
  • Block editor integration with sidebar controls

其它

  • Version 1.0.1
  • Last updated 2 個月之前
  • Active installations 少於10
  • WordPress version 5.8 or higher
  • Tested up to 6.7.2
  • PHP version 7.0 or higher
  • Language
    English (US)
  • Tags
    block-editorgutenbergpost date
  • 進階顯示

評分

No reviews have been submitted yet.

Add my review

See all reviews

貢獻者

  • Small Plugins

支援

有話想說?需要協助?

檢視支援論壇

  • 關於我們
  • 最新消息
  • 寄存
  • 隱私權
  • 展示網站
  • 佈景主題
  • 外掛
  • 區塊版面配置
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Hong Kong 香港中文

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 訪問我們的 Facebook 專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
代碼就是詩歌。