[wp-hackers] query_posts with custom taxonomy and custom post type

scribu scribu at gmail.com
Sun Apr 25 20:42:42 UTC 2010


Besides register_taxonomy_for_object_type()<http://core.trac.wordpress.org/browser/trunk/wp-includes/taxonomy.php?rev=14234#L298>,
you can also register taxonomies like this:

register_post_type('my_post_type', array(
'taxonomies' => array('tax1', 'tax2')
);


-- 
http://scribu.net


More information about the wp-hackers mailing list