This one perplexes me a bit. I have a relationship between artists and item(product). This way I can associate an artist with a product, and list the artist's products on their bio page. I also display the artist on the product page. But now I want to also display the related products on a single product page, based upon the Artist. Not sure how to go about creating a view that will filter a list of products based upon the artist.
Hello. Thank you for contacting the Toolset support.
I have a relationship between artists and item(product). This way I can associate an artist with a product, and list the artist's products on their bio page.
===>
Ok, what relationship you implement between artists and item(product) post type? is it one-to-many or many-to-many?
But now I want to also display the related products on a single product page, based upon the Artist. Not sure how to go about creating a view that will filter a list of products based upon the artist.
===>
Can you please share the example of your connection/relationship once I check that I will be able to guide you in the right direction.
the relationship is one to many. One "Artist" to many "Products" Currently I display the "artist's" --->Products on the Artist bio page. One Single Product page, I also display the "ARtist" who made the product.
I now want to be able to display a related Products list on the single product page, but base that related product list on the Artist.
Currently.
ARTIST PAGE:
product 1
product 2
Product 3.....
Single PRODUCT PAGE:
Arist bio.
what I want.
Single PRODUCT PAGE:
'artist bio.
related product by artist.
related product by artist
related product by artist......
.....
You need to create a nested view to display the related items. Set you to view to query the related artist first and create another view that should query the products that belong to the artist in parent loop.
If you need further help, please share wp-admin access details and product page URL where you want to display the related products and I'll be happy to help.
I have set the next reply to private which means only you and I have access to it.