Results 1 to 3 of 3

Thread: Listing subcategories on one line

  1. #1
    Thread Starter
    Rookie tuoncan's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    7
    Thanks
    0
    Thanked 1 Time in 1 Post

    Question 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/

  2. #2
    Thread Starter
    Rookie tuoncan's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    7
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,006
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. too much subcategories
    By rico in forum Report ClassiPress Bugs
    Replies: 16
    Last Post: October 28th, 2011, 01:22 PM
  2. Subcategories
    By edo081 in forum Report JobRoller Bugs
    Replies: 1
    Last Post: July 17th, 2011, 10:44 AM
  3. line 2756 and line 2763
    By Almost in forum Report ClassiPress Bugs
    Replies: 12
    Last Post: May 28th, 2011, 11:24 AM
  4. Blank line after every line of code?
    By classbr in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: March 14th, 2011, 09:56 AM
  5. Single Ad Listing (Sidebar): Delete Subcategories box
    By lcolley in forum ClassiPress General Discussion
    Replies: 2
    Last Post: August 13th, 2010, 02:21 PM