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

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 28 22:24:36 UTC 2010


#12744: Querying with post_type and a taxonomy
--------------------------+-------------------------------------------------
 Reporter:  kovshenin     |       Owner:  ryan                   
     Type:  defect (bug)  |      Status:  new                    
 Priority:  normal        |   Milestone:  3.0                    
Component:  Query         |     Version:  3.0                    
 Severity:  normal        |    Keywords:  has-patch tested commit
--------------------------+-------------------------------------------------
Changes (by scribu):

  * keywords:  has-patch => has-patch tested commit


Comment:

 Seems to be working. This is what I used:

 {{{
 function debug_query() {
         register_post_type('test', array('public' => true));

         register_taxonomy('genre', 'test');
         register_taxonomy_for_object_type('genre', 'post');
 }
 add_action('init', 'debug_query');
 }}}

 Going to ?genre=foobar&post_type=test gives the expected results.

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


More information about the wp-trac mailing list