daily pastebin goal
42%
SHARE
TWEET

Marketpress Page Template

chelle Sep 23rd, 2011 165 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // custom template for marketpress loop
  3. get_header();
  4. ?>
  5. <div id="csgridcontent">
  6.  
  7.        
  8.                         <?php
  9.  query_posts(array('post_type' => 'product', 'paged' => $paged, 'posts_per_page'=>12));
  10.                     if (have_posts()) while (have_posts()) : the_post(); ?>
  11.  
  12. <div class="gallery">
  13. <a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'grid-image' ); ?></a>
  14.  
  15. <div class="vargalthumb">
  16. <?php if ( get_post_meta($post->ID, 'csgridthumb', true) ) : ?>
  17.     <a href="<?php the_permalink() ?>" rel="bookmark">
  18.         <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "csgridthumb", $single = true); ?>&h=30&w=30&zc=1" alt="<?php the_title(); ?>" width="30px" height="30px" />
  19.     </a>
  20.  
  21.  <?php endif; ?>
  22.  
  23. <?php if ( get_post_meta($post->ID, 'csgridthumb2', true) ) : ?>
  24.     <a href="<?php the_permalink() ?>" rel="bookmark">
  25.         <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "csgridthumb2", $single = true); ?>&h=30&w=30&zc=1" alt="<?php the_title(); ?>" width="30px" height="30px" />
  26.     </a>
  27.  
  28.  <?php endif; ?>
  29.  
  30.  
  31. <?php if ( get_post_meta($post->ID, 'csgridthumb3', true) ) : ?>
  32.     <a href="<?php the_permalink() ?>" rel="bookmark">
  33.         <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "csgridthumb3", $single = true); ?>&h=30&w=30&zc=1" alt="<?php the_title(); ?>" width="30px" height="30px"/>
  34.     </a>
  35.  
  36.  <?php endif; ?>
  37.  
  38.  
  39. <?php if ( get_post_meta($post->ID, 'csgridthumb4', true) ) : ?>
  40.     <a href="<?php the_permalink() ?>" rel="bookmark">
  41.         <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "csgridthumb4", $single = true); ?>&h=30&w=30&zc=1" alt="<?php the_title(); ?>" width="30px" height="30px" />
  42.     </a>
  43.  
  44.  <?php endif; ?>
  45.  
  46.  
  47. <?php if ( get_post_meta($post->ID, 'csgridthumb5', true) ) : ?>
  48.     <a href="<?php the_permalink() ?>" rel="bookmark">
  49.         <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "csgridthumb5", $single = true); ?>&h=30&w=30&zc=1" alt="<?php the_title(); ?>" width="30px" height="30px" />
  50.     </a>
  51.  
  52.  <?php endif; ?>
  53.  
  54. </div>
  55.  
  56. <div class="galdesc">
  57. <p><?php the_title(); ?></p></p>
  58.  
  59. <p class="gridprice"><?php echo get_post_meta($post->ID, 'csprice', true) ?></p>
  60. </div>
  61. </div>
  62. <?php endwhile; ?>
  63.  
  64. <?php wp_pagenavi(); ?>
  65.                                                 <div class="clear"></div>
  66.  
  67. </div>
  68.                
  69.  
  70.         <?php get_sidebar(); ?>
  71. <?php get_footer(); ?>
RAW Paste Data
Top