Dynadot โ€” .com Transfer

Wordpress theme not showing the pages I add

SpaceshipSpaceship
Watch

2Cunning

Established Member
Impact
13
Hi all,

I've recently been fiddling about with wordpress for the first time on my newly acquire domain www.FootballThoughts.co.uk and i've found a really good free theme that I am currently using.

One problem however, and that is for some reason when I add pages they are not added to the pages bit at the side or the black bar at the top. If i switch theme they are displayed so its something wrong in the code.

Here is the code for the menu at the top (black bar)

<div id="header">
<div id="topmenu">
<ul>
<li<?php if (is_home()) echo " class=\"selected\""; ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>
<?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."><a href=\"".get_page_link($page_id)."\">Archives</a></li>\n";
}
elseif($page_name == "about") {
(is_page($page_id))?$selected = ' class="selected"':$selected='';
echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">About</a></li>\n";
}
elseif ($page_name == "contact") {
(is_page($page_id))?$selected = ' class="selected"':$selected='';
echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Contact</a></li>\n";
}
elseif ($page_name == "about_short") {/*ignore*/}
else {
(is_page($page_id))?$selected = ' class="selected"':$selected='';
echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>\n";
}
}
}
?>
</ul>
</div>
______________________________

and here is the code for the pages bit on the right hand side


h3>Pages</h3>
<div class="boxlink">
<ul>
<li<?php if (is_home()) echo " class=\"selected\""; ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>
<?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."><a href=\"".get_page_link($page_id)."\">Archives</a></li>\n";
}
elseif($page_name == "about") {
(is_page($page_id))?$selected = ' class="selected"':$selected='';
echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">About</a></li>\n";
}
elseif ($page_name == "contact") {
(is_page($page_id))?$selected = ' class="selected"':$selected='';
echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Contact</a></li>\n";
}
elseif ($page_name == "about_short") {/*ignore*/}
else {
(is_page($page_id))?$selected = ' class="selected"':$selected='';
echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>\n";
}
}
}
?>
</ul>
</div>

__________________________

This is doing me crazy - can't figure it out, if anyone could please help me you'd be gladly rewarded with rep

Thanks a lot

2C x
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
1
•••
Thanks Danltn, I'll have a fiddle around with that

Rep added :)

2C

Hm.. I've mucked about with it on a draft website eerz.com and it's screwed up a bit, would be really helpful if someone can help me with this!

Thanks,

2C
 
0
•••
The Wordpress forum site offers help from experts of the software. Try to post this problem in wordpress.org.
 
0
•••
for the top menu

Code:
<div id="topmenu">
<ul>
<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>">Home<?php echo $langblog;?></a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
</div>

and following by css

Code:
#topmenu ul {blabla}
#topmenu li {blabla}
#topmenu ul li.current_page_item a {blabla}
#topmenu ul li.current_page_item a:hover{blabla}
#topmenu a {blabla}
#topmenu a:hover{blabla}

Details you should refer to http://codex.wordpress.org/Main_Page
 
1
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back