[wp-trac] [WordPress Trac] #16168: 404 error with pagination on custom taxonomy page

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 27 20:45:47 UTC 2011


#16168: 404 error with pagination on custom taxonomy page
---------------------------------------+----------------------
 Reporter:  kamiyeye                   |       Owner:
     Type:  defect (bug)               |      Status:  closed
 Priority:  normal                     |   Milestone:
Component:  Permalinks                 |     Version:  3.2.1
 Severity:  major                      |  Resolution:  invalid
 Keywords:  2nd-opinion needs-testing  |
---------------------------------------+----------------------
Changes (by scribu):

 * status:  reopened => closed
 * resolution:   => invalid


Comment:

 > Using the code in attached file "No_WPQuery.txt" (default Loop) + [Admin
 Zone / Settings / Reading / Blog pages show at most --> 1], and everything
 will work fine.

 Exactly, because, like
 [http://core.trac.wordpress.org/ticket/16168#comment:2dd32 said], you
 shouldn't be using {{{query_posts()}}} or {{{new WP_Query}}} for the main
 loop.

 You should use the 'request' filter:

 http://wordpress.stackexchange.com/questions/21341/alternative-to-query-
 posts-for-main-loop/21378#21378

 Feel free to leave follow-up comments, but please don't reopen this
 ticket.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16168#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list