Results 1 to 2 of 2

Thread: Help Arranging sub categories

  1. #1
    Thread Starter
    Senior Member altafshah's Avatar
    Join Date
    Mar 2011
    Location
    United Arab Emirates
    Posts
    120
    Thanks
    6
    Thanked 1 Time in 1 Post

    Question Help Arranging sub categories

    Hi there, can any body help me out with this code?

    this is the code which finds the sub categories and puts it line by line on the side bar.
    insted of side bar i want to dispy it on top of ads loop. so easy for selection..
    Just wanted some one can modify it so it will print the sub categories in 4 columns.

    <?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 );

    // build the advanced sidebar search




    // 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&ta xonomy='.APP_TAX_CAT.'&depth=1&child_of

    =' . $ad_cat_array['term_id']);

    if ( !empty($subcats) ) :
    ?>
    <div class="shadowblock_out">

    <div class="shadowblock">

    <h2 class="dotted"><?php _e('Sub Categories', 'appthemes') ?></h2>

    <ul>
    <?php print_r($subcats); ?>
    </ul>

    <div class="clr"></div>

    </div><!-- /shadowblock -->

    </div><!-- /shadowblock_out -->

    <?php endif; ?>

    <?php } // is_tax ?>

  2. #2
    Veteran barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,785
    Thanks
    186
    Thanked 742 Times in 623 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: May 20th, 2012, 02:35 PM
  2. [SOLVED] Arranging Ad Categories
    By annamantova in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: April 27th, 2011, 11:24 AM
  3. Replies: 6
    Last Post: December 15th, 2010, 07:29 AM
  4. resizing/re-arranging youtube extract in ad
    By lausha in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: December 12th, 2010, 06:06 PM
  5. Replies: 1
    Last Post: July 13th, 2010, 10:59 PM