Sidebar on Front Page Disappeared
-
Hi all. Help is appreciated. Yesterday the sidebar disappeared from the front page of http://themommygoround.womansblogs.org/, a sub site in a network. Here’s what I did yesterday:
1) Upgraded to WP 3.3
2) Updated all plugins
3) Installed Google Analytics for WP plugin, elected the default snippet insert into header and I selected track outbound click/event tracking.When I fire bug this page, I see no sidebar call at all, as I do on the other pages. Yet, my index.php file DOES have the sidebar call. See below. This is incredibly confusing.
<?php get_header(); ?> <div class="gallery"> <img src="http://themommygoround.womansblogs.org/files/2011/08/womans-banner1.jpg" alt="image description" > <!--- EDIT HERE ---> <!--<div class="text"> <?php $author = get_the_author_meta('ID') ?> <strong class="author"><a href="<?php get_author_link(true, $author) ?>"><?php the_author() ?></a></strong> <em class="character"><?php the_author_description() ?></em> <b>Latest Post:</b> <?php $r = new WP_Query(array('posts_per_page' => 1, 'author' => $author, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true)); ?> <?php if ($r->have_posts()) : ?> <?php while ($r->have_posts()) : $r->the_post(); ?> <strong class="heading"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></strong> <?php endwhile; ?> <?php else : ?> <strong class="heading">Not Found. Sorry, but you are looking for something that isn't here.</strong> <?php endif; ?> <?php wp_reset_postdata()?> </div>--> <!---<div class="corner tl"></div> <div class="corner tr"></div> <div class="corner bl"></div> <div class="corner br"></div> <a href="#" class="btn left">left</a> <a href="#" class="btn right">left</a>---> </div> <div class="twocolumns"> <div id="content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post"> <h2><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h2> <div class="avatar-block"> <?php echo get_avatar( get_the_author_meta('ID'), '80'); ?> </div> <div class="info"> <span class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>Posted by: <strong class="author"><a href="#"><?php the_author(); ?></a></strong> on <em class="date"><?php the_time('M d, Y') ?></em> in <strong class="category"><?php the_category(', ') ?></strong> </div> <div class="content"> <?php if(has_post_thumbnail()):?> <?php $align = get_post_meta($post->ID, 'Image position class', true) ?> <?php if(empty($align) || ($align != 'left' && $align != 'right')) $align = 'right' ?> <div class="visual align<?php print $align ?>"><?php the_post_thumbnail('post-thumbnail') ?></div> <?php endif; ?> <?php if(has_excerpt()) the_excerpt(); else the_content(''); ?> <div class="link-holder"> <a href="<?php the_permalink() ?>">Continue Reading...</a> </div> </div> </div> <?php endwhile; ?> <div class="paging-holder"> <div class="w1"> <div class="w2"> <?php if(function_exists('wp_pagenavi')) custom_wp_pagenavi()?> </div> </div> </div> <?php else: ?> <div class="post"> <h2>Not Found</h2> <div class="content"> <p>Sorry, but you are looking for something that isn't here.</p> </div> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
-
And, for comparison, here is the code on the page.php file. The sidebar is appearing correctly on other pages.
<?php get_header(); ?> <div class="twocolumns"> <div id="content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="title"> <h2><?php the_title(); ?></h2> </div> <div class="content"> <?php the_content(); ?> </div> </div> <?php endwhile; ?> <?php else : ?> <div class="post"> <div class="title"> <h2>Not Found</h2> </div> <div class="content"> <p>Sorry, but you are looking for something that isn't here.</p> </div> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
The topic ‘Sidebar on Front Page Disappeared’ is closed to new replies.