Skip to content

[Post Date] Block controls don't show custom date formats #35854

Closed

Description

@kjellr

It's possible to use the block markup to customize the date format for the post date block. For example:

<!-- wp:post-date {"format":"M","fontSize":"small"} /-->

^ This will display only the month. Formats like this are valid markup, and are interpreted just fine by the editor, except they're not correctly shown in the date format dropdown. If you use a custom format here, the field will just have the default selected:

Screen Shot 2021-10-21 at 3 26 31 PM

Instead, if would be great if that could say "Custom" or something like that.

Related: #34762, #35558

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    on Oct 21, 2021
  2. torounit commented on Jul 26, 2022

    @torounit
    Member

    It appears to have been fixed in #39209.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[Block] Post DateAffects the Post Date Block[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions