Listing subcategories on one line
Hi
I'm trying to display the subcategories at the end of the breadcrumb inside each category page.
I have found the following code within sidebar.php to get the subcategories.
<?php if ( is_tax( APP_TAX_CAT ) ) {
// go get the taxonomy category id so we can filter with it
// have to use slug instead of name otherwise it'll break with multi-word cats
if ( !isset( $filter ) )
$filter = '';
$ad_cat_array = get_term_by( 'slug', get_query_var(APP_TAX_CAT), APP_TAX_CAT, ARRAY_A, $filter );
// show all subcategories if any
$subcats = wp_list_categories( 'hide_empty=0&orderby=name&show_count=1&title_li=& use_desc_for_title=1&echo=0&show_option_none=0&tax onomy='.APP_TAX_CAT.'&depth=1&child_of=' . $ad_cat_array['term_id'] );
if ( !empty( $subcats ) ) :
?>
<?php print_r( $subcats ); ?>
<?php endif; ?>
<?php } // is_tax ?>
The problem I'm seeing is that the <?php print_r( $subcats ); ?> will display the subcategories in rows. Does anyone know how to convert this into one line?
Thanks in advance
Here is what I'm seeing at website:
http://www.freeraovat.net/ad-category/for-rent/