I'm working on a site which requires requires users to submit a custom profile of sorts, and then one post in a specific category (all of that is being done through Gravity Forms and their User Registration add on).
I then need to display that post with the user's profile which is being displayed at the top of single posts and archives (because that one post is being used in conjunction with a voting plugin...so whenever someone views any post written by that author, they're also viewing that author's profile and entry post, which includes the voting button).
First, I've got this on customizing the author box: http://www.billerickson.net/code/customize-author-box/
and this is the entirety of what I need to display with the author profile (here it in pastie, I keep trying to get it all in correctly here: http://pastie.org/5379532 ):
<!-- 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>
But from here, I don't really know how to merge the example from Bill and what I have. Can someone help me understand?