Cannot exclude page from menu
I'm currently working on my new website using a theme for wordpress
I have hit a small snag and need a little help. I wish to exclude one page from the menu bar at the top but cannot figure out the code
(I have tried the exclude pages from navigation plugin made By Simon Wheatley to no avail)
The code for the nav bar is as follows
<div id="nav">
<?php function get_the_pa_ges() {
global $wpdb;
if ( ! $these_pages = wp_cache_get('these_pages', 'pages') ) {
$these_pages = $wpdb->get_results('select ID, post_title from '. $wpdb->posts .' where post_status = "publish" and post_type = "page" order by ID');
}
return $these_pages;
}
function list_all_pages(){
$all_pages = get_the_pa_ges ();
foreach ($all_pages as $thats_all){
$the_page_id = $thats_all->ID;
if (is_page($the_page_id)) {
$addclass = ' class="current_page"';
} else {
$addclass = '';
}
$output .= '<li' . $addclass . '><a href="'.get_permalink($thats_all->ID).'" title="'.$thats_all->post_title.'"><span>'.$thats_all->post_title.'</span></a></li>';
}
return $output;
}
?>
<ul>
<?php
if (is_home()) {
$addclass = ' class="current_page"';
} else {
$addclass = '';
}
echo list_all_pages();?>
</ul>
<div class="cleared"></div>
</div> <!-- Closes Nav -->
How would you go about excluding a single page from the nav-bar?
Thanks
-
SmartWeb -
Thanks
SignatureSmart Web Solutions{{ DiscussionBoard.errors[2669376].message }} -
-
HenrikPoulsen -
Thanks - 2 replies
{{ DiscussionBoard.errors[2669916].message }}-
Big Squid -
Thanks - 1 reply
{{ DiscussionBoard.errors[2670138].message }}-
HenrikPoulsen -
Thanks
{{ DiscussionBoard.errors[2670163].message }} -
-
-
SmartWeb -
Thanks
SignatureSmart Web Solutions{{ DiscussionBoard.errors[2670867].message }} -
-