Have an account? / Register

Forgot your password?

Forgot your username?

Results 1 to 9 of 9

Thread: Stop WordPress adding a page to navigation?

  1. #1
    Registered User ps2home's Avatar
    Join Date
    Jan 2007
    Posts
    319
    Thanks
    8
    Thanked 6 Times in 6 Posts

    Stop WordPress adding a page to navigation?



    I’m making a page on my Articles website for A4U forum members to get discount prices on my packages. The site is based on WordPress and when I add the page it's adding it to the navigation, and I don’t want other site visitors been able to find the page in the navigation! Does anyone know how I can use WordPress to not add this page to navigation?

    Thanks

  2. #2
    Registered User
    Join Date
    Feb 2010
    Posts
    289
    Thanks
    44
    Thanked 39 Times in 37 Posts

    Re: Stop WordPress adding a page to navigation?

    Find the ID number of the page

    (In the admin panel, click on pages and hover the mouse over the page title, the page ID number will appear in the status bar, not down the number.)

    Go to edit header.php, find where it lists pages and add "exclude=15&" (where 15 is the page ID),so you'll up with something like:

    <?php wp_list_pages('exclude=15&depth=1&title_li='); ?>

  3. The Following User Says Thank You to boxfish For This Useful Post:

    ps2home (23-12-10)

  4. #3
    Registered User ps2home's Avatar
    Join Date
    Jan 2007
    Posts
    319
    Thanks
    8
    Thanked 6 Times in 6 Posts

    Re: Stop WordPress adding a page to navigation?

    Thanks, but I cannot find this in header. Is there a plugin for this?

  5. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    77
    Thanks
    4
    Thanked 14 Times in 14 Posts

    Re: Stop WordPress adding a page to navigation?

    If your using WP 3.0 or above and depending on which theme you are using you can go to Appearance - Menus and create your own menu to which you can drag any pages you want and into which order.

    Then on the same page you should be able to select your newly created menu.

  6. #5
    Registered User ps2home's Avatar
    Join Date
    Jan 2007
    Posts
    319
    Thanks
    8
    Thanked 6 Times in 6 Posts

    Re: Stop WordPress adding a page to navigation?

    I have set the page to private, it seems to have worked? Can you see it ok? - Articles A4U offers

  7. #6
    Registered User
    Join Date
    Feb 2010
    Posts
    289
    Thanks
    44
    Thanked 39 Times in 37 Posts

    Re: Stop WordPress adding a page to navigation?

    Sorry, the page your requested could not be found, or no longer exists.

    Post up the header.php code and I'll see if it's easy enough to change if you want

  8. #7
    Registered User ps2home's Avatar
    Join Date
    Jan 2007
    Posts
    319
    Thanks
    8
    Thanked 6 Times in 6 Posts

    Re: Stop WordPress adding a page to navigation?

    Thanks for response, it dosent load?? Ok i will find the header code and post here.

  9. #8
    Experienced Newbie.... Steve2009's Avatar
    Join Date
    Feb 2009
    Location
    Hereford, UK
    Posts
    369
    Thanks
    71
    Thanked 6 Times in 6 Posts

    Re: Stop WordPress adding a page to navigation?

    Quote Originally Posted by Tricky1 View Post
    If your using WP 3.0 or above and depending on which theme you are using you can go to Appearance - Menus and create your own menu to which you can drag any pages you want and into which order.

    Then on the same page you should be able to select your newly created menu.
    Merry Xmas!!

    Yes the custom menu function rocks, it is a really good feature and you will acheive this within a few clicks..no messing with php files

    Steve

  10. #9
    Registered User
    Join Date
    Jan 2010
    Posts
    73
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Stop WordPress adding a page to navigation?

    If you're still stuck, there's a plugin which does exactly what you want. When adding a page you simply tick a box and it won't get included in the menu.

    From memory, I think it's called 'WP Exclude Pages'

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

SEO by vBSEO 3.6.1