WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.47k stars 4.18k forks source link

Add prefix / suffix to Post Date block #47738

Open druxstr opened 1 year ago

druxstr commented 1 year ago

What problem does this address?

The Post Date block outputs a date with no explicit context. Example :

2 Febuary 2023

This could be a "Last modified date" or a "Published on" date.

There's no way to tell.

What is your proposed solution?

Add an optional prefix / suffix to Post Date, the same way the Category block does (see PR #40559).

prefix date suffix

For instance :

Published on : 2 Febuary 2023

This would allow to use 2 Post Date blocks on the same post, which may solve #46645 :

Published on : 2 Febuary 2023 Last Modified : 3 Febuary 2023

github-actions[bot] commented 1 year ago

Hi, This issue has gone 180 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

iamtakashi commented 1 year ago

+1 This will be a nice addition to the block because we wouldn't see the prefix if the post hasn't been modified.

benimub commented 1 year ago

+1

jenxi commented 1 year ago

+1 This would definitely make it easier to label published/modified dates.