[wp-trac] [WordPress Trac] #14330: Multiple Post Type in Page Query Problem

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 19 15:53:56 UTC 2010


#14330: Multiple Post Type in Page Query Problem
--------------------------+-------------------------------------------------
 Reporter:  loushou       |        Owner:  loushou 
     Type:  defect (bug)  |       Status:  assigned
 Priority:  normal        |    Milestone:  3.1     
Component:  Query         |      Version:  3.0     
 Severity:  major         |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by loushou):

 Hakre - On second thought, I may have reacted a little too quickly. Your
 solution does solve the main problem; however, now ALL the params are
 getting turned to an array. First I am not sure that the extra logic for
 every param being an array is being accounted for with you solution (as
 there is plenty of logic below the for loop that deals with each param
 individually) and second, I am pretty sure that WP_Query only accepts
 arrays for certain params, not all params. For instance, had we included a
 date and time in our URL, the hour, minute, second, month, day, and year
 params all require single values, not arrays. Same for the name param.
 This solution is not as complete as I originally thought at first glance.
 :(

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


More information about the wp-trac mailing list