[wp-trac] [WordPress Trac] #2972: Reversed page numbering

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 25 08:35:43 GMT 2006


#2972: Reversed page numbering
-------------------------+--------------------------------------------------
 Reporter:  FireMotion   |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  lowest       |   Milestone:  2.5      
Component:  General      |     Version:  2.0      
 Severity:  minor        |    Keywords:           
-------------------------+--------------------------------------------------
 Currently, the most recent page (in any of the archives -- dated,
 categorized) is page number 0. When clicking on Next Page, the url shows
 it being paged=1, thus page number 1. Going back even further, the page
 numbers increase.

 However, when new posts are added, all the content in the pages shift with
 it.

 In my opinion, it would be better if the oldest posts would be on page 1.
 This way, if new posts are added, consequently new pages are added. AND
 the content of the pages stay the same.

 ---

 An example in the current situation:[[BR]]
 - There are 30 posts[[BR]]
 - Because of paging, they are spread over 3 pages.[[BR]]
 - The first post is on page 2.[[BR]]
 - The most recent post 30 is on page 0, post 21 is on page 0, post 20 on
 page 1[[BR]]
 - When creating a new post, post 31 and 30 are on page 0, page 21 shifts
 to page 1, page 20 is on page 1.

 ||Posts 30 to 21||Posts 20 to 11||Posts 10 to 1||
 ||Page 0||Page 1||Page 2||

 New post added:
 ||Post 31||Posts 30 to 21||Posts 20 to 11||Posts 10 to 1||
 ||Page 0||Page 1||Page 2||Page 3||

 ---

 Example in the ideal situation:[[BR]]
 - There are 30 posts[[BR]]
 - Because of paging, they are spread over 3 pages.[[BR]]
 - The first post is on page 1.[[BR]]
 - The most recent post 30 is on page 3, post 21 is on page 3, post 20 on
 page 2[[BR]]
 - When creating a new post, post 31 is on page 4, post 30, 21 and 20 stay
 on their own pages.

 ||Posts 30 to 21||Posts 20 to 11||Posts 10 to 1||
 ||Page 3||Page 2||Page 1||

 New post added:
 ||Post 31||Posts 30 to 21||Posts 20 to 11||Posts 10 to 1||
 ||Page 4||Page 3||Page 2||Page 1||

 ---

 Pros:[[BR]]
 - This results in better navigation.[[BR]]
 - People can more easily bookmark pages.[[BR]]
 - Search engines can more easily index the pages.[[BR]]

 Cons:[[BR]]
 - The newest page might only contain 1 to x posts.[[BR]]
 - A bit more complex code or SQL statements.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2972>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list