[wp-hackers] query_posts with custom taxonomy and custom post type
Davit Barbakadze
jayarjo at gmail.com
Thu Apr 29 16:33:41 UTC 2010
Is it something coming with 3.0? I can't find it in 2.9.2. And does it
really let you use one taconomy - category for example, for different
post types, like posts and pages for example?
On Mon, Apr 26, 2010 at 12:42 AM, scribu <scribu at gmail.com> wrote:
> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Davit Barbakadze
More information about the wp-hackers
mailing list