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

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 18 01:53:55 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 wpmuguru):

 Replying to [ticket:14330 loushou]:
 > PLEASE READ WHOLE BUG: because it includes reasons for severity also
 >
 > == THE PROBLEM: ==
 > So I have a problem.... obviously, right? So if I were to do something
 like:
 >
 > {{{
 > get_posts('post_type[]=post_type_1&post_type[]=post_type_2');
 > }}}
 >

 That's where you are going wrong. Try

 {{{
 get_posts('post_type=post_type_1,post_type_2');
 }}}

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


More information about the wp-trac mailing list