Documentation

Post Date Block

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

  1. Add aย Query Loop blockย andย Post Template blockย first
  2. Inside the Post Template, click theย “+”ย button
  3. Search forย “Post Date”ย or find it in theย “Theme”ย category
  4. 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, 2025
  • m/d/Yย – 01/15/2025
  • Y-m-dย – 2025-01-15
  • l, F j, Yย – Wednesday, January 15, 2025
  • M j, Yย – Jan 15, 2025
  • 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

  1. Readable Format: Use clear, readable date formats
  2. Consistent Style: Match date format with your brand style
  3. 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