Filtering Terms With Nested Loops?

I’m not entirely sure if this is addressed elsewhere, but I have a question regarding custom taxonomies and filtering terms.

As suggested in a previous thread, I am using a Looper Provider (All Terms) and set the taxonomy to the custom taxonomy I made earlier in ACF. All terms are listed without issue. What I’m trying to do is if a user clicks a sub-category, the list of custom taxonomy terms will auto-update with relevant terms ONLY for that sub-category.

Reading other threads, such as this one: Dynamically filter looper content with terms buttons, the answer may be to use nested loops. Or maybe a query string that checks the current category the user is in?

image

So I did some more testing and reading and have a Looper Provider (All Terms, custom taxonomy selected) and Looper Consumer set up in the Terms (Collections) row. In the List Item column, I added a Looper Provider (Current Term, custom taxonomy selected) and Looper Consumer and the first term pulled is correctly corresponding to the sub-category a user is in but any other term is just a duplicate of that term. We’re getting closer to the solution but clearly I’m missing something it seems haha…

Hello @dobacco,

Thanks for writing in!

Please be advised of the following:

Looper Provider All Terms - will display all the terms of the selected taxonomy. It would return terms in alphabetical order by default.

Looper Provider Current Terms - should and only be used when displaying the current taxonomy of the current post/product item. You cannot nest this with the Looper Provider All Terms.

Now, if you want to display only the parent terms of the taxonomy, we highly suggest that you use the Looper provider Custom. Take this old thread as a reference:

If you can share to us the URL of the page where we can find the display of the taxonomy, we would be glad to check it.

Best Regards.

Thanks for writing back with your suggestions. I will leave a secure note for you to see what I’m trying to do.

Thank you for the info. We tried logging in but the provided password is incorrect. Please check the info carefully or provide another admin account.

Sorry about that. Try the login again.