I’m using Custom Post Template which I linked to Magic Fields to create custom post type named Company.
I also created custom taxonomy named City.
City is hierarchical (like categories), and every Company has one city selected.
For example:
I have a company with post title Microsoft
and City taxonomy Redmond
selected.
I want my permalinks to look like this:
http://www.mysite.com/Redmond/Microsoft
Just like when you have a post category and wordpress prepends first category selected to your permalink.
Can it be done?
I’ve found solution to this problem. Here is the code:
I haven’t tried the plugin combination you mentioned but “normally”, the permalink you want can only be achieved with category listings OR pages. What you want is something like:
http://blogurl.com/categoryname/blogpostname
And this doesn’t happen in wordpress.
Your options are:
http://blogurl.com/parentpage/childpage
or
http://blogurl.com/parentcategory/childcategory