My god that is some
BUTT UGLY code...
Please for the love of god format your code in a readable fashion...
Try this:
This is assuming this code is within a function, since you are declaring a global variable...
PHP Code:
<?php
get_header();
$counter = 1;
global $query_string;
query_posts($query_string.'&caller_get_posts=1&posts_per_page=9');
if(have_posts()){
while(have_posts()){
the_post();
if($counter == 1){ ?>
<div class="post_row">
<?php } ?>
<div class="post_class">
<a href="<?php the_permalink();?>">
<?php the_post_thumbnail('default-thumb')?>
</a>
<h2>
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h2>
<?php the_excerpt() ?>
</div>
<?php
if($counter == 4){ ?>
</div>
<?php
$counter = 0;
}
$counter++;
}
}
get_footer();
?>
If this doesn't work it's because your code is literally crap (sorry for being blunt). Please post every line of code that this is related to, including the parent function/class/whatever