WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Cimy User Extra Fields] How Can I Retrieve the User's Picture? (1 post)

  1. kennethwatt
    Member
    Posted 4 years ago #

    I have this plug-in installed on my blog and I want to know how to retrieve a picture on my author.php page.

    Here is the code:

    <?php get_header(); ?>
       <div id="main">
          <!-- This sets the $curauth variable -->
    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));
    endif;
    ?>

    I want the picture to be displayed in here.

    <h2 class="header"><span>Artist: <?php echo $curauth->display_name; ?></span></h2>
    <h4>Website</h4>
    <h5><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></h5>
    <h3>Profile</h3>
    <?php echo $curauth->user_description; ?>
    
    <h3>Posts by <?php echo $curauth->display_name; ?>:</h3>
    
    <ul>
    <!-- The Loop -->
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
      <li>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
    <?php the_title(); ?></a>,
    <?php the_time('d M Y'); ?> in <?php the_category('&');?>
      </li>
    
      <?php endwhile; else: ?>
         <p><?php _e('No posts by this author.'); ?></p>
    
    	<?php endif; ?>
    <!-- End Loop -->
    </ul>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Where and what do I put?

Topic Closed

This topic has been closed to new replies.

About this Topic