[wp-trac] [WordPress Trac] #63575: Problem with posts pagination

WordPress Trac noreply at wordpress.org
Mon Jun 16 10:29:32 UTC 2025


#63575: Problem with posts pagination
--------------------------+-----------------------------
 Reporter:  szymonmil111  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi,

 There is not-easy-to-track bug in posts pagination.

 Steps to reproduce (on clean installation of WP in 6.8.1 version):
 1. In Permalink settings (/wp-admin/options-permalink.php) set Category
 base to value X
 2. Set Permalink structure to "/%postname%/"
 3. Create new Page with slug X (the same value as in Permalink settings)
 4. In Reading settings (/wp-admin/options-reading.php) set page X as
 "Posts page"

 Everything will work fine except pagination. Let's assume that the X value
 is "news". And there is result of what we got when enter specific page:
 - /news = list of all posts (because that page was set as "Posts page"
 - /news/informations = list of posts from category "Informations"
 - /news/page/2 = should recevie second page of all posts, but return 404
 error!

 I didn't deep-dive into that issue and I didn't figure out what casuses
 the problem at the code level.

 In my opinion, in that situation there should be error when I try to:
 - create new page (or change slug to) with slug which is "Category base"
 in Permalink settings
 - change "Category base" value to value that is slug of some page

 I spent some time to figure out why there is 404 on /page/2 and it is not
 clear

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63575>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list