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

Christian Foster christian.foster at gmail.com
Mon Apr 26 01:30:50 UTC 2010


By any chance do you know how to get custom taxonomies/post types to
behave like categories so that the URL ends up as:

example.com/taxonomy/term1/child-term1/child-term2/custom_post_title

On Mon, Apr 26, 2010 at 6: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
>


More information about the wp-hackers mailing list