<!-- FEATURED VENDORS -->
<?php
$args_featured = array(
'category__and'=>array(12,24),
'orderby' => title,
'order' => ASC,
);
$featured_vendor = new WP_Query();
$featured_vendor->query($args_featured); ?>
<?php while ($featured_vendor->have_posts()) : $featured_vendor->the_post(); ?>
<div class="archive-image-box">
<a href="<?php the_permalink(); ?>">
<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) {?>
<?php the_post_thumbnail(array(200,250)); }
else{?>
<img src="http://dummyimage.com/200x250">
<?php } ?>
<div class="feat-vend-meta">
<h3><?php the_title(); ?></h3></a>
</div>
</div><!-- archive-image-box -->
<?php $wp_query->in_the_loop = true; // This line is added so that the_tags('') will work outside the regular loop. ?>
<?php endwhile;?>
</div><!-- content-container-image-archive -->
<div class="clear"></div>
</div>
<!-- ALL VENDORS -->
<div id="all-vendors">
<h2>Cake Makers</h2>
<?php
$args = array(
'cat' => 12,
'orderby' => title,
'order' => ASC,
);
$standard_vendor = new WP_Query();
$standard_vendor->query($args); ?>
<?php while ($standard_vendor->have_posts()) : $standard_vendor->the_post(); ?>
<div class="standard-vendor">
<h3><?php the_title(); ?></h3>
<?php if (get_post_meta($post->ID, 'website', true)) { ?>
<a href="<?php echo get_post_meta($post->ID, 'website', true); ?>"><?php echo get_post_meta($post->ID, 'website', true); ?></a><?php } ?>
</div>
<?php $wp_query->in_the_loop = true; // This line is added so that the_tags('') will work outside the regular loop. ?>
<?php endwhile;?>