Solved

Wordpress exclude current page from menu

Posted on 2011-03-16
3
436 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
3 Comments
 
LVL 27

Accepted Solution

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

Assisted Solution

by:meb_santoso
meb_santoso earned 250 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now