Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $the_query = new WP_Query( array('post_type' => 'images') );?>
- <?php $mix_venue = get_post_meta(get_the_ID(), 'mix_venue', true); ?>
- <div class="nwidget-container"><h2 class="nwidget-title"><?php echo $mix_venue ?></h2></div>
- <?php
- // The Loop
- while ( $the_query->have_posts() ) :
- $the_query->the_post();
- ?>
- <?php
- $img = get_post_meta(get_the_ID(), 'wp_image_attachment', true);
- $image_venue = get_post_meta(get_the_ID(), 'image_venue', true);
- $image_date = get_post_meta(get_the_ID(), 'image_date', true);
- ?>
- <?php if (($image_venue == $mix_venue)){ ?>
- <div class="event_images_sidebar">
- <a href="<?php echo $img['url'] ?>" rel="lightbox" title="<?php echo $image_venue ?>"><img src="<?php echo $img['url'] ?>" height="50px" width="50px" /></a>
- </div><!-- #post-## -->
- <?php } else echo ''; ?>
- <?php endwhile;
- // Restore original Query & Post Data
- wp_reset_query();
- wp_reset_postdata();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement