• Resolved MetalBlade15

    (@metalblade15)


    https://cheap-internet-offers.co.uk

    I have tried EVERYTHING to get my bar in alphabetical order but it just doesn’t seem to want to budge. I have tried to use the “orderby=” , “order=” and anything else suggested can someone PLEASE help me. This is wrecking my head.

    <div id="menu-wrap">
    
    		<?php if(function_exists('wp_nav_menu')) :
    		wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'ts-menu-main', 'menu_class' => 'sf-menu', 'fallback_cb' => 'ts_menu', 'theme_location' => 'main' ) );
    		else : ?>
    
    		<div class="ts-menu-main">
    		    <ul class="sf-menu">
    		        <?php if(!ts_get_option('ts_ex_home')) : ?>
    		        <li<?php if(is_front_page()) echo ' class="current"'; ?>><a href="<?php bloginfo('url'); ?>" title="<?php _e('Home',TS_DOMAIN); ?>"><?php _e('Home',TS_DOMAIN); ?></a></li>
    		        <?php endif; ?>
    		        <?php $ex_cats = ts_get_option('ts_ex_cats'); wp_list_categories('title_li=$category='.$current_cat.'&exclude='.$ex_cats.'&orderby=slug'); ?>
    		    </ul>
    		</div>
    
    		<?php endif; ?>
    
    	</div>

    That is my header that contains the nav bar.

    Daily Deals

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you not create a menu and order it yourself under Appearance => Menu that would be the easier option. ie no programming needed.

    Thread Starter MetalBlade15

    (@metalblade15)

    THANK YOU! OMG I LOVE YOU! I have been at this for the past 20 hours, you genius!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add order to horizontal category navigation bar?’ is closed to new replies.