Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#19202 closed defect (bug) (invalid)

custom post types with has_archive return duplicate results in query_posts

Reported by: lukecarbis's profile lukecarbis Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.2.1
Component: General Keywords: needs-testing
Focuses: Cc:

Description

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.

Change History (2)

#1 @lukecarbis
12 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#2 @dd32
12 years ago

  • Milestone Awaiting Review deleted

Assuming it was a code problem..

Note: See TracTickets for help on using tickets.