Ah ah, it’s pure coïncidence, i was about to get crazy trying things all the ways when this field=parent
helped… i agree, it makes no sense.
Moreover, i think field=children
in this loop produces the opposite and outputs only the parent categories.
I better change my code for yours to output only the child terms, it will probably be more solid.
Speaking of the documentation, i take advantage of this example to repeat what a shame it is not to have much more example and use cases as there is in CCS doc!
It was a huge help in CCS, unfortunately L&L is quite the opposite, a rich theorical doc with long keywords lists, and a very few usage examples.