• I am hoping someone can help me with this. I am trying to edit a horizontal menu. It currently has one entry for each of my pages. I also would like to add an menu link to display a specific category and another to link to a URL.

    Every time I add an href, either it doesn’t display or it places the link above the horizontal menu messing it all up. I must be doing something stupid. Here is my menu.php. Any help much appreciated!

    <div class="menu">
    
                <?php if(function_exists('wp_page_menu')) : ?>
                <?php wp_page_menu ('show_home=1&depth=1&title_li='); ?>
              <?php else : ?>
    
    	<ul>
                <li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
                <?php wp_list_pages('depth=1&title_li='); ?>
            </ul>                
    
    <?php endif; ?>
    </div>
Viewing 4 replies - 1 through 4 (of 4 total)
  • If you want to hardcode your nav links, then delete the first part of your code above to get to this

    <div class="menu">
    <ul>
    <li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
    <?php wp_list_pages('depth=1&title_li='); ?>
    <li><a href="http://www.mysite.com/category">Category Something</a></li>
    <li><a href="http://www.othersite.com/">Outside Links</a></li>
    </ul>
    </div>

    You can also create pages to set the tabs and then use the plugin page links to to point the tabs to the category page or url. You would not put anything on the pages.

    Thread Starter greslore

    (@greslore)

    @mercime
    Thank you kindly – that did the trick!

    @viceng
    I tried looking for a plugin called “page links” but couldnt find one. I did find one called pageList, but I dont think that is the one you are talking about?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Horizontal Menu Help’ is closed to new replies.