[wp-trac] [WordPress Trac] #12744: Querying with post_type and a taxonomy

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 28 16:10:02 UTC 2010


#12744: Querying with post_type and a taxonomy
--------------------------+-------------------------------------------------
 Reporter:  kovshenin     |       Owner:  ryan      
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Query         |     Version:  3.0       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 Kind of weird. I've got a custom post type called property (real estate)
 and I'm able to use the {{{post_type=property}}} query to grab them. Now
 if I add some taxonomy to the query, such as
 {{{post_type=property&location=italy}}} then I'm left with all post types
 from italy, i.e. including posts.

 The post_type parameter is being ignored and forced to {{{any}}} on line
 2041 in query.php.

 I also noticed that around line 1631 it's being forced again to {{{any}}}
 if we're doing a search, so a search with {{{post_type=property}}} will
 probably not work.

 Thoughts?

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


More information about the wp-trac mailing list