bwade231

teamroping*

Sep 23rd, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. <?php
  2.  
  3. /* Template Name: TeamRoper */
  4.  
  5. get_header(); ?>
  6.  
  7. <div id="content" class="narrowcolumn" role="main">
  8.  
  9. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  10. <div class="post" id="post-<?php the_ID(); ?>">
  11. <h2><?php the_title(); ?></h2>
  12. <div class="entry">
  13.  
  14. <?php the_content(); ?>
  15.  
  16. <h2>Our Team</h2>
  17.  
  18. <?php
  19. $teamroping = new Pod('teamroping');
  20. $teamroping->findRecords('name ASC');
  21. $total_members = $teamroping->getTotalRows();
  22. ?>
  23.  
  24. <?php if( $total_members>0 ) : ?>
  25. <ul>
  26. <?php while ( $teamroping->fetchRecord() ) : ?>
  27.  
  28. <?php
  29. // set our variables
  30. $member_id = $teamroping->get_field('id');
  31. $member_ustrc_id = $teamroping->get_field('ustrc_id');
  32. $member_name = $teamroping->get_field('name');
  33. $member_class = $teamroping->get_field('ustrc_class');
  34. $member_cr_user = $teamroping->get_field('cr_user');
  35. $member_event = $teamroping->get_field('event');
  36. $member_event_earnings = $teamroping->get_field('event_earnings');
  37. ?>
  38.  
  39. <li>
  40. <a href="<?php echo get_permalink(); ?><?php echo $member_slug; ?>/">
  41. <?php echo $member_name; ?> - <?php echo $member_ustrc_id; ?> - <?php echo $member_class; ?> - <?php echo $member_cr_user ; ?> - <?php echo $member_event; ?> - <?php echo $member_event_earnings; ?>
  42. </a>
  43. </li>
  44.  
  45. <?php endwhile ?>
  46. </ul>
  47. <?php endif ?>
  48.  
  49. </div>
  50. </div>
  51. <?php endwhile; endif; ?>
  52.  
  53. </div>
  54.  
  55. <?php get_sidebar(); ?>
  56.  
  57. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment