get_the_category listing in hierarchial order
Use wp_list_categories instead, <?php $args = array( ‘hierarchical’ => true, ‘child_of’ => 42, //parent category ‘hide_empty’ => 1, //hide empty categories (set to 0 to show) ); wp_list_categories($args); ?> A full list of parameters for wp_list_categories can be found HERE As you can see its highly customizable simply by adding extra arguements to the array … Read more