I wish to alter the publish permalink schema on my small WordPress 3.-beta1 to make use of my new custom taxonomy.

Today I'm able to use /%category%/%postname%/ and also the /my-category/my-post/ URL, that's nice but I have to use another taxonomy rather "category" one.

I attempted to make use of /%acervo%/%postname%/ but my Web addresses included %acervo% around the URL rather the title from the "Acevo" (my taxonomy title) wich the publish goes to.

I discovered something connected to WP_Rewrite but without sucess...

You could attempt while using WordPress wordpress plugin, No Category Base, after which hard code the taxonomy along with the postname wildcard, like so:


Observe that acervo doesn't have the share signs becasue it is "hard coded" and never a wildcard.

Simply improve your category base in Dashboard/Settings/Permalinks You don't need to eliminate the course base after which add it in again.

I recieve it... Transformed the permalink structure to /%acervos%/%postname%/ after which dived into Wordpress_Rewrite and added a brand new "alternative tag" changing %acervos% with (.*) regexp.

This will towards the trick.

function acervo_permalink($permalink, $post_id, $leavename){
    if (get_option('permalink_structure') != ''){
        $post = get_post($post_id);
        $rewritecode = array(
        if (strpos($permalink, '%acervo%') !== FALSE){   
            $terms = wp_get_object_terms($post->ID, 'acervo');  
            if (!is_wp_error($terms) && !empty($terms) && is_object($terms[0])) $acervo = $terms[0]->slug;
            else $acervo = '';
        $rewritereplace = array(
        $permalink = str_replace($rewritecode, $rewritereplace, $permalink);
    return $permalink;

Remember that you will find issues with nearly every solution, take a look only at that publish which describes the procedure and offers the very best solution I've come across: http://www.nelsonpires.com/wordpress/remove-word-category-from-wordpress-urls/