Home › Forums › Back End › Simple php problem › Re: Simple php problem
January 21, 2011 at 3:39 am
#64956
Member
Try this. You can just say if is_page then the page number. So basically you are only showing the submenu on certain pages. The last else statement just puts your main menu on all other pages.
wp_list_pages('title_li=&include=5,7,11,20&depth=-1');
} elseif (is_page(/*either page number or page slug name*/) ) {
wp_list_pages('title_li=&include=25&depth=-1');
} else {
wp_list_pages('title_li=&include=32,145&depth=-1&sort_column=ID');
} ?>