footer loads on all pages, but single.php
-
I am using the same footer.php on my index and single pages, but for some reason, the footer is not loading on the single.php pages. I have checked my single.php code several times and I think I have closed all the tags properly. Not quite sure what I did wrong. Here is the code for single.php…
<?php get_header('single'); ?> <section class="single_work_content"> <?php query_posts($query_string . '&cat=-11'); ?> <?php // The Loop if (have_posts()): while(have_posts()): the_post(); ?> <div class="row"> <div class="single_breadcrumb large-12 column"> <h3><a href="https://localhost:8888/public_html/view-my-work/"><span class="left_arrow">?</span> All Projects</a> <span> | <?php foreach((get_the_category()) as $category) { echo $category->cat_name . ''; } ?> | </span> <?php the_title(); ?> </h3> </div> <!-- End single_breadcrumb --> </div> <!-- End row --> <?php the_content(); ?> <?php endwhile; endif; ?> <section class="other-posts"> <div class="prev_post"><span id="prev_post_btn" ></span><?php previous_post_link('%link');?></div> <div class="next_post"><span class="next_post_btn"></span><?php next_post_link('%link');?></div> </section> <!-- End oter-posts --> </section> <!-- End single_work_content --> <?php get_footer(); ?>
If anyone knows why this footer is not loading for single.php I would really appreciate the help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘footer loads on all pages, but single.php’ is closed to new replies.