menu-bar not working anymore
-
Hello,
since I upgraded to WordPress 2.1.3 my menu-bar stopped working and is showing online the link to the main page. Other created pages such as “about” are not displaying in the menu-bar as you can see here .
Usually there were 4 menu-links [BLOG|CONTACT|CREDITS|ABOUT] but now all I see is [BLOG] .
I didn’t change anything , except the upgrade from 2.0.5 to 2.1.3 and today I tried to fix the problem by upgrading to 2.2.
Now I’m stuck with this broken menu and have no clue how to solve this problem. I did a search on the forum but couldn’t find any solution.Any suggestions how to fix this?
The code at that point looks like this `<div id=”navigation”>
<form action=”/index.php” method=”get” style=”background-image:url(/img/searchbkg.jpg); background-repeat:no-repeat;background-position:top left;”>
<fieldset>
<input value=”<?php echo wp_specialchars($s, 1); ?>” name=”s” id=”s” />
<input type=”submit” value=”find” id=”searchbutton” name=”searchbutton” />
</fieldset>
</form>
<!–started here–>-
<li<?php if (is_home()) echo ” class=\”selected\””; ?>>“>Blog
<?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 == “about_short”) {/*ignore*/}
elseif ($page_id == “75”) { /* ignore */ }else {
(is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
echo “<li”.$selected.”>$page_title\n”;
}
}
}
?><!– stopped here–>
</div><!– /navigation –>`As I already mentioned, it worked perfectly and I’ve never changed anything in the code.
Thank you in advance.
modelsblog
- The topic ‘menu-bar not working anymore’ is closed to new replies.