• Resolved mikemayer66

    (@mikemayer66)


    When clicking on the “comment/no comment” link, my sidebar moves to underneath of my post, and I’ve been told it is due to missing </div> in my single.php file. I am still rather novice with coding and don’t want to make things any worse!

    If anyone can help, it would be greatly appreciated!

    Here is my site.

    Here is my single.php code:

    <?php get_header();?>
    <div id="content">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    
    	<div class="date">
        <?php the_time('d', '', ''); ?>
        <div>
        <?php the_time('M', '', ''); ?>
        </div>
        </div>
        <div class="title">
        <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
            by <?php the_author() ?>
        </div>
    <div class="clear"></div>
    <div class="entry">
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    <div class="postmetadata">
    				<?php the_tags('Tags: ', ', ', '<br />'); ?> <?php the_category(', ') ?>
                    <?php edit_post_link(' | ', '', 'Edit'); ?>
                    </div>
    
    				</div>
                    <?php comments_template(); // Get wp-comments.php template ?>
    
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Previous') ?></div>
    			<div class="alignright"><?php previous_posts_link('Next &raquo;') ?></div>
    		</div>
    
    	    <?php else : ?>
    	    <h1 class="center">Not Found</h1>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    </div>
    <?php get_sidebar();?>
    <?php get_footer ();?>

  • The topic ‘Apparently my single.php is missing a few </div> and I’m not sure how to fix it!’ is closed to new replies.