So - my goal is to display my subcategories in a list. I've been looking at the documentation and actually found the solution, however - it is not working for some reason. The explained solution is as the code shows down below, it works when the parent id is set to 0 (as it shows the main category), but not when i target a parent. Any suggestion to why this isn't working?
[product_categories parent="19"]
CodePudding user response:
You can user something like this in your text editor.
[product_categories id="44" parent="0"]
CodePudding user response:
I think you have not added the product into the subcategory so that's why it's not displayed. So you need to add one more "hide_empty" parameter in the shortcode.
Your shortcode is like this.
[product_categories hide_empty="0" parent="19"]