Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <!-- FEATURED VENDORS        -->
  2.         <?php
  3.        
  4.         $args_featured = array(
  5.         'category__and'=>array(12,24),
  6.         'orderby' => title,
  7.         'order' => ASC,
  8.         );
  9.            
  10.         $featured_vendor = new WP_Query();
  11.         $featured_vendor->query($args_featured); ?>
  12.         <?php while ($featured_vendor->have_posts()) : $featured_vendor->the_post(); ?>
  13.         <div class="archive-image-box">
  14.             <a href="<?php the_permalink(); ?>">
  15.            
  16.                 <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) {?>
  17.                 <?php the_post_thumbnail(array(200,250)); }
  18.                 else{?>
  19.                 <img src="http://dummyimage.com/200x250">    
  20.                 <?php } ?>
  21.            
  22.             <div class="feat-vend-meta">   
  23.             <h3><?php the_title(); ?></h3></a>
  24.             </div>
  25.            
  26.         </div><!-- archive-image-box -->
  27.             <?php $wp_query->in_the_loop = true; // This line is added so that the_tags('') will work outside the regular loop. ?>
  28.         <?php endwhile;?>
  29.        
  30.         </div><!-- content-container-image-archive -->
  31.         <div class="clear"></div>
  32.         </div>
  33.        
  34.        
  35.        
  36. <!-- ALL VENDORS -->
  37. <div id="all-vendors">
  38.         <h2>Cake Makers</h2>
  39.        
  40.         <?php
  41.        
  42.         $args = array(
  43.         'cat' => 12,
  44.         'orderby' => title,
  45.         'order' => ASC,
  46.         );
  47.            
  48.         $standard_vendor = new WP_Query();
  49.         $standard_vendor->query($args); ?>
  50.         <?php while ($standard_vendor->have_posts()) : $standard_vendor->the_post(); ?>
  51.             <div class="standard-vendor">
  52.             <h3><?php the_title(); ?></h3>
  53.             <?php if (get_post_meta($post->ID, 'website', true)) { ?>
  54.             <a href="<?php echo get_post_meta($post->ID, 'website', true); ?>"><?php echo get_post_meta($post->ID, 'website', true); ?></a><?php } ?>
  55.             </div>
  56.             <?php $wp_query->in_the_loop = true; // This line is added so that the_tags('') will work outside the regular loop. ?>
  57.         <?php endwhile;?>