[wp-trac] [WordPress Trac] #8905: Category pagination broken with certain permalink structures

WordPress Trac noreply at wordpress.org
Fri Aug 1 15:16:17 UTC 2025


#8905: Category pagination broken with certain permalink structures
---------------------------------------------+-----------------------------
 Reporter:  rmccue                           |       Owner:  (none)
     Type:  defect (bug)                     |      Status:  assigned
 Priority:  normal                           |   Milestone:  Future Release
Component:  Permalinks                       |     Version:  2.7
 Severity:  normal                           |  Resolution:
 Keywords:  needs-patch needs-testing close  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by callumbw95):

 * keywords:  needs-patch needs-testing => needs-patch needs-testing close


Comment:

 Hi All,

 I have just tested this on my local set up running the `trunk` branch, and
 this appears to be working as it should be now.

 == Test Report
 === Description
 Testing an issue with pagination with the following permalink structure:
 `/%category%/%postname%`.

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.4.7
 - Server: nginx/1.27.5
 - Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.4.7)
 - Browser: Chrome 137.0.0.0
 - OS: macOS
 - Theme: Twenty Seventeen 3.9
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Steps to Reproduce when there are posts within a category.
 1. Change permalink structure on the site to: `/%category%/%postname%`
 2. Navigate to a category with enough posts to require pagination.
 3. Using the page navigation links, go to any page beyond the first one.
 4. ✅ The page loads and the additional page of posts displays.

 === Steps to Reproduce when there are not any posts within a category .
 1. Change permalink structure on the site to: `/%category%/%postname%`
 2. Navigate to a category with zero posts.
 3. ✅ The Page displays a 404, which is identical to the other permalink
 structures I have tested with.


 I believe this issue has now resolved over the years, and we are safe to
 close this ticket down? As of such I have attached the `close` tag. 😃

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


More information about the wp-trac mailing list