Tell us what you are trying to do?
I would like to display the products added by a producer in the producer's page.
Is there any documentation that you are following?
I am trying to follow this previous ticket to achieve a view in the producer's page.
https://toolset.com/forums/topic/relationships-with-woocommerce-products
However, i had difficulty to find where to add a custom field with producer key and not be able to display a view in the block editor in the producer's content template.
I already set the one-to-many relationship between producer and products.
Thank you
Hi,
Thank you for contacting us and I'd be happy to assist.
The previous ticket that you referenced is fairy old and with the introduction of "post relationships" in Toolset, connecting posts in different post types has become much streamlined and no longer requires saving post ID values in custom fields.
( ref: https://toolset.com/documentation/post-relationships/ )
You mentioned that you've already created a one-to-many relationship between producer and product post types. This is correct as one "Producer" can have multiple "Products".
As a result, when you'll be on the post edit screen of a single producer or product post type in the admin area, you'll see the meta box to connect posts through that relationship, as explained here:
https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/#how-to-connect-related-posts
Once the participating producer and product posts have been linked through this relationship, you can use a post view, to show only related product posts on the single producer's post page:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/
I hope this helps and please let me know if any particular step or point is not clear.
regards,
Waqar