I am trying to produce a permalink pattern for any Custom Type, which includes among its taxonomies. The taxonomy title is famous from the beginning (so I am not attempting to add or mix all its taxonomies, only a specific one), however the value will by dynamic, obviously.

Normally, the Custom Type permalink is made while using rewrite arg using the slug param, however i aren't seeing the way i could give a dynamic variable inside.

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

I am speculating a custom option would be needed, but I am unsure exactly what the best unintrusive approach could be.

It is possible to known practice with this or has anybody built such like lately? I am using Wordpress 3.2.1 btw.

After more searching I handled to produce fairly elegant solution while using custom_post_link filter.

Let us if you have a project Custom Type having a client Taxonomy. Add this hook:

function custom_post_link($post_link, $id = 0)
{
  $post = get_post($id);

  if(!is_object($post) || $post->post_type != 'project')
  {
    return $post_link;
  }
  $client = 'misc';

  if($terms = wp_get_object_terms($post->ID, 'client'))
  {
    $client = $terms[0]->slug;
  }
  return str_replace('%client%', $client, $post_link);

  return $post_link;
}

add_filter('post_type_link', 'custom_post_link', 1, 3);

Then, when signing up the Custom Type, set the rewrite arg such as this:

'rewrite' => array('slug' => '%client%')

I suppose I ought to have dug much deeper before asking, but a minimum of there exists a complete solution now.