How do I limit the number of tags shown using the code below, without having to add $count=0;
or if ($count <=
to the query, but only for the home page, and a different number for each set of post?
<?php the_tags('','','');?>
I don't want to add the count option because my post loop is set up with that option and adding that to the tags query only throws my post off.
here is the query i use for my post.
<?php if (have_posts()) :
$count = 0;
while (have_posts()) : the_post();
$count++;
if ($count == 1) : ?> <!--first box -->
<div class="style-1"><?php the_content(); ?>
<?php elseif ($count > 1 && $count <5) : ?></div> <!--next three boxes -->
<div class="style-2"><?php the_content(); ?></div>
<?php elseif ($count == 5) : ?> <!-- box five and break div -->
<div class="style-2"><?php the_content(); ?></div>
<div class="first-break-div"><?php /* the content from first break div */ ?> </div>
<?php elseif ($count >5 && $count < 11) : ?> <!--next five boxes -->
<div class="style-3"><?php the_content(); ?></div>
<?php elseif ($count == 12) : ?> <!--last box and last break div -->
<div class="style-3"><?php the_content(); ?></div>
<div class="last-break-div"><?php /* the content from last break div */ ?> </div>
<?php endif;
endwhile;
endif; ?>`
the_tags()
coming in as this displays the tags attached to a post. your code and what you ask does not make sense