I am creating a site for a company having partners and different products per partner.
I use Blocks.
I created a relationship 1 Partner X n Products
I created a template for Products
There is only one possible Partner for a particular Product
I used a Single Field
Field Source = Standard field
Post source = Parent in the relation
Post Field = Post Title with a link
And everything works fine.
I created a template for Partners
There are many possible Products for a Partner
I don't find what to use to display, for instance, the "Post Title with a Link" list of all the Products associated with this Partner.
Hello. Thank you for contacting the Toolset support.
As I understand, you want to display the many products that belong to your single partner on a single partner page. If this is correct then :
- you need to add a view block to your template and set its "content selection" to your desired post type, in your case this will be the product post type
- Add whatever you want to display to your view block's "view loop" section
- now to filter the posts belongs to your parnter, Click on the view block and on the right bar you will see the "Query Filter" section and add the query filter for "post relationship or repeatable fields group owner" and select your relationship and further select the option 'The post where this View is shown' and save your view.
Please check the following screenshot:
=> lien caché
By following the above steps I hope you will be able to display the products belongs to your single partner.