[wp-trac] [WordPress Trac] #21522: Custom posts query does not work on index with paged var

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 9 12:39:17 UTC 2012


#21522: Custom posts query does not work on index with paged var
--------------------------+------------------------------
 Reporter:  adrian7       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------
Changes (by ocean90):

 * keywords:  2nd-opinion dev-feedback => close
 * severity:  major => normal


Comment:

 The problem is the use of `query_posts()` here. You should hook into the
 `pre_get_posts`, since `query_posts()` is too late.

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


More information about the wp-trac mailing list