Title: missing code in single.php file
Last modified: September 1, 2016

---

# missing code in single.php file

 *  Resolved [dcm523](https://wordpress.org/support/users/dcm523/)
 * (@dcm523)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/missing-code-in-singlephp-file/)
 * I went ot update the single.php file to add the author script, but the code I
   found didnt’ work so I went to remove it an accidentally removed part of the 
   original code for this page. Now the page content doesn’t load and I’m not sure
   what part of the code is missing. Here is what my php file looks like now. help!!
 * <?php
    /** * The Template for displaying all single posts. * * [@package](https://wordpress.org/support/users/package/)
   Sela */
 * get_header(); ?>
 *  <div id=”primary” class=”content-area”>
    <main id=”main” class=”site-main” role
   =”main”>
 *  <?php while ( have_posts() ) : the_post(); ?>
 *  <?php if( ‘jetpack-testimonial’ === get_post_type() ): ?>
 *  <?php get_template_part( ‘content’, ‘testimonial’ ); ?>
 *  <?php else: ?>
 *  <?php sela_post_nav(); ?>
 *  <?php
    // If comments are open or we have at least one comment, load up the 
   comment template if ( comments_open() || ‘0’ != get_comments_number() ) { comments_template();}?
   >
 *  <?php endif; ?>
 *  <?php endwhile; // end of the loop. ?>
 *  </main><!– #main –>
    </div><!– #primary –>
 * <?php get_sidebar(); ?>
    <?php get_footer(); ?>

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/missing-code-in-singlephp-file/#post-7666802)
 * [https://themes.svn.wordpress.org/sela/1.0.9/single.php](https://themes.svn.wordpress.org/sela/1.0.9/single.php)
 *  Thread Starter [dcm523](https://wordpress.org/support/users/dcm523/)
 * (@dcm523)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/missing-code-in-singlephp-file/#post-7666803)
 * You’re a lifesaver! Thank you.

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

The topic ‘missing code in single.php file’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [dcm523](https://wordpress.org/support/users/dcm523/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/missing-code-in-singlephp-file/#post-7666803)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
