[wp-trac] [WordPress Trac] #56241: The post category count according post data not showing on admin side.

WordPress Trac noreply at wordpress.org
Thu Dec 18 16:03:17 UTC 2025


#56241: The post category count according post data not showing on admin side.
-------------------------------------------+------------------------------
 Reporter:  rima1889                       |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Posts, Post Types              |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-testing has-screenshots  |     Focuses:  administration
-------------------------------------------+------------------------------

Comment (by huzaifaalmesbah):

 == Reproduction Report

 === Description

 This test verifies whether the **category post count shown on the
 Categories admin screen matches the actual posts displayed when filtering
 by a parent category** in the Posts list.

 === Environment
 - WordPress: 7.0-alpha-61215-src
 - PHP: 8.4.12
 - Server: nginx/1.29.1
 - Database: mysqli (Server: 9.4.0 / Client: mysqlnd 8.4.12)
 - Browser: Chrome 143.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.4
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1

 === Steps to Reproduce

 1. Create a parent category named **“Test Main”**.
 2. Create two child categories under it: **“Test Sub 1”** and **“Test Sub
 2”**.
 3. Create two posts:

    * One post assigned **only to “Test Sub 2”**.
    * One post assigned to **both “Test Main” and “Test Sub 1”**.
 4. Go to **Posts → All Posts** and filter posts by the **“Test Main”**
 category.
 5. Go to **Posts → Categories** and observe the category counts.

 === Actual Results

 * ✅ The issue is **reproduced**.
 * On the **Categories screen**:

   * **Test Main (parent)** → Count = **1**
   * **Test Sub 1** → Count = **1**
   * **Test Sub 2** → Count = **1**
 * On the **Posts list screen**:

   * Filtering by **“Test Main”** displays **2 posts**

 === Status

 ❌ **Issue still present / Not resolved**


 === Screenshots
 || Categories screen || Posts list screen ||
 || [[Image(https://i.ibb.co.com/cKMY9GYN/Huzaifa-20251218215524.png)]] ||
 [[Image(https://i.ibb.co.com/W47rNJ6n/Huzaifa-20251218215534.png)]] ||

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56241#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list