Is it possible to display archive pages of posts based on their taxonomies, and an archive page of a term in that taxonomy??
For example, i have a site about beauty products, and i write a product review as a post. I want to put it in the 'hair' category, and in the taxonomy 'shampoo', with the term 'dry'. I have managed to create an archive page for all posts within the 'hair' category, but i cant figure out how i then create a page to show all products that are in 'hair' AND with a taxonomy of 'shampoo'. I would also need a further page showing all products in 'hair' AND 'shampoo' AND 'dry'. ie. mysite/hair/shampoo/dry where hair is the category, shampoo is the taxonomy, and dry is the term.
Am i on the right track in thinking i need to create a taxonomy-shampoo.php page? Any help would be greatly appreciated. Thanks, Patrick.
category
and yourshampoo
are taxonomies. If you want to view all posts with thedry
tag in theshampoo
taxonomy, you should get them atmysite/shampoo/dry
, like you can see the categoryhair
atmysite/categories/hair
(with the original structure). But you want to add an extra format:mysite/[category-slug]/[taxonomy-name]/[taxonomy-term-slug]
, to view all posts in one category and one term of your custom taxonomy. I think you need to add a new rewrite structure to support that.