Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Hierarchical Custom Taxonomies In Permalinks

$
0
0
Hello.

@Chris' post:
http://wp-types.com/forums/reply/reply-to-resolved-custom-taxonomies-not-showing-on-permalink-5/

was very helpful in getting my custom taxonomies to show in my permalink.

However, I would like the permalink to display the whole hierarchy.

I have have a projects type with a taxonomy called "Locations" that looks like this:
California >> Bakersfield

Chris' fix above allowed me to get the following url structure:
/projects/bakersfield/projectname when both the 'California' parent location and 'Bakersfield' child location were selected.

I'd like to have this url structure:
/projects/california/bakersfield/projectname when both the 'California' parent location and 'Bakersfield' child location are selected.

I assume I need to make a change to the PHP that chris included, but I don't know what changes I need to make. Any help is greatly apprciated as I have over 1300 url's from an old site that will be broken and need explicit redirects written if I can't get the url structure to be hierarchical.

Thanks!


Viewing all articles
Browse latest Browse all 20145

Trending Articles