According to this having many url rewrites doesn't slow down website. But neverthless is it possible to disable generating those rewrites when I register taxonomies? Becase only for this one CTP I have 60 unnecessary rewrites.

// Register CTP
$args = array(...)
register_post_type('my_ctp', $args);

// Register 12 months as taxonomy for CTP (each of them have a few custom terms inside)
foreach($this->months as $month => $month_var) {
    $args = array(
        'labels' => array('name' => $month),
        'hierarchical' => true,
        'sort' => true,

    /*  'public' => false,
        'show_ui' => false,
        'show_in_nav_menus' => false,
        'query_var' => false*/
    register_taxonomy($month_var, 'my_ctp', $args);     

This is example of a rewrite for one custom taxonomy enter image description here

1 Answer 1


in the args try to add this :

"rewrite" => FALSE,
  • 1
    hm so simple, Ty how did I missed that... must be too late :) Oct 9, 2016 at 21:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.