[Resolved] How to link to Parent from a View only IF on exists, otherwise link to post
This support ticket is created 5 years, 1 month 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.
Tell us what you are trying to do? link from a view to parent posts only if a parent exists
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site?
- I have two custom post types with parent and child relationship: Workshops (Parent) and Series (Child) (I hope I did this correctly in Toolset)
- On a page of my site i display a view which is a list of both Workshops and Series, and in the View Loop i have a link that should take thw user to the correct post. If the item in the View Loop is a "Series", then I want the link to go to the Parent Workshop instead of the Series post itself, but if the item in the View Loop is a Workshop (i.e. it doesn't have a Parent), then I want the link to go to itself.
- Is this possible without conditional output?