wordpress – Peter Tran – Sydney, Australia https://petertran.com.au/ The portfolio site of Peter Tran, a freelance software developer and entrepreneur residing in Sydney, Australia. Thu, 13 Dec 2012 09:50:35 +1000 en-US hourly 1 https://wordpress.org/?v=5.3 WordPress WPCommerce – Get the parent category of a category object https://petertran.com.au/2012/12/13/wordpress-wpcommerce-get-the-parent-category-of-a-category-object/ https://petertran.com.au/2012/12/13/wordpress-wpcommerce-get-the-parent-category-of-a-category-object/#respond Thu, 13 Dec 2012 09:49:23 +0000 http://petertran.com.au/?p=320 Maintaining a WordPress site that has WP Commerce set up installed, I needed to do some minor customisations to a widget that displayed nested Category names. Because some categories shared identical names as other categories of the same level (e.g. ‘Necklaces > Classic’ and ‘Earrings > Classic’), I needed to prepend the parent category name […]

The post WordPress WPCommerce – Get the parent category of a category object appeared first on Peter Tran - Sydney, Australia.

]]>
https://petertran.com.au/2012/12/13/wordpress-wpcommerce-get-the-parent-category-of-a-category-object/feed/ 0