Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Query the database for all posts where $event_venue matches the venue of the current post
- <?php $the_query = new WP_Query( array( 'meta_key' => 'event_venue', 'meta_value' => $mix_venue ) );
- while ( $the_query->have_posts() ) :
- $the_query->the_post(); ?>
- <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php endwhile;
- // Restore original Query & Post Data
- wp_reset_query();
- wp_reset_postdata();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement