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?
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?
Try this suggestion.
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.
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/
Am I missing something here or couldn't the exlcude= parameter with the # wp_list_pages - template tag, wp_list_pages(), work?
Sorry, I don't have a clue what you're talking about Michael.
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
I'm using the Exclude Pages plugin which is working fine. No need to get my hands dirty with code. Thanks anyway.
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.
Thanks guys this was really helpful!
This topic has been closed to new replies.