?
Solved

Wordpress exclude current page from menu

Posted on 2011-03-16
3
Medium Priority
?
451 Views
Last Modified: 2012-05-11
In wordpress I am using the below code to print the relevant menu:

<?php wp_nav_menu( array('menu' => 'Services' )); ?>

How can I make the menu to exclude my current page?
0
Comment
Question by:petewinter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 1000 total points
ID: 35147525
0
 
LVL 5

Assisted Solution

by:meb_santoso
meb_santoso earned 1000 total points
ID: 35160653
check my answer on this post : http://www.experts-exchange.com/Web_Development/Blogs/WordPress/Q_26889247.html

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

 menu
click on it, then you will get something like this on the right hand side:

menu2
-. 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)
0
 

Author Closing Comment

by:petewinter
ID: 35180802
Many thanks
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

752 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