I'm trying to put 4 news with pictures 3 small and one large, have gotten displaying them but the "large" is repeated with the last "small"
<?php
$b=1;
$args = array(
'tax_query' => array(
array(
'taxonomy' => 'gens',
'field' => 'slug',
'terms' => 'newsgen'
)
),
'post_type'=>'', //add your post type name
'posts_per_page' => 4,
'orderby' => 'asc',
);
query_posts($args);
while ( have_posts() ) : the_post();
?>
<?php
if($b%4==1 && $b==1) : ?>
<div id="news-big">
<?php
$image_url = catch_that_image();
$image = thumb($image_url, 209, 97);
?>
<a href="<?php the_permalink(); ?>">
<img src="<?php echo $image['url']; ?>"/></a>
</div>
<?php endif; ?>
<a href="<?php the_permalink(); ?>"><div class="news-small">
<div class="container-small">
<?php
$image_url = catch_that_image();
$image = thumb($image_url, 136, 75);
?>
<a href="<?php the_permalink(); ?>">
<img src="<?php echo $image['url']; ?>"/></a>
</div>
<!-- End Thumb Container -->
<?php
$b++;
endwhile;
wp_reset_query();
?>