Hi,
I have a problem showing subcategories for a post. I’m looping some posts by taxonomy and inside the loop I need to show the subcategories for that post. I’m using a custom hook for that. Everything seems to be ok if I var_dump the term list, but when I return it the first three posts are without category. Here’s some photos:
The filter:
The posts with right term object:
The front when I return the terms, you can see the first three terms are empty:
Thank you