Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="artist-related-shows">
- <h2 class="header">upcoming shows:</h2>
- <?php query_posts( array(
- 'cat' => 'shows',
- "order" => 'desc',
- 'orderby' => 'meta_value',
- 'meta_key' => 'show_info_date',
- 'artist' => wp_title("",false), //this gets the page name which =(artist name)
- 'showposts' => 3
- ) ); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <!-- i don't remember what this next line is... but it needs to be here for the shows to stay aligned... so... remember to learn about this-->
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <div class="show_entry">
- <a href="<?php the_permalink() ?>">
- <h2 class="show_title"><?php echo get ('show_info_date') ?></h2></a>/>
- <?php the_content ?>
- <?php echo get ('show_info_artist') ?> @
- <?php echo get ('show_info_venue') ?>.
- <?php echo get ('show_info_time') ?>
- <?php echo get ('show_info_age') ?>
- </div> <!--end show-entry" -->
- </div> <!--end post class thing... ?"-->
- <?php endwhile; ?>
- <?php else : ?>
- <h1>there are currently no shows posted for this artist.</h1>
- <?php endif; ?>
- <?php wp_reset_query(); ?>
- </div> <!--end artist-related-shows -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement