I have a hierarchical taxonomy called ‘geographical locations’. It contains continents on a first level, and then the countries for each one. Example :
Europe
- Ireland
- Spain
- Sweden
Asia
- Laos
- Thailand
- Vietnam
etc.
Using get_terms() I managed to output the full list of terms, but the continents get mixed up with the countries, in one big flat list.
How can I output a hierarchical list like above?