Jonas
October 25, 2024, 10:20am
1
On my category archive I want to list all further sub categories and only the direct sub categories. Exmple:
Electronic
- Cables
-- USB Cable
-- HDMI Cable
- Headphones
- Smartphones
Electronic
is the primary parent category in this example. On the Electronic
archive I want to display a list of all direct sub categories. This should be the result:
- Cables
- Headphones
- Smartphones
Unfortunately I’m not able to set my Query in a way that achieves this result.
Can anybody help?
Hi @Jonas ,
Here is a quick tip regarding this:
Since this has been asked about a few times, I have produced a quick tip for it.
For some sites we may want to create an archive page that displays only the child terms for the parent term associated with the current page.
This is extremely easy to do with a Cwicly Taxonomy Query.
Prerequisites:
You have a hierarchical taxonomy (example created with ACF):
[hierarchical-taxonomy-acf-2]
[hierarchical-taxonomy-acf-1]
You have an archive template (added via + Default button in Themer - choose…
I hope it helps.
1 Like
Jonas
October 27, 2024, 8:58am
3
@StrangeTech you are awesome!
Thank you so much for your effort to explain this in such detail! I really appreciate it!
1 Like