Support » Themes and Templates » Changing a Menu in a Theme

  • Hello …

    I am trying to change a menu from a theme I downloaded (red wave)

    The 2 things I am trying to accompish:

    1) Order the menu items (pages) by order rather then name
    2) Have a vertical pipe in between items (currently at the start … | Home | Information | Contact Us … would like … Home | Information | Contact Us)

    Here is the code

    <div id="menu">
    			<div id="menu_pad">
    				<div id="menu_items">
    					<?php $my_query = new WP_Query('post_type=page&orderby=name&order=DSC'); ?>
    
    <?php while ($my_query->have_posts()) : $my_query->the_post(); 
    
    if( $post->post_parent == 0 )
    {?>
    							<div class="no_bg">&nbsp;&nbsp;|&nbsp;</div><div><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
    <?php } endwhile;
    ?>
    				</div>
    			</div>
    		</div>

    Thanks for the help

    Mike

  • The topic ‘Changing a Menu in a Theme’ is closed to new replies.