You can check whether the count is odd or even.
I'm just not sure if I'm inserting in the correct place ...
Is this closer?
PHP Code:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
if (in_category('362')) { ?>
<article id="article-articles" class="drop-shadow curved curved-hz-1">
<header class="inspir-header">
<div class="inspir-title">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
</div> <!--inspir-title-->
<div class="inspir-date">
<?php the_time('j F, y') ?>
</div> <!--inspir-date-->
<div style="clear: both;"></div>
</header> <!--inspir-header-->
<footer class="inspir-footer">
<div class="inspir-cat">
by <?php the_author(); ?>
</div> <!--inspir-cat-->
<div class="inspir-tags">
<p><?php the_excerpt(); ?></p>
</div> <!--inspir-tags-->
<a href="<?php echo get_permalink(); ?>">read more..</a>
<div style="clear: both;"></div>
</footer> <!--inspir-footer-->
</article> <!--article-inspir-->
<div style="clear:both;"></div>
<?php
}
else {
// check if the post_count is even or odd.
// it will do the clear both if the count is odd ...
if($wp_query->post_count & 1){
echo '<div style="clear:both;"></div>';
}
?>
<article class="article-inspir drop-shadow curved curved-hz-1">
<?php the_content(); ?>
<header class="inspir-header">
<div class="inspir-title">
<h1><?php the_title(); ?></h1>
</div> <!--inspir-title-->
<div class="inspir-date">
<?php the_time('j F, y') ?>
</div> <!--inspir-date-->
<div style="clear: both;"></div>
</header> <!--inspir-header-->
<footer class="inspir-footer">
<div class="inspir-cat">
<?php the_category(', ') ?>
</div> <!--inspir-cat-->
<div class="inspir-tags">
<?php the_tags('<span>','</span><span>','</span>'); ?>
</div> <!--inspir-tags-->
</footer> <!--inspir-footer-->
<div class="inspir-comments">
</div><!--inspir-comments-->
</article> <!--article-inspir-->
<?php }
?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
.