Wordpress Custom Type permalink containing Taxonomy slug

Posted by treznik on Stack Overflow See other posts from Stack Overflow or by treznik
Published on 2011-10-11T08:48:15Z Indexed on 2012/09/06 15:38 UTC
Read the original article Hit count: 148

I'm trying to create a permalink pattern for a Custom Type, that includes one of its taxonomies. The taxonomy name is known from the start (so I'm not trying to add or mix all of its taxonomies, just a specific one), but the value will by dynamic, of course.

Normally, the Custom Type permalink is built using the rewrite arg with the slug param, but I don't see how I could add a dynamic variable in there.

http://codex.wordpress.org/Function_Reference/register_post_type

I'm guessing a custom solution is required, but I'm not sure what the best unintrusive approach would be.

Is there a known practice for this or has anyone built something similar recently? I'm using WP 3.2.1 btw.

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about taxonomy