Timeline for WooCommerce: List All Categories
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 12, 2021 at 10:45 | comment | added | Karue Benson Karue | how to print categories with subcategories. LIke having parent and under parent list of it's categories | |
S Jun 26, 2017 at 13:38 | history | suggested | Zsolti | CC BY-SA 3.0 |
According to wordpress documentation (https://developer.wordpress.org/reference/functions/get_terms/), the get_terms method has been changed, starting with wordpress 4.5.0. Some of the arguments has been deprecated. I've modified the answer accordingly.
|
Jun 26, 2017 at 13:05 | review | Suggested edits | |||
S Jun 26, 2017 at 13:38 | |||||
Apr 2, 2013 at 10:43 | vote | accept | Edd Turtle | ||
Apr 2, 2013 at 10:42 | comment | added | Edd Turtle |
Awesome! Thank you. Just to clear things up for any readers, just add a foreach after: foreach( $product_categories as $cat ) { echo $cat->name; }
|
|
Apr 2, 2013 at 6:50 | history | answered | Ewout | CC BY-SA 3.0 |