Skip Navigation

[Resolved] Use same view for two different post relationships

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by matthewC-9 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2034383

Hi! I have one content type (features) that can connect to two different other content types (pages and locations). I'm using a classic view to display the features on the given page or location, based on the intermediary posts. The views contain lots of things like item='@page-arbitrary-feature.child' and item='@location-arbitrary-feature.child'. They're otherwise identical, so I'd love to be able to combine them instead of maintaining a separate view for each relationship. Is there a way to re-write things to use either relationship, instead of just the pages or just the locations?

#2034639

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthew,

Thank you for getting in touch.

Given that they are connected by 2 different relationship then you will need 2 different view one to pull the data for each of the relationships. This is mainly because the item attribute value will be different based on the relationship being targeted.

Thanks,
Shane

#2036073

OK, too bad, but helpful to know. Thanks for the answer!