Quick question for you guys: on the home page of my WordPress site I want to have a block with some tabs across the top, and each tab displays a different post, queried by a particular tag. I want the tab names to echo the category that that post is in. I'm kind of close, but not quite as it's not really working. Can anyone see what I'm doing wrong?
<div class="tabber">
<?php
$i = 1;
while($i < 5) {
?>
<div class="tabbertab">
<h2><?php $featcat = the_category('tabber_'.$i); echo $featcat; ?></h2>
<?php query_posts('tag=home'); ?>
<?php while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php the_content(); ?>
<?php endwhile; ?>
<div class="clear"></div>
</div>
<?php
$i++;
}
?>
</div>
Thanks so much!!