wordpress footer.php将不会出现在single.php中

wordpress footer.php将不会出现在single.php中,php,html,wordpress,Php,Html,Wordpress,我的footer.php文件将进入除single.php之外的每个页面,我不知道为什么会发生这种情况!有什么想法吗 下面是Single.php代码 <?php get_header(); ?> <div class="page-content"> <div class="small-banner"> <h1><?php the_title(); ?></h1>

我的footer.php文件将进入除single.php之外的每个页面,我不知道为什么会发生这种情况!有什么想法吗

下面是Single.php代码

<?php get_header(); ?>

    <div class="page-content">
        <div class="small-banner">
            <h1><?php the_title(); ?></h1>
            <img src="http://www.quorngrangehotel.local/wp-content/uploads/2017/04/new-events-banner.jpg">
        </div>

<main role="main" class="mainContent">

        <div id="inner-content" class="row">

            <main id="main" class="large-8 medium-8 columns" role="main">

                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

                    <?php get_template_part( 'parts/loop', 'single' ); ?>

                <?php endwhile; else : ?>

                    <?php get_template_part( 'parts/content', 'missing' ); ?>

                <?php endif; ?>                     

            </main> <!-- end #main -->

        </div> <!-- end #inner-content -->

</main><!-- end #content -->

<?php get_footer(); ?>


我发现了这个问题,它与通过单一模板部分拉入的注释部分有关

从浏览器查看时,如果检查页面会发生什么情况?它在哪里结束/发生?我发现问题在于评论部分通过单一模板部分拉入!这可能是对原始问题的一个评论。这也是一个评论,但我正在将其从我的未回答列表中删除。然后给出更详细的答案可能是明智的。