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.

Im currently building a small store section on a site of mine with the use of CPT's & Custom Tax's for the first time. So far Ive successfully got my CPT's & Tax's working as expected however since this is my first time Im still a bit stumped about the best approach to take to present this content via templates???

Things to note to better understand my goal-

• The store items are all using (1) CPT called "Store Items"
• The store is going to contain products that fall into a few different custom tax's, eg.
Product Categories - w/ children such as (Clothing, Accessories, CDs) filed under that custom tax. / Brands - w/ children such as (Brand 1, Brand 2, etc.) filed under that custom tax, and lastly something like Artists - w/ children such as (Artist 1, Artist 2, etc.) filed under that custom tax.

Id like my URL structure to be easy to understand and follow according to what product, etc. is selected, so -

• When your visiting the store itself it will just be - www.mysite.com/store
• When your visiting a product in the store, id like it to be something like - www.mysite.com/store/clothing/mens/t-shirts
(the thing to note here is that "clothing", "mens", and "t-shirts" are children terms added to my custom taxonomy called "Product Categories") - This is the part Im hung up on and not sure how to go about...

Its just my assumption that the current approach Ive devised with 1 CPT along with my custom tax's is the best way to achieve my goal, so even if the core of how Ive approached this is in your opinion haltering my goal then Id love to know what you think.

Thanks for the help!
Best,
SB

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I found what appears to be the solution I needed after a lot of digging so I figured if anyone else might need the example, here it is... http://mondaybynoon.com/2011/05/20/revisiting-custom-post-types-taxonomies-permalinks-slugs/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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