[wp-trac] [WordPress Trac] #10934: get_posts with a custom post_type and a custom taxonomy returns empty

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 15 13:52:32 UTC 2010


#10934: get_posts with a custom post_type and a custom taxonomy returns empty
--------------------------+-------------------------------------------------
 Reporter:  jorbin        |        Owner:  filosofo  
     Type:  defect (bug)  |       Status:  closed    
 Priority:  normal        |    Milestone:  Unassigned
Component:  Taxonomy      |      Version:  3.0       
 Severity:  normal        |   Resolution:  worksforme
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by pento):

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


Comment:

 On further testing, it appears to be fixed in 2.9.1 and 3.0.

 jorbin: check that you are using 'exclude_from_search' => false, otherwise
 the post type will always be excluded from a get_posts() search.

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


More information about the wp-trac mailing list