[Résolu] Reflect post relationships in breadcrumbs & permalinks
This support ticket is created Il y a 4 années et 9 mois. 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.
Say I have the following post relationship structure:
-Boat
--Maintenance Tasks
---Log Items
--Safety Checks
---Log Items
---First Aid
--Documents
--Crew Members
---Certificate
I need to reflect this structure in my permalinks. So for example, I have a log item named "Check 10/11/2018" that was a child of a maintenance task named "Check engine" that is a child of a boat named "Albatross":
URL needs to be: example.com/albatross/check-engine/check-10-11-2018
OK, sounds like I need to use views then. Is there a way that I can get that structure using nested views- no matter the post type currently being viewed? I say that because i'll be adding more post types and ideally need it to be dynamic.
I know I can get the post title using "A post related to the current post, set by a Types relationship" but I have to specify the relationship. Same goes for views- I have to specify the post type...
Fro the question: Is there a way that I can get that structure using nested views- no matter the post type currently being viewed?
No such kind of feature within Views plugin, when you setup a view, you need to select the post type and relationship filters for each view, in your case, different post type needs different view.