I managed to solve it :-))
<?php
get_header();
?>
<tr>
<?php
$counter = 1;
if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts);
if ($counter<=3)
{
?>
<td>
<h2 id=”post-<?php the_ID(); ?>”>” rel=”bookmark”><?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’); ?> by <?php the_author(); ?></small>
<div class=’entry’>
<?php the_content(‘Read the rest of this entry »’); ?>
</div>
<p class=’postmetadata’>
Posted in <?php the_category(‘, ‘); ?>
|
<?php edit_post_link(‘Edit’,”,’|‘);?>
<?php comments_popup_link(‘No Comments ??’, ‘1 Comment ??’, ‘% Comments ??’);?>
<!–
<?php trackback_rdf();?>
–>
</td>
<?php
$counter++;
}
else // Counter ist 4
{
?>
</tr><tr>
<?php
$counter=1;
}
endwhile;
if($counter=4)
{
?>
</td><td class=”col1″> </td><td class=”col2″> </td><td class=”col3″> </td></tr>
<?php
}
elseif($counter=3)
{
?>
</td><td class=”col3″> </td></tr>
<?php
}
elseif($counter=2)
{
?>
</td><td class=”col2″> </td><td class=”col3″> </td></tr>
<?php
}
else // counter=1
{
?>
</td></tr>
<?php
}
else :// falls keine Posts da sind
{
?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?></td><td> </td><td> </td></tr>
<?php
}
endif;
?>
<?php get_footer(); ?>