Hello,
I’m hoping you can help with creating a nested views layout that displays all related posts (connected by many-to-many relationship), sorted by the taxonomies of the connected posts. The taxonomy would become the parent view. Here’s some notes about my setup:
———
Details about our Custom Post Type & Taxonomy Setup:
Services Post Type: For services we offer (i.e.: Spray Foam Insulation, Fiberglass Batts, Rockwool Insulation, etc)
Services Taxonomy - Services Categories: (i.e.: Insulation Services, Other Services, Roofing Services)
Services Taxonomy - Job Types: (i.e.: Residential, Commercial, Public Works, etc.)
— Example Uses on the site —
Example of Taxonomy Archive for “Services Category Insulation”: hidden link
Views used are Taxonomy View based on Page with Nested view of each CPT that’s connected
Works Perfectly!
Example of Taxonomy Archive for “Job Types Residential”: hidden link
View is a Taxonomy Archive with a Nested view of each CPT that’s connected
Works Perfectly!
— What I Need —
I have created a new CPT called “Office Locations”, and set a many-to-many Post Relationship with the “Services” Custom Post Type. One of my “Office Locations” posts is for our “Phoenix” Office, link here: hidden link
On this Phoenix page, I am listing all the services performed at this office, which are the Services Posts that are included in the many-to-many relationship with “Office Locations”. For this example, there are three (3) services connected: Closed Cell Foam Insulation, TPO Insulation & Open Cell Foam Insulation.
I want to display the “Services” organized by the Services Category Taxonomy, so the results look just like how they do on the Job-Type Taxonomy archive here: hidden link
I do not see a way to create a nested view of the Related Post Taxonomies (Parent View) connected to the page where the view is displayed, then display a nested (child view) of each of the posts. The expected result for this Phoenix page would be:
[Taxonomy - “Services Category”: Insulation]
[Services Post: “Open Cell Foam Insulation”]
[Services Post: “Closed Cell Foam Insulation”]
[Taxonomy - “Services Category”: Roofing]
[Services Post: “TPO Roofing”]
Please advise if this is possible! Thank you!