[wp-trac] Re: [WordPress Trac] #8987: add_action('pre_get_posts') cannot use 'tag' and 'cat' together

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 16 19:13:20 GMT 2009


#8987: add_action('pre_get_posts') cannot use 'tag' and 'cat' together
--------------------------+-------------------------------------------------
 Reporter:  galbustein    |        Owner:  anonymous
     Type:  defect (bug)  |       Status:  closed   
 Priority:  normal        |    Milestone:           
Component:  General       |      Version:  2.7      
 Severity:  normal        |   Resolution:  invalid  
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

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


Comment:

 if you change the query var, WP will use one or the other. use
 pre_get_posts to mark the query as "in need of change" and then a separate
 filter, on posts_join for instance

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


More information about the wp-trac mailing list