Advertisement
draney

taxonomy.php

Apr 19th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="loop-wrap">
  4.  
  5.     <h1 class="page-title"><?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?> Store</h1>
  6.  
  7.     <ul id="product-list">
  8.    
  9.     <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  10.    
  11.         <li class="product-list-item">
  12.  
  13.             <?php if((get_post_meta($post->ID, '_product_cb_single', true))) { ?>
  14.                 <div class="sold-flag"></div>
  15.             <?php } ?>
  16.  
  17.             <?php if(class_exists('TemplateImages') && mti_image_exists('first-image')) { ?>
  18.             <a href="<?php the_permalink(); ?>" title="click for details"><img
  19.             src="<?php echo mti_get_image_url('first-image', 'w=150&h=150&zc=1'); ?>" alt="<?php the_title(); ?>" /></a>
  20.             <?php } ?>
  21.             <br />
  22.             <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  23.  
  24.         </li>
  25.    
  26.     <?php endwhile; endif; ?>
  27.  
  28.     </ul><!-- END #product-list -->
  29.  
  30.     <nav class="prev-next clearfix">
  31.         <div class="next-posts"><?php next_posts_link('&laquo; Previous Items') ?></div>
  32.         <div class="prev-posts"><?php previous_posts_link('Next Items &raquo;') ?></div>
  33.     </nav>
  34.  
  35. </div><!-- END #loop-wrap -->
  36.  
  37. <?php get_sidebar(); ?>
  38. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement