Skip to content

Comment Title Block: Feature request to change text #69771

Closed as not planned
Closed as not planned

Description

@shimotmk

What problem does this address?

I want to change the text of the response.

Or I want a prefix and suffix like the post-terms block.

Or would it be better to create a new block called the number of comments block?

comment-title.mov

What is your proposed solution?

Add prefix and suffix or add comment count block.

Activity

  1. t-hamano commented on Apr 1, 2025

    @t-hamano
    Contributor

    Thanks for the suggestion.

    To be honest, the current implementation is not ideal from a localization perspective, it is inflexible and limits text variation.

    Ideally, "Bits" would be implemented, but unfortunately this feature is not in development yet.

    Bits: Dynamic replacement of server-provided content (tokens, "shortcodes 2.0") · WordPress/gutenberg · Discussion #39831

  2. carolinan commented on Apr 7, 2025

    @carolinan
    Contributor

    Or would it be better to create a new block called the number of comments block?

    There already is a comments count block.
    https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/post-comments-count

  3. t-hamano commented on Apr 7, 2025

    @t-hamano
    Contributor

    Rather than extending this block, it would be better to consider making the Comments Count block available in core.

    See: #69832

  4. t-hamano commented on Apr 7, 2025

    @t-hamano
    Contributor

    I'd like to close this PR, but feel free to comment if you have any opinions.

  5. shimotmk commented on Apr 7, 2025

    @shimotmk
    ContributorAuthor

    Thank you! I think the comment count block is a useful block.

    I want a prefix and suffix for the comment count block.

    I think there is a need to include text related to the number of comments.

  6. t-hamano commented on Apr 7, 2025

    @t-hamano
    Contributor

    I want a prefix and suffix for the comment count block.
    I think there is a need to include text related to the number of comments.

    This is a very difficult issue that may cause problems in terms of localization and should be discussed carefully.

    I ran into the same problem when I made the Time to Read block. In the end, we decided to just display the time.

    See the discussion on hoge.

  7. shimotmk commented on Apr 7, 2025

    @shimotmk
    ContributorAuthor

    I see, thank you.
    I learned something.
    #43403 (comment)

    I think we need to move Bits forward 🙂

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions