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

Filter view results with wordpress menu

$
0
0

I'm trying to achieve something similar to your ecommerce example but I want to use a menu to filter specific items in a taxonomy rather than using a parametric search.

My site is for sports related merchandise and each product will be related to a team and a product category (e.g Manchester United T-Shirt, Chelsea Sweatshirt etc). So I've created two taxonomies – one for the team and one for the product category. Each team has their own page and I've created a view to display all the products relating to that team – filtered as follows
ALL post types, ordered by post date, descending
Select posts with taxonomy: Team the same as the current page

I then want to have a menu which has all the product types listed – T-Shirts, Sweatshirts etc and when you click on a menu item the page displays just the products in that category (taxonomy) for the current team page.

I could of course create individual team/product pages (e.g. mysite.com/team/product-category) and display the relevant posts on each page but as I have 72 teams and 42 categories this would mean creating 3024 pages which I would like to avoid.

Using the parametric search I could achieve this by using a checkbox list and a submit button but I want to be able to just click a single menu link to filter the results I need for a particular category. Is it possible to do this?

Thanks
Rob


Viewing all articles
Browse latest Browse all 20145

Trending Articles