Why are some single posts only showing header?
-
On this URL
This shows up on all themes
If you click the title of the first post (Blog design…) or several others – it brings you to a page with just the header… some are like this others are not – here’s the code…
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN"> <head> <?php get_header(); ?> </head> <body> <div class="main"> <div class="container"> <?php include (TEMPLATEPATH . "/head.php"); ?> <div class="content span-24"> <div class="posts span-18 last"> <?php include (TEMPLATEPATH . "/banner.php"); ?> <div class="paddings"> <ul class="items"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <li> <h2> <?php if (is_home()) { ?> <a href="<?php the_permalink() ?>" title="<?php _e('Permanent Link to', 'default'); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a> <?php } else { ?> <?php the_title(); ?> <?php } ?> </h2> <div class="info"> <span class="date"><?php _e('Posted on', 'default'); ?> <?php the_time('F jS, Y') ?></span> <span class="author"><?php the_author() ?></span> <span class="comment"> <a href="<?php comments_link(); ?>"><?php comments_number( __( 'No comments', 'default' ), __( '1 comment', 'default' ), __( '% comments', 'default' ), __( 'comments', 'default' )); ?></a> </span> </div> <?php if (is_home()) { ?> <?php the_excerpt(); ?> <div class="clear"></div> <?php } else { ?> <?php the_content(); ?> <div class="clear"></div> <?php } ?> <div class="info"> <?php if (is_home() || is_single()) { ?> <span class="cat block"><?php the_category(', ') ?></span> <?php the_tags('<span class="tag block">', ', ', '</span>'); ?> <?php } ?> <?php edit_post_link(__('Edit', 'default'), '<span class="edit block">', '</span>'); ?> </div> </li> <?php endwhile; ?> <?php else : ?> <li> <?php include (TEMPLATEPATH . "/missing.php"); ?> </li> <?php endif; ?> <li> <div class="navigation"> <div class="fl"><?php next_posts_link(__('« Older Entries', 'default')) ?></div> <div class="fr"><?php previous_posts_link(__('Newer Entries »', 'default')) ?></div> <div class="clear"></div> </div> </li> </ul> </div> </div> <?php get_sidebar(); ?> </div> <div class="clear"></div> <?php include (TEMPLATEPATH . "/footer.php"); ?> </div> </div> </body> </html>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Why are some single posts only showing header?’ is closed to new replies.