<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('posts_per_page=2&paged=' . $paged);
?>
<?php while (have_posts()) : the_post(); ?>
<div id="postbox">
<span class="title"><a href="<?php the_permalink() ?>" ><?php the_title(); ?></a></span><br>
<span class="infotop"><span class="space"><?php the_author(); ?></span> <span class="space"><?php the_time('j M Y') ?></span> <span class="space"><?php the_category(', '); ?></span></span>
<div class=" <?php
if ( in_category( 'category1' )) {
echo "category1class";
if ( in_category( 'category2' )) {
echo "category2class";
} else {
echo "generalcategoryclass";
}
?>
">
<?php the_content('Read More...'); ?>
</div>
<span class="postinfo">
<?php the_tags('', ', ', ''); ?> <span class="space"><?php comments_popup_link('No Comments', 'One Comment', '% Comments');?></span>
</span>
</div>
<?php endwhile; ?>