Saltar navegación

[Resuelto] Display Links to Archive Pages of Child Taxonomies

This support ticket is created hace 6 meses, 2 semanas. 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.

Este tema contiene 0 respuestas, tiene 1 mensaje.

Última actualización por Robert hace 6 meses, 2 semanas.

Autor
Mensajes
#2792369

So I have created a custom Taxonomy called "Locations". I have the following taxonomies parent/child:

Arizona
-- Maricopa County
---- Phoenix
---- Glendale
---- Tempe

I have created an archive page template in the WordPress site editor and it displays each taxonomy as such:
enlace oculto.

This all works fine.

What I am trying to do is list child taxonomies at the bottom of the page IF child taxonomies exist. So in the case of "Maricopa County", it has 3 child taxonomies. I want to display links to each of these child archive pages dynamically which will result like this:

enlace oculto">Phoenix
enlace oculto">Glendale
enlace oculto">Tempe

I tried creating a view to display locations taxonomies but even without a filter, nothing displays. Thoughts?

#2792371

I figured this out pretty quickly. I created the view correctly but realized that I have nothing flagged with those terms. This was by design. So in the view, I needed to uncheck the "Don't show empty terms" checkbox. It works perfectly.