Support » Fixing WordPress » Footer Include Problems with Theme Templates

  • Resolved lzinssmeister


    I have a custom theme I built awhile back for this site:
    Things were running smoothly until we upgraded to ver 3.4.1.

    At that point, the home page and the blog page both dropped the footer include for the template and in the case of the home page, also seems to have dropped the sidebar include.

    I’ve tried the master list of things to try and fix the issue. With no success.

    When I tried to swap to the ‘Twenty-Eleven’ theme I was having the same issue with the footer not being included. And can’t for the life of me figure out what that means πŸ™

    I also seem to be the only person having this issue… so it probably means I’m missing something obvious. (whomp whomp)

    Would anyone be willing to point me in the right direction??? πŸ˜€ πŸ˜€


Viewing 7 replies - 1 through 7 (of 7 total)
  • So… some additional information I’ve managed to figure out…
    It seems to have something to do with the blog post code. It also explains why my static pages are working just fine.

    Perhaps something changed on that with the upgrade that I missed?

    Gonna tackle the problem some more tomorrow. Still looking for any insights to this, if anyone has any πŸ˜€

    Code for one of the two problem templates is below:

     * Template Name: Home Page Template
     * Description: 2 column layout with right sidebar.
     * @package WordPress
     * @subpackage everafterevents
    get_header(); ?>
    		<div id="primary" class="standard">
    			<div id="content" role="main">
    				<?php the_post(); ?>
    				<?php get_template_part( 'content', 'page' ); ?>
    				<div id="latest_news">
    						<header class="entry-header">
    							<h1 class="entry-title">Latest News</h1>
    						<?php query_posts('showposts=1'); ?>
    						<?php while (have_posts()) : the_post(); ?>
    						<div class="post-date">
    							<span class="post-month"><?php the_time(M); ?></span>
    							<span class="post-day"><?php the_time(j); ?></span>
    						<div class="entry-content">
    						<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    						<?php the_content_limit(250); ?> <a href="<?php the_permalink() ?>">Read More…</a>
    						<?php endwhile;?>
    				</div><!-- #latest news -->
    			</div><!-- #content -->
    		</div><!-- #primary -->
    <?php get_sidebar('standard'); ?>
    <?php get_footer(); ?>

    <?php get_sidebar(‘standard’); ?>
    wy u put this

    check footer page
    give code

    It’s been awhile since I put this together, but I believe the <?php get_sidebar(‘standard’); ?> should be pulling a secondary sidebar that’s different than the one being defined in sidebar.php.

    footer.php is below:

     * @package WordPress
     * @subpackage everafterevents
    	</div><!-- #main -->
    	<div class="clear"></div>
    	</div><!-- #wrap -->
    	<footer id="colophon" role="contentinfo">
    			<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    			<p>Β© Ever After Events. All Rights Reserved. | phone: <a href="#">720.722.0414</a> | <a href="#"></a></p>
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    <?php wp_footer(); ?>

    check page view source code u have start one style and not close that style first close that style

    u get the result check


    ah-ha! So it turns out that that’s part of the NextGen Gallery plugin I was using. So it looks like something is broken there. Thanks for the help mukesh panchal! πŸ˜€

    u solve problem

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Footer Include Problems with Theme Templates’ is closed to new replies.