Title: Need Help Setting Up single.php
Last modified: August 20, 2016

---

# Need Help Setting Up single.php

 *  [Andrew](https://wordpress.org/support/users/ndrwglrzayahoocom/)
 * (@ndrwglrzayahoocom)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/need-help-setting-up-singlephp/)
 * Hello.
 * single.php is the file for what is shown when a permalink is clicked?
 * Can anyone help me set up my single.php file?
 * When I click a permalink for a post, all the posts show. Pretty much the same
   as index.php but with the URL of the post.
 * Here is my single.php code:
 *     ```
       <?php
   
       get_header(); ?>
   
       <div id="Wrapper">
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   
       <?php the_content(); ?>
   
       <?php comments_template(); ?>
   
       <?php endwhile; else: ?>
   
       <p><?php _e( 'Sorry, no posts matched your criteria.', 'PreviouslyLostLamp' ); ?></p>
   
       <?php endif; ?>
   
       </div>
   
       <?php get_footer(); ?>
       ```
   
 * The URl to the web page is [http://www.LoveSpelles.com](http://www.LoveSpelles.com)
 * Please help.
 * Thank you,
 * Andrew

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

 *  [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/need-help-setting-up-singlephp/#post-2440990)
 * Looks to me that you are going about the template in the wrong direction. I took
   a look at the source code and the html structure is not how it show be. Are you
   using css to move the div with the featured image over to look like it is in 
   the right side?
 * You are correct about the single.php being what is used to display a single post.
   The following is taken straight from another template but it will get you in 
   the right direction in that department.
 * _[code moderated - please use the [pastebin ](http://pastebin.com/)for any code
   longer than 10 lines - see [forum rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code)]_
 *  Thread Starter [Andrew](https://wordpress.org/support/users/ndrwglrzayahoocom/)
 * (@ndrwglrzayahoocom)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/need-help-setting-up-singlephp/#post-2441038)
 * Yeah, I use CSS to move the image over.
 * Also, the code was blocked. Can you repost it please?
 * Thank you,
 * Andrew

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

The topic ‘Need Help Setting Up single.php’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Andrew](https://wordpress.org/support/users/ndrwglrzayahoocom/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/need-help-setting-up-singlephp/#post-2441038)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
