The Post Date block displays the publication date of a WordPress post. This block is used within Post Template blocks to show when posts were published.
Adding a Post Date Block
- Add aย Query Loop blockย andย Post Template blockย first
- Inside the Post Template, click theย “+”ย button
- Search forย “Post Date”ย or find it in theย “Theme”ย category
- Click to insert the block
Note: This block only works within Post Template blocks.
Date Format
The Post Date block supports custom date formatting using PHP date format strings.
Default Format
Default: Uses WordPress date format settings
Custom Date Format
Set a custom date format. Common formats:
F j, Yย – January 15, 2025m/d/Yย – 01/15/2025Y-m-dย – 2025-01-15l, F j, Yย – Wednesday, January 15, 2025M j, Yย – Jan 15, 2025
Link Settings
- Link to Post: Toggle to make the date a clickable link to the post
- Open in New Tab: Choose whether the link opens in a new browser tab
Text Alignment
- Left: Align date to the left
- Center: Center-align date
- Right: Align date to the right
Styling Options
- Colors: Text color, background color, link color
- Typography: Font size, font family, font weight, line height, letter spacing, text transform, text decoration
- Spacing: Padding
- Borders: Border radius, border color, border width, border style
Best Practices
- Readable Format: Use clear, readable date formats
- Consistent Style: Match date format with your brand style
- Link Option: Consider making dates clickable links to posts
Troubleshooting
See theย Post Title Block documentationย for troubleshooting tips.
Additional resources
Use the links below for more information and guidance on adding blocks. Keep in mind that these articles are general information related to the WordPress Editor and building with blocks. Email Customizer does not utilize all blocks or functionality due to the limited capabilities of emails.
WordPress Editor