http://www.thebreadcrumbtrail.org/archives/560
Hi all,
you can see in the above post that my nav bar is missing. Yet if you go to my big-blogs page (1 level up), or home page (2 levels up) it displays fine. I don't understand it because all three pages call out the header, which is the same.
Please can someone help. I've had this problem for months now. I've got a feeling it's soemthing to do with my permalinks but not sure.
Thanks in advance
Here is the source code for my archives page:
<?php
/*
Template Name: archive
*/
?>
<?php get_header(); ?>
<!-- container start -->
<div id="container">
<?php get_sidebar(); ?>
<!-- content start -->
<div id="content">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="post_top_frame"></div>
<div class="post">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="postmetadata">Posted in <?php the_category(', ') ?></div>
<div class="post_date">
<?php the_time('d') ?>
<?php the_time('M') ?>
</div>
<div class="entry"><?php the_excerpt(); ?></div>
<div class="endline"></div>
<?php the_tags('<p class="tags">Tags: ', ', ', '</p>'); ?>
<div class="bookmark"><?php include(TEMPLATEPATH . '/bookmark.php'); ?></div>
<div class="read_comments"><a href="<?php comments_link(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/read_comments.gif" width="144" height="16" alt="read comments" /></a></div>
</div>
<div class="post_bottom_frame"></div>
<?php endwhile; ?>
<?php wp_pagenavi(); ?>
<?php else : ?>
<div class="notfound"><p>Content Not Found!</p><p>Please try again.</p></div>
<?php endif; ?>
<!-- Ad start -->
<div class="post_ads"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/468x60.gif" width="468" height="60" alt="ads" /></div>
<!-- Ad end -->
</div>
<!-- content end -->
<div class="endline"></div>
</div>
<!-- container end -->
<?php get_footer(); ?>
My Blogs page
<?php
/*
Template Name: index
*/
?>
<?php get_header(); ?>
<!-- container start -->
<div id="container">
<?php get_sidebar(); ?>
<!-- content start -->
<div id="content">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="post_top_frame"></div>
<div class="post">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="postmetadata">Posted in <?php the_category(', ') ?></div>
<div class="post_date">
<?php the_time('d') ?>
<?php the_time('M') ?>
</div>
<div class="entry"><?php the_content('[...]'); ?></div>
<div class="endline"></div>
<?php the_tags('<p class="tags">Tags: ', ', ', '</p>'); ?>
<div class="bookmark"><?php include(TEMPLATEPATH . '/bookmark.php'); ?></div>
<div class="read_comments"><a href="<?php comments_link(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/read_comments.gif" width="144" height="16" alt="read comments" /></a></div>
</div>
<div class="post_bottom_frame"></div>
<?php endwhile; ?>
<?php wp_pagenavi(); ?>
<?php else : ?>
<div class="notfound"><p>Content Not Found!</p><p>Please try again.</p></div>
<?php endif; ?>
</div>
<!-- content end -->
<div class="endline"></div>
</div>
<!-- container end -->
<?php get_footer(); ?>
and my header
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php if (is_single() and ('open' == $post-> comment_status) or ('comment' == $post-> comment_type) ) { ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/prototype.js.php"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/effects.js.php"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ajax_comments.js"></script> <?php } ?>
<?php wp_head(); ?>
</head>
<body>
<!-- warpper start -->
<div id="wrapper"><div id="bottom_frame"><div id="top_frame">
<!-- header start -->
<div id="header">
<div id="searchform"><?php include(TEMPLATEPATH . '/searchform.php'); ?></div>
<div id="rss"><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" width="38" height="40" alt="RSS" /></a></div>
<div id="navigation">
<div id="top_nav">
<ul>
<li><a href="<?php echo get_option('home'); ?>"><img alt="Home" border="0" src="./wp-content/themes/Breadcrumb trail/images/pngs/home.png" /></a></li>
<li><a href="/big-blogs"><img alt="Big Blogs" border="0" src="./wp-content/themes/Breadcrumb trail/images/pngs/Big Blogs.png" /></a></li>
<li><a href="/trails"><img alt="Trails" border="0" src="./wp-content/themes/Breadcrumb trail/images/pngs/Trails.png" /></a></li>
<li><a href="www.thebreadcrumbtrail.org/ese-travel"><img alt="ESE Travel" border="0" src="./wp-content/themes/Breadcrumb trail/images/pngs/ESE Travel.png" /></a></li>
<li><a href="www.thebreadcrumbtrail.org/gallery"><img alt="Gallery" border="0" src="./wp-content/themes/Breadcrumb trail/images/pngs/Gallery.png" /></a></li>
<li><a href="www.thebreadcrumbtrail.org/crumbs-about-us"><img alt="Crumbs About Us" border="0" src="./wp-content/themes/Breadcrumb trail/images/pngs/Crumbs About Us.png" /></a></li>
<li><a href="www.thebreadcrumbtrail.org/links"><img alt="Links" border="0" src="./wp-content/themes/Breadcrumb trail/images/pngs/Links.png" /></a></li>
</ul>
</div></div>
</div>
<!-- header end -->