Well put the complete template code in a pastebin and report the link back here and maybe someone can spot the problem.
<?php include ('header2.php'); ?>
<div id="container">
<div class="container_content">
<div class="featured_a">
<?php $featured_a = new WP_Query();
$featured_a->query('cat=10&showposts=1');
?>
<?php if(have_posts()) : ?><?php while($featured_a->have_posts()) : $featured_a->the_post(); ?>
<div class="post_featured" id="post-<?php the_ID(); ?>">
<?php $image = get_post_meta($post->ID, 'featured_image', true); ?>
<a href="<?php the_permalink() ?>"><img src="<?php echo $image; ?>" alt="<?php the_title(); ?>" /></a>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="post_featured">
<?php _e('Not Found'); ?>
</div>
<?php endif; ?>
</div>
<div class="featured_b">
<?php $featured_b = new WP_Query();
$featured_b->query('cat=10&showposts=1&offset=1');
?>
<?php if(have_posts()) : ?><?php while($featured_b->have_posts()) : $featured_b->the_post(); ?>
<div class="post_featured" id="post-<?php the_ID(); ?>">
<?php $image = get_post_meta($post->ID, 'featured_image', true); ?>
<a href="<?php the_permalink() ?>"><img src="<?php echo $image; ?>" alt="<?php the_title(); ?>" /></a>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="post_featured">
<?php _e('Not Found'); ?>
</div>
<?php endif; ?>
</div>
<div class="featured_c">
<?php $featured_c = new WP_Query();
$featured_c->query('cat=10&showposts=1&offset=2');
?>
<?php if(have_posts()) : ?><?php while($featured_c->have_posts()) : $featured_c->the_post(); ?>
<div class="post_featured" id="post-<?php the_ID(); ?>">
<?php $image = get_post_meta($post->ID, 'featured_image', true); ?>
<a href="<?php the_permalink() ?>"><img src="<?php echo $image; ?>" alt="<?php the_title(); ?>" /></a>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="post_featured">
<?php _e('Not Found'); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<div class="push"></div>
</div>
<?php get_footer(); ?>
</body>
</html>
Any ideas?
(Happy Thanksgiving, everyone!)
Didn’t check everything, but at a quick glance shouldn’t something like this:
<?php if(have_posts()) : ?><?php while($featured_a->have_posts()
show be:
<?php if($featured_a->have_posts()) : ?><?php while($featured_a->have_posts()
So you would need to fix that for each of your loops.
Also note that get_header('2') will include header-2.php
And typically </body> and </html> are in the footer.php template.