Linux 软件免费装
Banner图

Post Date Labels

开发者 smallplugins
更新时间 2025年5月29日 01:04
PHP版本: 7.0 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

gutenberg block editor post date date labels date prefix date suffix

下载

1.0.1

详情介绍:

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: Use Cases: 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:

安装:

  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.

屏幕截图:

  • Block sidebar settings showing label configuration options

升级注意事项:

1.0.0 Initial release of Post Date Labels. Add contextual labels to your post date blocks!

常见问题:

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.

更新日志:

1.0.1 1.0.0