Support » Fixing WordPress » footer isn't showing

  • Resolved joshparry73

    (@joshparry73)


    Can someone tell me why my footer isn’t displaying?

    I have the wp_footer at the end of my main index template-

    <?php get_header(); ?>
    
    <div class="primary<?php if (!is_singular()) echo ' posts'; ?>">
        <?php if (have_posts()) { ?>
    
            <?php if (is_singular()) { // Single entries and pages ?>
    
                <?php while (have_posts()) { the_post(); ?>
    
                    <div <?php post_class('entry'); ?>>
    
                        <div class="meta">
                            <?php the_title('<h1 class="title entry-title">', '</h1>'); ?>
    
                            <?php echo th_post_metadata(); ?>
                        </div>
    
                        <div class="content clearfix">
                            <?php echo tarski_post_thumbnail(); ?>
                            <?php the_content(); ?>
                        </div>
    
                        <?php th_postend(); ?>
    
                    </div> <!-- /entry -->
    
                <?php } // End entry loop ?>
    
            <?php } else { ?>
    
                <?php get_template_part('app/templates/loop'); ?>
    
            <?php } // End loop types ?>
    
        <?php } else { // If no posts ?>
    
            <?php get_template_part('app/templates/no_posts'); ?>
    
        <?php } // End loop ?>
    
        <?php if (is_singular() && !is_attachment()) comments_template(); ?>
    </div>
    
    <?php get_sidebar(); ?>
    <?php wp_footer(); ?>

    URL is http://gmdlegal.com/

Viewing 2 replies - 1 through 2 (of 2 total)
  • wp_footer() and wp-header() are action hooks that are found in the header.php and footer.php files.

    The header syntax is correct but here you need same as header and sidebar get_footer() and not wp_footer()

    Please mark this as resolved if it fixes the issue!

    HTH

    David

    Thread Starter joshparry73

    (@joshparry73)

    You rock! Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘footer isn't showing’ is closed to new replies.