Title: Need help with single.php
Last modified: August 19, 2016

---

# Need help with single.php

 *  [chmura](https://wordpress.org/support/users/chmura/)
 * (@chmura)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/need-help-with-singlephp/)
 * For some reason when I click on a post and I’m not logged in, the page gets screwed
   up. But when logged in, it’s all fine.
    Please I need some help fixing this issue
   example [http://www.facethemusik.net/2008/03/05/new-theme/](http://www.facethemusik.net/2008/03/05/new-theme/)
 *     ```
       <?php get_header(); ?>
       <div id="text">
       	<?php if (have_posts()) : ?>
       	<?php while (have_posts()) : the_post(); ?>
       	<div class="post" id="post-<?php the_ID(); ?>">
       	<div class="posttop"><div class="postdate"><div class="dateday"><?php the_time('d') ?></div><div class="datemonth"><?php the_time('M') ?></div><div class="dateyear"><?php the_time('Y') ?></div></div>
           <div class="pub"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
         	<div class="postedby">posted by <span class="authora"><?php the_author() ?></span></div><div class="fileunder">file under <?php the_category(', ') ?></div> <div class="editbutton"><?php edit_post_link('Edit'); ?></div></div>
           <div class="cleaner"></div>
           </div>
   
       	<?php the_content('Read the rest of this entry &raquo;'); ?>
       </div>
       	<?php endwhile; ?>
       <div id="nav">
       <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
       <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
       </div>
       <?php comments_template(); ?>
       	<?php else : ?>
       		<h2>Not Found</h2>
       		<p>Sorry, but you are looking for something that isn't here.</p>
   
       <?php endif; ?>
       </div>
       <?php get_sidebar(); ?>
       <?php get_footer(); ?>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/need-help-with-singlephp/#post-707907)
 * [http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.facethemusik.net%2F2008%2F03%2F05%2Fnew-theme%2F](http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.facethemusik.net%2F2008%2F03%2F05%2Fnew-theme%2F)
 *  Thread Starter [chmura](https://wordpress.org/support/users/chmura/)
 * (@chmura)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/need-help-with-singlephp/#post-707915)
 * Thanks moshu, but I’m not sure what to do with this.
    I tried doing some editing
   from the info that validator gave me, but only received more errors. Any help
   would be greatly appreciated
 *  Thread Starter [chmura](https://wordpress.org/support/users/chmura/)
 * (@chmura)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/need-help-with-singlephp/#post-707938)
 * Got it working, all I had to do is close a div tag in footer.php and single.php
   =]

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Need help with single.php’ is closed to new replies.

## Tags

 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * 3 replies
 * 2 participants
 * Last reply from: [chmura](https://wordpress.org/support/users/chmura/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/need-help-with-singlephp/#post-707938)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
