missing code in single.php 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 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(); ?>
- The topic ‘missing code in single.php file’ is closed to new replies.