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 two custom taxonomies: Brand and State

If I'm viewing the "Browse States" page, I'm wanting to use wp_list_categories() to list all the states (I can do this). The urls for each State being listed should be:

/state/state-slug

If I'm viewing the "Browse Brands" page, I want to use wp_list_categories() to list the brands with urls like:

/brand/brand-slug

Now, if a state is chosen already, I want the urls to display:

/browse/state-slug/brand-slug

Once both a brand and a state are in the URL, I'll display a page which lists entries in that brand and state combination.

Basically, I'm needing help with the following points of my above description:

  1. Setting up the custom URL rewriting for browse/state-slug/brand-slug using WP's built-in functions
  2. Editing the wp_list_categories() function to display the correct URLs (using a walker).
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.