I have categories of cities and states set up as parents and children, for example:
California
- Los Angeles
- San Francisco
New York
- New York City
When I use:
{% for place in entry.location %}
{{ place }}
{% endfor %}
it returns to me the city state (for example: "Los Angeles California"). How can I separate out the parent and child? Ideally, I want to do something like this:
{{ place.child }}, {{ place.parent }}
Thanks.