Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array( 'post_type' => 'product', 'posts_per_page' => 1, 'product_tag' => 'awesome', 'orderby' => '' );
- $loop = new WP_Query( $args );
- while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?>
- <div id="feat-img-contain">
- <a href="<?php echo get_post_meta($post->ID, 'vendor-url', true); ?>"> <?php if ( has_post_thumbnail() ) {
- the_post_thumbnail();}?></a>
- </div><!--end feat-img-contain-->
- <?php endwhile; ?>
- <?php wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement