I have custom post type with some products. I need to add some content filtering now. I have custom meta box with "author". I want to add buttons with authors that will act like categories. So let me explain it by example: I have 3 products: (product num - author)
1 - John 2 - Sarah 3 - Tom
When I go to my page I see all three products. I want to add 3 buttons on top:
John| Sarah | Tom
Every click on button filters results of my query. So by clicking John we see only one product on my site - product 1. How to bite this?
I've displayed text with authors using another query_posts() above my original query, but I have no idea what to do next?