Skip Navigation

[Resuelto] Display all parent taxonomies title in a view

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
How to filter taxonomy to display only parent terms

Solution:
You can filter your view by taxonomy parent equal to None to display only parent taxonomy terms.

Relevant Documentation:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

This support ticket is created hace 7 años. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Etiquetado: ,

Este tema contiene 12 respuestas, tiene 2 mensajes.

Última actualización por marcB-6 hace 7 años.

Asistido por: Minesh.

Autor
Mensajes
#589055
Screenshot_7.png
Screenshot_5.png

Tell us what you are trying to do?

- I have created taxonomies with three names
1) Restaurant types
2) Watersport types
3) Bar types

I would like to display the names I gave above in a view.

If I select Content Selection > Taxonomy it is allowing me to select any of the mentioned above.If I select "Restaurant types" then It is displaying "Restaurant types" and its child terms which is not ok.

Second thing, I would like to do is once its display the category name, I have a link "See More" which will display more category title.

Please check attached screenshots for the same.

#589086

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

1) Restaurant types
2) Watersport types
3) Bar types
I would like to display the names I gave above in a view.
==> I understand that you have three custom taxonomies and you would like to display taxonomy names but where you would like to display it?

If I select Content Selection > Taxonomy it is allowing me to select any of the mentioned above.If I select "Restaurant types" then It is displaying "Restaurant types" and its child terms which is not ok.
==> As I understand you have taxonomy view and you select taxonomy "Restaurant types" , it displays terms for taxonomy "Restaurant types", which is expected. Could you please describe in brief what is your expected output with problem URL?

Second thing, I would like to do is once its display the category name, I have a link "See More" which will display more category title.
==> I will guide you once you share problem URL and all details how you integrated view and where.

#589089

enlace oculto
search for text "Discover all the great aspects of Bonaire" below that you can see terms for restaurants.

I would like to display the names I gave above in a view.
==> I understand that you have three custom taxonomies and you would like to display taxonomy names but where you would like to display it?

Ans : Using view in content template

My expected output is
1) Restaurant
2) Watersport
3) Bar

Please mark my next reply as private. So I can provide you details.

Thanks

#589091

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

So, as I understand, you would like to display terms for Restaurant then it should display terms for Watersport and then Bar - correct?

#589107

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Well - I see you have taxonomy term "Restaurants" setup as parent taxonomy same with other taxonomy.

So, as I understand you want to display all 3 custom taxonomy with their associated parent and child terms - correct?

If yes, there are two ways, either combine all 3 custom taxonomy to 1 taxonomy and add your terms under your parent terms and display it using one view or if you want 3 separate taxonomies, then you need to create view for each taxonomy term.

So, please let me know which way you want to go further.

#589113
Screenshot_8.png
Screenshot_9.png
Screenshot_10.png

So, as I understand you want to display all 3 custom taxonomy with their associated parent and child terms - correct?

Ans : Please check attached screenshot. The names which are in red box needs to be displayed.

#589121

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Thanks for the screenshots and Yes - I get that point and as I said, you have 3 different taxonomies.

You only want to display parent taxonomy that you show me in screenshot or parent as well as its associated child terms. As you have 3 different taxonomies, you need to have 3 different views to display it one belongs to each taxonomy and you should filter your view by taxonomy parent equal to none to display only parent taxonomy term.

#589125

I can not do that because I can have more categories so It is not good idea to create as many views as category

#589155

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

So - another choice is to change the taxonomy structure that is combine all taxonomies into one taxonomy and organize your parent/child terms accordingly then its possible to display parent terms using one view.

#589310

Ok I will do that

#589311

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

OK fine - let me know if you need further assistance.

#589329
Screenshot_11.png
Screenshot_12.png

I have added it in categories and view is selected as "Categories". But, it is displaying parent and sub categories.
I would like to display only parent categories.

#589333

parent : none filter working..Thanks