Post Date Labels
·
Add contextual labels (prefix/suffix) to post date blocks in the WordPress block editor.
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
