Support » Alpha/Beta/RC » Hierarchical Custom Taxonomy Permalinks

  • I recently started playing around with the release candidate–which has been awesome so far–including trying to make some custom post types and taxonomies. Everything seems to be working really well except one small organizational issue in my taxonomy archive’s permalinks.

    For this project, I’ve created a custom taxonomy called “type” for my custom post type “discography;” my register_taxonomy() function looks like this:

    register_taxonomy('discotype',array('discography'), array(
        'hierarchical' => true,
        'labels' => $labels,
        'show_ui' => true,
        'query_var' => true,
        'rewrite' => array( 'slug' => 'discography/type' ),

    The problem I’m having is that I’d like the urls of my individual taxonomy term archives to reflect the hierarchical relationships between terms. Right now, all term archives appear like this:

    I’d like them to look like this:

    Is there something I need to add to my register_taxonomy() function or .htaccess in order to get the links to look the way I want them to?

    I feel like this is one of those problems with an obvious solution that I’m just missing and/or not googling the correct terms. Any direction would be greatly appreciated!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thanks for the tip, Hotrocket. I don’t think that totally solves the problem, unfortunately. I’ve been able to add and use my custom taxonomy, the permalinks for the individual term archives just don’t look the way I want them to.

    Maybe I’m just misunderstanding the functionality of these taxonomies to begin with?

    Im having this same issue.

    Im using custom taxonomys for geo referencing.

    An my permalinks now are like:

    Where I would actually like them to be:

    currently, the permalinks just don’t work that way unfortunately. If yuo do some google searches you can find a few discussions, and there’s something in the trac

    I just can’t seem to find my links right now

    But for some reason they don’t behave like default WP taxonomies with parent/child

    Has anyone got any further with this? I’ve just come across this problem too.

    I think this is the trac ticket:


    Yes, I’m having problems with this. I’m not sure what to do with the file in the trac. Anybody got any ideas?

    Many thanks.

    I too am having the same problem, has anyone got any further?

    From the trac ticket it looks like this is getting addressed in 3.1.
    Cross dem fingers…

    It seems to not working in Wordress RC2. What about you?

    Has anybody got this to work yet? ive tried everything on RC2-17330 🙁

    Moderator Andrew Nacin


    Lead Developer

    It works in 3.1 but you need to opt-in support for it.

    Use the ‘hierarchical’ => true flag of the ‘rewrite’ array for the taxonomy.

    I can’t make it to work.
    In Custom Taxonomy plugin option screen I set:

    Hierarchical -> true
    Rewrite -> true

    … and hierarchical permalinks still don’t work. Any ideas?

    Following settings will work:

    hierarchical => true
    rewrite => array('hierarchical' => true )

    hi !

    I’m getting my custom twentyten theme to work tanks to your suggestions.
    Currently I got it working like this : in which i see all my custom posts that have been assigned to subcategory.
    What i want to know is if i can make my url point to the custom post and include in the url the cat/subcat it’s in… something like because now it sends me to

    P.S. : I have the permalink set to /%category%/%postname%/

    Any ideas ?

    Hi, crazy_mtx! Perhaps this plugin will be usefull for you: Custom Post Permalinks

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Hierarchical Custom Taxonomy Permalinks’ is closed to new replies.