Solved

WP Page -- Don't want it to appear in nav

Posted on 2011-03-15
7
268 Views
Last Modified: 2012-05-11
Hi all. I have a freestanding page on my WP site that needs to be editable, yet I don't want it to appear as a link in the nav. Do I make it a post instead of a page?I have a blog within my site and I don't want this page/post to appear there. It's just a freestanding one-of-a-kind page.
0
Comment
Question by:tekgrl
  • 4
  • 3
7 Comments
 
LVL 5

Expert Comment

by:meb_santoso
ID: 35142647
-. take a note of your page's ID

After you’ve logged into your WordPress dashboard, Go to Manage > Pages and from the list of Pages hover over the Page title you want to find the ID of. Every time you hover over, your browser’s status bar will show you a URL ending with a number like this.

http://www.xyz.com/wp-admin/page.php?action=edit&post=6

Open in new window

The number with which the URL ends is the Page ID (6 in this case).

-. edit your active theme
-. find the following function
<ul>
  <?php wp_list_pages(); ?>
</ul>

Open in new window

-. change it to :
<ul>
  <?php wp_list_pages('exclude=6' ); ?>
</ul>

Open in new window

-. save and upload the .php file that you have edited (if you editing it locally)
0
 

Author Comment

by:tekgrl
ID: 35142765
I couldn't find that code in my theme. I think this is the code that creates my nav (it's from header.php), but I'm not sure how to edit it.
<div id="access" role="navigation">
			  <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
				<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
			</div><!-- #access -->

Open in new window

0
 
LVL 5

Accepted Solution

by:
meb_santoso earned 500 total points
ID: 35142841
Oh, this is a whole other scenario.

Check in your theme option (left hand side, under Appearances) the link MENU like this one :

 menus

click on it, then you will get something like this on the right hand side:
-. make a new menu
-. tick on the pages that you WANT to appear (in this case I left out the FAQ)
-. click Add to Menu

and there you have it, a menu lefting out specific page(s)

menus2
0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 

Author Comment

by:tekgrl
ID: 35143236
That's it. Thanks!
0
 

Author Comment

by:tekgrl
ID: 35143250
Not sure why it's saying this. I want to award 500 points to meb_santoso
0
 
LVL 5

Expert Comment

by:meb_santoso
ID: 35143252
euh... your welcome?

but i think it's customary to give the points to somebody else's comment as solution and not  to your own comment ?

Quote: "Notice: tekgrl has requested that this question be closed by accepting tekgrl's comment #35143236 (0 points) as the solution for the following reason: Beautiful!"
0
 
LVL 5

Expert Comment

by:meb_santoso
ID: 35143260
nevermind my comment #35143252 :-)

glad I can help.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to install BuddyPress on your self-hosted WordPress site It’s been called everything from “social networking in a box” to “Facebook without the terms of service,” but until Feb. 16, BuddyPress was a relatively unknown outside the WordPress MU…
Wordpress Horizontal Drop-Down Menu In this tutorial I will show you had to add a WordPress horizontal navigation menu to your theme. I have searched and searched for a good tutorial on creating a WordPress nav menu without adding a plug-in or us…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question