Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // custom template for marketpress loop
- get_header();
- ?>
- <div id="csgridcontent">
- <?php
- query_posts(array('post_type' => 'product', 'paged' => $paged, 'posts_per_page'=>12));
- if (have_posts()) while (have_posts()) : the_post(); ?>
- <div class="gallery">
- <a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'grid-image' ); ?></a>
- <div class="vargalthumb">
- <?php if ( get_post_meta($post->ID, 'csgridthumb', true) ) : ?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <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" />
- </a>
- <?php endif; ?>
- <?php if ( get_post_meta($post->ID, 'csgridthumb2', true) ) : ?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <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" />
- </a>
- <?php endif; ?>
- <?php if ( get_post_meta($post->ID, 'csgridthumb3', true) ) : ?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <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"/>
- </a>
- <?php endif; ?>
- <?php if ( get_post_meta($post->ID, 'csgridthumb4', true) ) : ?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <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" />
- </a>
- <?php endif; ?>
- <?php if ( get_post_meta($post->ID, 'csgridthumb5', true) ) : ?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <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" />
- </a>
- <?php endif; ?>
- </div>
- <div class="galdesc">
- <p><?php the_title(); ?></p></p>
- <p class="gridprice"><?php echo get_post_meta($post->ID, 'csprice', true) ?></p>
- </div>
- </div>
- <?php endwhile; ?>
- <?php wp_pagenavi(); ?>
- <div class="clear"></div>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement