Getting my walker class to output term posts using wp_list_categories();
-
Hi all,
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”and
“Tables” with its children:
“Wooden”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.
Any ideas?
[ Please be patient and do not bump. That’s not permitted here. ]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Getting my walker class to output term posts using wp_list_categories();’ is closed to new replies.