I have written this code and I am confused at the outcome:
When run, it outputs:
Product categories Chairs Metal Metal chair Wooden Wooden chair Wooden chair Tables Wooden Wooden table Wooden table
It is suppose to output the product_category taxonomy terms:
"Chairs" with its children:
"Metal" and "Wooden"
"Tables" with its children:
Then for each sub term, it should output the posts that belong to it:
Wooden chair Metal chair Wooden table
But instead it cycles through the posts:
"Wooden chair" for example
and then ends the ul and then does Wooden chair as if it's a term when infact its just a post.
[ Please be patient and do not bump. That's not permitted here. ]