1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-- This sets the $curauth variable -->

    <?php
    $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
    ?> 
<div id="contestants"> 
<!-- The Loop -->
<?php query_posts('category_name=contestants&posts_per_page=1'); ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
  <h2><?php echo $curauth->user_nicename; ?></h2>
    <?php the_post_thumbnail('medium', array('class' => 'alignleft')); ?>
    <?php act_last_connect($author) ?></br>
    <?php if(function_exists('getvote5')) getvote5('get'); ?></br>
    <h2>About Me</h2>
    Posted: <?php the_time('M. d, Y'); ?>
         <?php the_content(); ?>
     
    <?php endwhile; else: ?>
        <p><?php _e('This contestant has not created his/her entry.'); ?></p>
    <?php endif; ?>

<!-- End Loop -->
</div>