Advertisement
dmlws

Add Exchange Product Featured Image to Builder Extension

May 20th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.10 KB | None | 0 0
  1. <?php if ( have_posts() ) : ?>
  2.     <div class="loop">
  3.         <div class="loop-content">
  4.  
  5. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("it_exchange_category=rug-display-combo&post_type=it_exchange_prod&paged=$paged"); ?>
  6.  
  7.         <div class="portfolio-extension-wrapper clearfix">                 
  8.             <?php while ( have_posts() ) : // the loop ?>
  9.  
  10. <?php it_exchange_set_product( $post->ID ); ?>
  11.  
  12.                 <?php the_post(); ?>
  13.  
  14.                 <div <?php post_class('portfolio-post-wrap'); ?>>
  15.                     <div class='portfolio-post entry-content'>
  16.                         <?php if ( has_post_thumbnail() ) : ?>
  17.                             <a class="entry-image" href="<?php the_permalink(); ?>">
  18.  
  19.                                 <!-- <?php the_post_thumbnail( 'it-portfolio-thumb' ); ?> -->
  20.  
  21. <?php it_exchange( 'product', 'featured-image', array( 'size' => 'thumbnail' ) ); ?>
  22.  
  23.                             </a>
  24.                         <?php else : ?>
  25.                         <?php endif; ?>
  26.                                    
  27.                         <span class="portfolio-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span>
  28.                     </div>
  29.                 </div>
  30.             <?php endwhile; // end of one post ?>
  31.         </div><!-- End of Portfolio Extension Wrapper -->
  32.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement