WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to create page not visible in navigation menu (10 posts)

  1. Christiaan
    Member
    Posted 5 years ago #

    Hi, I want to create a page for our privacy statement but not have it show up in the main navigation menu. I only want to link it from a small link in our footer.

    If possible how do I do this?

  2. Hedley
    Member
    Posted 5 years ago #

    Try this suggestion.

  3. Ian
    Member
    Posted 5 years ago #

    I kind of asked the same question in the message board on the forum just a few minutes before you asked. No reply yet though. I had a look at the link from Hedley but it's not a specific post I'm trying to hide, it is a static page, which is set as the homepage.

    I have also found all the pages I've created show up on the navigation but all trying any link results in "Internal Server Error". The advice in link provided by Hedley cannot work without unless the page exists in the first place. At the moment it seems to be just a menubar navigation link.

  4. Christiaan
    Member
    Posted 5 years ago #

    Thanks Hedley. I just found this thread too, which suggests a couple of plugins that do the trick:
    http://wordpress.org/support/topic/220508

    Specifically:
    http://wordpress.org/extend/plugins/page-link-manager/
    http://wordpress.org/extend/plugins/exclude-pages/

  5. MichaelH
    Member
    Posted 5 years ago #

    Am I missing something here or couldn't the exlcude= parameter with the # wp_list_pages - template tag, wp_list_pages(), work?

  6. Christiaan
    Member
    Posted 5 years ago #

    Sorry, I don't have a clue what you're talking about Michael.

  7. SpankMarvin
    Member
    Posted 5 years ago #

    Michael's right. Presumably, your nav bar is using the wp_list_pages() function. Just add the parameter exclude=5 (if the page number was 5) to the list.

    For example

    <ul>
    <?php wp_list_pages('title_li=&exclude=5'); ?>
    </ul>

    John

  8. Christiaan
    Member
    Posted 5 years ago #

    I'm using the Exclude Pages plugin which is working fine. No need to get my hands dirty with code. Thanks anyway.

  9. micahmitc
    Member
    Posted 5 years ago #

    FYI to exclude multiple pages just separate by commas

    <?php wp_list_pages('title_li=&exclude=970,975,973,998,1080,1081'); ?>

    Newer versions of wordpress aren't as gay and have this built in so it's not a big deal but for working on old systems it's helpful to know.

  10. JSayHello
    Member
    Posted 4 years ago #

    Thanks guys this was really helpful!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.