WordPress Navigation Menu Question

by MarkR
11 replies
  • WEB DESIGN
  • |
I'm looking for an easy way to control navigation on my WordPress site.

How do I tell WordPress that I don't want some of my main navigation links to have a page associated with it, only it's child/sub-pages? I want to force the user to select a sub-page. I don't want all of my main pages like this, but most of them.

I swear I've done it before, but it's escaping me.
#menu #navigation #question #wordpress
  • Profile picture of the author Adam Roy
    Ok I think I know exactly what you mean.

    What you want to do is this, add your main categories which your sub pages will be in.

    Now when you write your posts, make sure the category you assign to is is the sub category, not both the child and the parent.

    Next you want to install the single category plugin. I'm not sure what it's called, but it's a widget you put in your sidebar which displays all the links from a particular category.

    Now like I said MAKE SURE YOU ASSIGN YOUR POST TO YOUR SELECTED CHILD CATEGORY ONLY, NOT THE PARENT AND CHILD CATEGORY. The throw that single category over there and you're good.
    {{ DiscussionBoard.errors[2001488].message }}
  • {{ DiscussionBoard.errors[2001544].message }}
  • Profile picture of the author VicFranks
    The multi menu from pixopoint.com is an viable a good option..

    You can also take a look at "Page Links Plus"
    technokinetics.com/plugins/
    {{ DiscussionBoard.errors[2057229].message }}
    • Profile picture of the author ChrisGuthrie
      Originally Posted by VicFranks View Post

      The multi menu from pixopoint.com is an viable a good option..

      You can also take a look at "Page Links Plus"
      technokinetics.com/plugins/
      Yes I've tried that one as well.

      Perhaps there is an easy way to do this without plugins though? I know everyone searches for plugins to be the answer but it can bog a site down quite a bit at times.
      {{ DiscussionBoard.errors[2057700].message }}
      • Profile picture of the author vbskss
        In one of my blogs i added in the loop that calls the pages or category works for both pretty simple you just need to exclude the pages that you don't want by adding

        &exclude= and here the page id or the category id, to find out what the id is you can get it by hovering the post or pages in the admin panel and you'll see the id in the link in the status bar of your browser voila


        <div id="nav">
        <ul>
        <li class="<?php if (is_front_page()){echo "current_page_item";}?>"><a href="<?php bloginfo('url');?>">Home</a></li>
        <?php wp_list_pages('title_li=&depth=1&sort_column=menu_ order&exclude=47,54,68,38,2'); ?>
        </ul>
        </div><!--nav-->

        Hope this helps
        Viktor
        {{ DiscussionBoard.errors[2058109].message }}
  • Profile picture of the author HTusco
    I use the NAVT plugin > wordpress.org/extend/plugins/wordpress-navigation-list-plugin-navt/

    Very good
    {{ DiscussionBoard.errors[2061236].message }}

Trending Topics