Skip Navigation

[Resolved] Showing related artists that play at the same event on the artist page

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 5 months ago.

Assisted by: Waqar.

Author
Posts
#2492053

Hi

Im trying to display related artists that play at the same event on the single artist page.
I've setup a many to many relationship = artists -> events.

So basically i want to list out the artists that are related to the same event as the current artist on the page.

Thank you

#2492673

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

To achieve this, you'll need two separate views:

1. The parent view will be set to show the 'Events' posts, which are related to the current single artist whose page is being viewed.

2. The second view will be nested inside the loop of the parent view, to show all the 'Artists' posts, which are related to a current 'Event' in the loop of the parent view.

Once these views are ready, you can include the parent view's shortcode in the template for the single artist page, to show all the artists which have common events with the current one.

I hope this helps and please let me know if you need any further assistance with this.

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.