Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // The Query
- $args = array(
- 'post_type'=> 'staff',
- 'order'=> 'ASC',
- 'posts_per_page' => '-1'
- );
- query_posts( $args );
- // The Loop
- while ( have_posts() ) : the_post();
- $post_ID = ($post->ID);
- $staff_title = get_post_meta($post->ID, 'staff_title', true);
- $staff_email = get_post_meta($post->ID, 'staff_email', true);
- $thumby = get_the_post_thumbnail($id, 'thumbnail');
- echo '<div class="one_staffer">';
- echo '<div class="staff_thumbnail"><a class="bio" href="?post_ID='.$post_ID.'">'.$thumby.'</a>
- <p><a class="bio" href="#">[bio]</a></div>';
- echo '<h3>';
- the_title();
- echo '</h3>';
- echo '<p class="staff_meta staff_title">'. $staff_title . '</p>';
- echo '<p class="staff_meta staff_email"><a href="mailto:'.$staff_email.'">'. $staff_email . '</a></p>';
- echo '<div class="clearfix"></div>';
- echo '</div>';
- //The Bio Modal
- echo '<div class="bioModal" style="display:none">';
- echo '<h1>';
- the_title();
- echo '</h1>';
- echo '<h1>'.$staff_title.'</h1>';
- echo '<p>';
- the_content('');
- echo '</p>';
- echo '</div>';
- endwhile;
- // Reset Query
- wp_reset_query();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement