Title: Post Date Labels
Author: Small Plugins
Published: <strong>2025 年 5 月 28 日</strong>
Last modified: 2026 年 4 月 30 日

---

搜索插件

![](https://ps.w.org/post-date-labels/assets/banner-772x250.png?rev=3302387)

![](https://ps.w.org/post-date-labels/assets/icon-256x256.png?rev=3302387)

# Post Date Labels

 作者：[Small Plugins](https://profiles.wordpress.org/smallplugins/)

[下载](https://downloads.wordpress.org/plugin/post-date-labels.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/post-date-labels/#description)
 * [评价](https://cn.wordpress.org/plugins/post-date-labels/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/post-date-labels/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/post-date-labels/#developers)

 [支持](https://wordpress.org/support/plugin/post-date-labels/)

## 描述

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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Post Date Labels」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Small Plugins ](https://profiles.wordpress.org/smallplugins/)

[帮助将「Post Date Labels」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/post-date-labels)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/post-date-labels/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/post-date-labels/)，或通过[RSS](https://plugins.trac.wordpress.org/log/post-date-labels/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/post-date-labels/)。

## 更新日志

#### 1.0.3

 * Dev: Update freemius SDK and maintenance update.

#### 1.0.2

 * Dev: Update freemius SDK and maintenance update.

#### 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

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**1 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/post-date-labels/)
 * 标签
 * [block-editor](https://cn.wordpress.org/plugins/tags/block-editor/)[gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)
   [post date](https://cn.wordpress.org/plugins/tags/post-date/)
 *  [高级视图](https://cn.wordpress.org/plugins/post-date-labels/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/post-date-labels/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/post-date-labels/reviews/)

## 贡献者

 *   [ Small Plugins ](https://profiles.wordpress.org/smallplugins/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/post-date-labels/)