Advertisement
mamacita007

Untitled

Apr 10th, 2012
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <?php
  2.  
  3. // The Query
  4.  
  5. $args = array(
  6. 'post_type'=> 'staff',
  7. 'order'=> 'ASC',
  8. 'posts_per_page' => '-1'
  9.  
  10. );
  11.  
  12. query_posts( $args );
  13.  
  14. // The Loop
  15. while ( have_posts() ) : the_post();
  16. $post_ID = ($post->ID);
  17. $staff_title = get_post_meta($post->ID, 'staff_title', true);
  18. $staff_email = get_post_meta($post->ID, 'staff_email', true);
  19. $thumby = get_the_post_thumbnail($id, 'thumbnail');
  20. echo '<div class="one_staffer">';
  21. echo '<div class="staff_thumbnail"><a class="bio" href="?post_ID='.$post_ID.'">'.$thumby.'</a>
  22. <p><a class="bio" href="#">[bio]</a></div>';
  23. echo '<h3>';
  24. the_title();
  25. echo '</h3>';
  26. echo '<p class="staff_meta staff_title">'. $staff_title . '</p>';
  27. echo '<p class="staff_meta staff_email"><a href="mailto:'.$staff_email.'">'. $staff_email . '</a></p>';
  28. echo '<div class="clearfix"></div>';
  29. echo '</div>';
  30.  
  31. //The Bio Modal
  32. echo '<div class="bioModal" style="display:none">';
  33. echo '<h1>';
  34. the_title();
  35. echo '</h1>';
  36. echo '<h1>'.$staff_title.'</h1>';
  37. echo '<p>';
  38. the_content('');
  39. echo '</p>';
  40. echo '</div>';
  41.  
  42. endwhile;
  43.  
  44. // Reset Query
  45. wp_reset_query();
  46.  
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement