Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Template Name: TeamRoper */
- get_header(); ?>
- <div id="content" class="narrowcolumn" role="main">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="post" id="post-<?php the_ID(); ?>">
- <h2><?php the_title(); ?></h2>
- <div class="entry">
- <?php the_content(); ?>
- <h2>Our Team</h2>
- <?php
- $teamroping = new Pod('teamroping');
- $teamroping->findRecords('name ASC');
- $total_members = $teamroping->getTotalRows();
- ?>
- <?php if( $total_members>0 ) : ?>
- <ul>
- <?php while ( $teamroping->fetchRecord() ) : ?>
- <?php
- // set our variables
- $member_id = $teamroping->get_field('id');
- $member_ustrc_id = $teamroping->get_field('ustrc_id');
- $member_name = $teamroping->get_field('name');
- $member_class = $teamroping->get_field('ustrc_class');
- $member_cr_user = $teamroping->get_field('cr_user');
- $member_event = $teamroping->get_field('event');
- $member_event_earnings = $teamroping->get_field('event_earnings');
- ?>
- <li>
- <a href="<?php echo get_permalink(); ?><?php echo $member_slug; ?>/">
- <?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; ?>
- </a>
- </li>
- <?php endwhile ?>
- </ul>
- <?php endif ?>
- </div>
- </div>
- <?php endwhile; endif; ?>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment