Skip Navigation

[Resolved] How to Display Related Content Without Duplicates in Toolset Views

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 1 voice.

Last updated by anastasiosM 9 months ago.

Assisted by: Minesh.

Author
Posts
#2785040
Screenshot 2024-11-21 at 16.09.20.jpg

Tell us what you are trying to do?

Hi!

I am building a website for a composer where each “Work” represents a specific musical composition, such as Sonata No. 1. The Work is connected to several related content types via Toolset relationships, including:
1. Performers: Musicians who have played the work.
2. Concerts: Events where the work has been performed.
3. References: Articles, books, or other citations discussing the work.

Each content type (CPT) has its own Single Post page, where relationships are displayed in reverse. For example:
• A Performer page lists related Works, Concerts, and References.
• A Concert page lists related Works, Performers, and References.
• A Work page lists related Performers, Concerts, and so forth.

Each relationship is shown in separate Views on these Single Post pages, allowing dynamic presentation of related content.

What I Am Trying to Achieve:

At the bottom of each Work page, I want to display a single unified list of all relevant References dynamically. These references may come from multiple indirect and direct relationships:
1. Performers who are connected to the Work.
2. Concerts where the Work was performed.
3. Direct References connected to the Work itself.

Many References include intermediary metadata, such as page numbers from books where the reference appears, much like academic footnotes. This metadata also needs to be displayed.

The Goal:

• Unified Reference List: Create a View that aggregates all References connected to the Work—whether indirectly (via Performers or Concerts) or directly.
• Avoid Duplicates: Ensure no reference appears more than once in the list, even if it is linked to multiple related entities.
• Display Metadata: Include intermediary data (e.g., page numbers) where applicable.

The Challenge:

Currently, references must be manually associated with each CPT where they appear. This is inefficient and risks inconsistencies. Instead, I want a View for References that dynamically retrieves all relevant references for content already displayed on a given page—without duplicating associations.

The specific challenges are:
1. Traversing nested relationships (e.g., Work → Performer → Reference).
2. Dynamically aggregating References from all connected content types into a single list.
3. Ensuring no duplicate References appear.
4. Properly displaying intermediary metadata for References, such as page numbers.

This functionality would simplify content management and ensure accurate, consistent presentation of references across the site.

Is there any documentation that you are following?

I have reviewed Toolset documentation and forum posts but haven’t been able to achieve this. I’ve experimented with nested Views (and even double-nested Views) but either get duplicate results (as the system cycles through Performer IDs) or blank lists.

Is there a similar example that we can see?

No similar example currently exists.

What is the link to your site?

hidden link (The site is under maintenance mode and only accessible to logged-in users.)

Thank you for your help!

#2785206

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - based on the description you shared it seems challenging task but to check what could the the possible solution if there is any I will have to review your actual content with post-relationship.

Can you please share problem URL on what post you want to display what related content exactly and what should be your expected results using all those post relationship.

You can setup a test post with all relationship and send me your expected result on that page and I will also require admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2785655

Thank you for your response. After some consideration I’ve decided to use a more standard approach so will not need further support on this matter at present. Thank you again for your help.