Moderator
t-p
(@t-p)
Thanks but thats not what I want to do, in fact it’s the opposite, I want to exclude the menu from appearing on certain pages, not exclude pages from appearing in the menu!
in header.php file
make a if condition for example
if(is_page(21) || is_page(22) || is_page(23)){
//do nothing
}else{
//code for header menu
}
where 21,22 and 23 are post id,you can pass post_title or post_name
for more info follow this link
http://codex.wordpress.org/Function_Reference/is_page
I have tried this but can’t quite get it working, here’s my coding to load the menu.
<!– Begin Navigation –>
<?php f8_theme_nav(); ?>
I changed it to
if(is_page(home)){
//do nothing
}else{
//<?php f8_theme_nav(); ?>
}
but all this does is put
if(is_page(home)){ //do nothing }else{ // above the menu!
put this
<?php
if(is_page(home)){
/*do nothing*/
}else{
f8_theme_nav();
}
?>
in place of
<?php f8_theme_nav(); ?>
That seems to have had no effect at all!
try is_home()
instead of is_page(home)
is_page()
needs a Page ID, Page Title or Page Slug and home may be neither
Excellent that did it, thanks.
Been looking for hours for something like this.
THANKS guys, it works after a few mishaps (trial and error)
I am even less then a novice regarding php, but willing to learn.
At the moment I only need it for 1 page, but if I need more do I just do it like this..
if(is_page(21) || is_page(22) || is_page(23))
Thanks and regards, Ron