Well, I still want to have some up there, but not all of the pages, just the ones that are already up there. Here is the code:
<li<?php if (is_home()) echo ” class=\”selected\””; ?>>“>Home
<?php
$pages = BX_get_pages();
if ($pages) {
foreach ($pages as $page) {
$page_id = $page->ID;
$page_title = $page->post_title;
$page_name = $page->post_name;
if ($page_name == “archives”) {
(is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ‘ class=”selected”‘:$selected=”;
echo “<li”.$selected.”>Archives\n”;
}
elseif($page_name == “about”) {
(is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
echo “<li”.$selected.”>About\n”;
}
elseif ($page_name == “contact”) {
(is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
echo “<li”.$selected.”>Contact\n”;
}
elseif ($page_name == “about_short”) {/*ignore*/}
else {
(is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
echo ”
- $page_title
\n”;
}
}
}
?>
Now, it already has a condition for a page named about_short, to exclude it, but I would like to exclude some more, what kind of coding would I need to do that?