Title: Comments Count block
Author: annezazu
Published: December 2, 2025
Last modified: December 1, 2025

---

# Comments Count block

## In this article

 * [Where you can use this block](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#where-you-can-use-this-block)
 * [Add the Comments Count block](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#add-the-comments-count-block)
 * [Behavior notes](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#behavior-notes)
 * [Block toolbar](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#block-toolbar)
    - [Transform to](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#transform-to)
    - [Drag icon](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#drag-icon)
    - [Move arrows](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#move-arrows)
    - [Align](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#align)
 * [Block Settings](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#block-settings)
 * [Changelog](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#changelog)

[ Back to top](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#wp--skip-link--target)

The Comments Count block displays the total number of comments for the current post
or page. It’s most useful in single post/page templates or inside a Post Template
within a Query Loop.

## 󠀁[Where you can use this block](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#where-you-can-use-this-block)󠁿

 * Single posts and pages (when comments are enabled).
 * Post Template inside a Query Loop (for example, on index or archive templates).
 * Note: The block requires post context. It won’t display on non‑singular pages
   unless it’s inside a Post Template (such as within a Query Loop).

## 󠀁[Add the Comments Count block](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#add-the-comments-count-block)󠁿

 1. Open a post, page, or template in the editor.
 2. Place your cursor where you want the count to appear (for example, near the byline
    or meta).
 3. Click the + Block Inserter, search for “Comments Count,” and select it. Tip: You
    can also type /comments count on a new line to insert it quickly.

## 󠀁[Behavior notes](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#behavior-notes)󠁿

 * The block respects your Discussion settings. If comments are disabled, the count
   may show 0 or be hidden depending on your theme and settings.
 * If a post is password‑protected, the count may be hidden until the password is
   entered (behavior can vary by theme).
 * When used in a Query Loop, each Comments Count displays the correct total for
   its corresponding post.

## 󠀁[Block toolbar](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#block-toolbar)󠁿

The block toolbar displays several tools used to customize each block. When you 
select the **Comments Count **block, it will show the block toolbar that contains
the following tools:

### 󠀁[Transform to](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#transform-to)󠁿

Click on the “Transform” button to convert the _Comments Count_ block into a “Group”,“
Columns”, “Details”, or “Comments Count” block.

![](https://wordpress.org/documentation/files/2025/11/comments-count-transform.png)

### 󠀁[Drag icon](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#drag-icon)󠁿

To drag and drop the block to a new location, click and hold the rectangle of dots,
then drag it 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.

![](https://wordpress.org/documentation/files/2025/11/comments-count-drag-1.png)

Detailed instructions on moving a block within the editor can be found [here](https://wordpress.org/support/article/moving-blocks/)

### 󠀁[Move arrows](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#move-arrows)󠁿

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

![](https://wordpress.org/documentation/files/2025/11/comments-count-move-arrow-
1-1024x234.png)

### 󠀁[Align](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#align)󠁿

Use the change alignment tool to align the _Comments Count _block. Choose one of
the following options:

 * **Align text left**
 * **Align text right**
 * **Align text center**

![](https://wordpress.org/documentation/files/2025/11/comments-count-align.png)

## 󠀁[Block Settings](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#block-settings)󠁿

WordPress blocks have specific configuration options in the block settings panel.
To access the **Comments Count **block settings panel, click the **Settings** button
at the top-right corner of the WordPress editor. Alternatively, click the **More
options** or three dots icon in the **Comments Count **block toolbar and select **
Show more settings**.

**Color**

The **Comments Count** block provides Color settings options to change the text 
and background colors.

For details refer to this support article: [Color settings overview](https://wordpress.org/documentation/article/colors-settings-overview/)

**Typography**

The **Comments Count** block provides typography settings to change the font family,
appearance, line height, letter spacing, decoration, letter case, and font size.

For details refer to this support article: [Typography settings overview](https://wordpress.org/documentation/article/typography-settings-overview/)

**Dimensions**

The **Comments Count** block provides dimension settings options to add padding 
and margin.

For details refer to this support article: [Dimension settings overview](https://wordpress.org/documentation/article/dimension-controls-overview/)

**Border**

The **Comments Count** block provides border settings options to add border color,
width, and radius.

For details refer to this support article: [Border settings overview](https://wordpress.org/documentation/article/border-settings-overview/)

**Advanced**

The **Advanced** section allows you to add CSS class(es) to the **Comment Count**
block. Therefore, you can insert custom CSS styles into the block.

## 󠀁[Changelog](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#changelog)󠁿

 * Created 2025-12-02

## Was this article helpful? How could it be improved? 󠀁[Cancel reply](https://wordpress.org/documentation/article/comments-count-block/?output_format=md#respond)󠁿

[Log in to submit feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fdocumentation%2Farticle%2Fcomments-count-block%2F&locale=en_US).
If you need support with something that wasn't covered by this article, please post
your question in the [support forums](https://wordpress.org/support/forums/).

First published

December 2, 2025

Last updated