[Resolved] Unable to get grandparent post field to display
This support ticket is created 5 years, 3 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.
In terms of relationships, Events can have Sessions and/or Speakers. And Sessions can have Speakers.
I want to be able to display links to events that speakers have spoken at on each speaker's profile page, but so far I am only able to display events where the speaker was added directly to the event.
I am not able to get links to events where the speaker was added to a session and then the session was added to an event.
I have tried every possible combination of post field relationship I know of - e.g.,
But, no matter what, I can't seem to get events to show up on a speaker's page if the speaker was added to a session (and then the session was added to the event).
I feel like I must be missing something obvious and have been staring at this for so long now that I am blind to it.
So, considering the following relationship:
- State
-- City
--- Employee
Create new content template and add the fields to it - the top level (Where you should replace the "state-city"relationship slug) with your Event-Session post relationship slug:
[wpv-post-link item="@state-city.parent"]
Then when you add content template - add the item attribute to content template using the (where you replace the "city-employee" relationsihp slug with Session-Speaker relationship slug.):
I gave it a try on a Discover WP installation and failed a bunch more times before looking more closely at the item attributes in your example above (as well as in the post you linked to).
I realized one of the ones I was trying to use was incorrect, so I added the correct one and, after playing around with the filters for a bit, it's now working as it should.