[wp-trac] [WordPress Trac] #19202: custom post types with has_archive return duplicate results in query_posts

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 8 05:22:17 UTC 2011


#19202: custom post types with has_archive return duplicate results in query_posts
--------------------------+-----------------------------
 Reporter:  lukecarbis    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.2.1
 Severity:  minor         |   Keywords:  needs-testing
--------------------------+-----------------------------
 Custom post types with has_archive return duplicate results in
 query_posts.

 For example, running this on an install with a custom post type of
 product, and product posts of pokemon blue, pokemon red, pokemon green:

 query_posts( array( 'posts_per_page' => 10, 'post_type' => 'product', 's'
 => 'pokemon' ));

 if ( have_posts() )
 while ( have_posts() ) {
         the_post();
         echo the_title().'<br />';
 }

 This returns multiple pokemon blues and reds, and no pokemon greens.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19202>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list