I have a taxonomy with child taxonomies like this:
ASH 2019 (the top level term)
- Nieuwsbrief 1 (the child terms...)
- Nieuwsbrief 2
- Nieuwsbrief 3
- Nieuwsbrief 4
Now I made a view to display all posts belonging to a certain top level taxonomy term. In this case ASH 2019.
This displays the posts just fine.
But now I would like to add a dropdown selection to filter further down to only the child terms of the current top level taxonomy term.
Do you understand?
So, there are many more taxonomies with child terms but I only want to show the child terms of the current chosen taxonomy term.
Let me know if this is clear or if you need more info...
Hello. Thank you for contacting the Toolset support.
As I understand, you want to display dependent dropdown that when you select top level term from dropdown X, another dropdown should be displayed dropdown Y that only shows the child terms belongs to selected term from dropdown X.
If this is correct there is no option or feature available to display dependent dropdown based on the parent and child terms.
The page itself is like an archive page for a certain top level term.
Now all I want is to show a filter for the underlying terms (it's children so to speak)
So, in this case, I would like to have a dropdown with these options:
- Nieuwsbrief 1
- Nieuwsbrief 2
- Nieuwsbrief 3
- Nieuwsbrief 4
I'm not sure where exactly you want to child term filter dropdown.
Can you please share problem URL and admin access details. Once I review your setup I'll be able to guide you in the right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
But now not anymore... Not sure what happened. Looks like the query filter in the view got messed up. I cannot edit or delete teh filter either.
Can you take another look please?
No, it's not. The page is no longer filtering for the top level categorie (ash-2019 in this case). All top level categories are now displayed somehow...
One more thing...
The child terms show even when they are empty. Can it be made so that only child terms are shown when there are posts with that term?
And... the default term "Alle", should show all posts from the chosen top level category, but now when I set is to "Alle" it shows all posts from all top level categories...
Is this doable?
But still one small problem:
when you select a child term, the page updates to the results and then the filter dropdown shows all taxonomy items again instead of just the chosen top level children.