Home › Forums › ACF PRO › Taxonomy sub categories › Reply To: Taxonomy sub categories
The inner loop you have highlighted won’t work as expected.
The variable $term
is an object, not an array of sub terms.
To get the children of a term, you need to use some code like so:
http://codex.wordpress.org/Function_Reference/get_term_children
That function will allow you to load the child terms and then you can loop over them.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.