Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a CPT and two custom taxonomy I registered. I also registered the taxonomy for the CPT. This is my register code:

 $args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true, 
'show_in_menu' => true, 
'query_var' => true,
'rewrite' => array( 'slug' => 'provider' ),
'capability_type' => 'page',
'has_archive' => false, 
'hierarchical' => false,
'menu_position' => null,
 'register_meta_box_cb' => 'init_metaboxes_gallery',
    'supports' => array( 'title', 'editor', 'custom-fields', 'thumbnail', 'excerpt', 'comments' )
  ); 

  register_post_type( 'provider', $args );



$args = array(
        'hierarchical'      => true,
        'labels'            => $labels,
        'show_ui'           => true,
        'show_admin_column' => true,
        'query_var'         => true,
        'rewrite'           => array( 'slug' => 'zone','hierarchical' =>'true' ),
    );

    register_taxonomy( 'zone', array( 'provider' ), $args );

$args = array(
        'hierarchical'      => true,
        'labels'            => $labelscat,
        'show_ui'           => true,
        'show_admin_column' => true,
        'query_var'         => true,
        'rewrite'           => array( 'slug' => 'procat','hierarchical' =>'true' ),
    );

    register_taxonomy( 'procat', array( 'provider' ), $args );

Of curse I set labels for each register. I want that the link will be:

www.mysite.com/procat/procat-sub/zone/zone-sub

If there isn't sub for the procat or for the zone it will be without the sub, of course.

So I set the sructure of the permalink on admin panel to:

/%procat%/%zone%/%postname%/

but the url is still

www.mysite.com/provider/provider-name
share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.