Skip to content

Conversation

@dhruvikpatel18
Copy link
Contributor

Part of #64707

What?

This PR adds an example attribute to the post-comments-count and post-comments-link to provide a block preview in the inserter.

Testing Instructions

  1. Open a post or page in the WordPress block editor.
  2. Open the block inserter by clicking the "+" button.
  3. Search for post-comments-count and post-comments-link in the block inserter.
  4. Hover over the both blocks in the inserter to see the preview.

Screenshots or screencast

post-comments-count

Before After
Screenshot 2025-08-04 at 3 30 58 PM Screenshot 2025-08-04 at 3 31 41 PM

post-comments-link

Before After
Screenshot 2025-08-04 at 3 31 09 PM Screenshot 2025-08-04 at 3 31 50 PM

@yogeshbhutkar yogeshbhutkar added [Type] Enhancement A suggestion for improvement. [Block] Comments Count Affects the Post Comments Count Block [Block] Comment Link Affects the Comment Link Block labels Aug 4, 2025
@yogeshbhutkar
Copy link
Contributor

This appears to be a duplicate of #71016.

cc: @dhruvikpatel18

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

Labels

[Block] Comment Link Affects the Comment Link Block [Block] Comments Count Affects the Post Comments Count Block [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants