Skip Navigation

[Cerrado] Displaying hierarchical Relationships

This support ticket is created hace 2 años, 8 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Luo Yang hace 2 años, 7 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#2326877

I'm trying to display post relationships in their correct hierarchy.
I was already doing that with some custom code done here, but through taxonomies. Since I've had to revamp to be able to do a hierachical custom search I'll be moving the naturally hierarchical taxonomy to relationships.
It's currently like this:

Fabs (Manufacturers)
-Modelos (Models)
--Versiones (Versions)

enlace oculto < can be seen here. This links shows both the hierarchical view already existing inside a container called "Aplicaciones" and right below an unordered list from a view set to display the three custom post types.
I already tried putting the last Versiones (in the same way it works in the custom search, where you put first the last and ir rearrenges) and hoping¡? it would query backwards didn't work.
Then what shows now is a View with the three CPT Fabs, Modelos, Versiones querying the relationship from the current post the view is in.

I'm just unsure how to create the view to either show the entire hierarchy and then work on the output/style or a nested view that does the same.
From what I could search on the forums there's nothing exactly like I need.

#2328463

Hello,

It needs nested taxonomy views, for example:
1) Parent taxonomy view:
- Query term of custom taxonomy "fabricante"
- Filter by:
a) Taxonomy is set by the page where this View is inserted
b) Select taxonomy terms whose parent is None.
- In view's loop, display the term information + below child taxonomy view

2) taxonomy view:
- Query term of custom taxonomy "fabricante"
- Filter by:
a) Taxonomy is set by the page where this View is inserted
b) Select taxonomy terms whose parent is the value set by the parent view.
- In view's loop display term information + the child taxonomy view it self

In the single "producto" post, display above parent taxonomy view shortcode.

#2330761

Thank you!
Haven't been able to test it out just yet, I'll update here ideally between today and tomorrow.

#2331255

I have marked this thread as "Waiting for feedback" status, please update here if you still need assistance for it.

El debate ‘[Cerrado] Displaying hierarchical Relationships’ está cerrado y no admite más respuestas.