Haha, she didn't say as to where to find the code to change, just provided the link. I think I found the piece of code, just now having problems figuring out where to insert the exclude code.
I have been adding it in different spots but it doesn't quite work (just mess's the tabs up). Some people have helped with coding on past things by viewing the source code so I didn't know if that could be done here as well.
Here's the bit of code that seems to mess up tabs when I play with it, if someone could place the exclude code to it in bold that would be helpful :P.
Exclude code:
<?php wp_list_pages('exclude=17,38' ); ?>
My code:
<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 . '>ID).'" title="'.$thats_all->post_title.'"><span>'.$thats_all->post_title.'</span>';
}
return $output;
}
?>
<?php
if (is_home()) {
$addclass = ' class="current_page"';
} else {
$addclass = '';
}
echo "<li" . $addclass . "><span>Home</span>";
echo list_all_pages();?>
<div class="cleared"></div>
</div> <!-- Closes Nav -->