Post Date Block

Go to the List of Blocks

Use the Post Date block to display the date of the post. This block is primarily nested inside a query loop block and helps to customize the appearance of the query loop. 

To add a Post Date block, click the Block Inserter icon when editing the page template. Search for the Post Date block. Click on it to add the block to your page template.

Video showing how to add Post Date block

You can also type /post-date and hit enter in a new paragraph block to add the Post Date block quickly. 

How to add Post Date block quickly
How to add Post Date block quickly

Detailed instructions on adding blocks

Block Toolbar

To view the block toolbar, click on the block and the toolbar will be displayed.

Every block comes with unique toolbar icons. These block-specific controls allow you to manipulate the block right in the editor.

The Post Date block shows five buttons in the block toolbar:

  • Transform to
  • Drag icon
  • Move arrows
  • Change text alignment
  • More options
Post Date block toolbar
Post Date block toolbar

Transform to:

Transform options in Post Date block
Transform options in Post Date block

Click on the “Transform” button to convert the Post Date block into a “Group” block or “Columns” block. 

Drag icon:

Drag icon in the Post Date block
Drag icon in the Post Date block

To drag and drop the block to a new location on the page template, click and hold the rectangle of dots, then drag to the new location. The blue separator line indicates where the block will be placed. Release the left mouse button when you find the new location to place the block.

Move arrows:

Move arrows in the Post Date block
Move arrows in the Post Date block

The up and down arrow icons can be used to move the block up and down on the page.

Get more information about moving a block within the editor.

Change text alignment:

Change text alignment in Post Date block
Change text alignment in Post Date block

Click the “Change alignment” button in the Block toolbar to display the alignment drop-down. You can align the block text to the left, make it center-aligned or align it to the right.

More option:

These controls give you the option to copy, duplicate, and edit your block as HTML.

More option in the Post Date block
More option in the Post Date block

Read about these and other settings.

Block Settings

In addition to the block toolbar, every block has specific options in the editor sidebar.

If you do not see the sidebar, click the ‘cog’ icon next to the Save button.

How to turn on the Block Settings sidebar
How to turn on the Block Settings sidebar
Post Date Block Settings
Post Date Block Settings

Color

You can customize the text color, background color, and link color for the Post Date block. The color options available will vary based on the theme.

Color settings in the Post Date Block Settings
Color settings in the Post Date Block Settings

See this guide for more information about changing colors.

Format

On this tab, you can select the format to display the date from the dropdown as shown below:

Post Date Format Settings
Post Date Format Settings

Turn on the ‘Link to post’ button in the Block Settings to link the post date to the URL of the post. This enables the website visitor to go to the post by clicking on the Post Date.

Link settings in the Post Date block
Link settings in the Post Date block

Typography

On this tab, you can adjust the Font size, Font family, Appearance, Line height, Letter case, and Letter-spacing. 

To access all the typography options click on the + button in the right corner of the Typography tab.

Typography Settings in the Post Date Block
Typography Settings in the Post Date Block

Get more details about changing typography settings.

Advanced settings: 

The “Advanced” tab lets you add CSS class(es) to your block. This will allow you to write custom CSS and styles to the block.

Advanced setting in Post Date block
Advanced setting in Post Date block

Changelog

  • Created 2022-03-21

Was this article helpful? How could it be improved?

First published

Last updated