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

  1. kennethwatt
    Posted 7 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 -->
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));

    I want the picture to be displayed in here.

    <h2 class="header"><span>Artist: <?php echo $curauth->display_name; ?></span></h2>
    <h5><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></h5>
    <?php echo $curauth->user_description; ?>
    <h3>Posts by <?php echo $curauth->display_name; ?>:</h3>
    <!-- The Loop -->
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <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('&');?>
      <?php endwhile; else: ?>
         <p><?php _e('No posts by this author.'); ?></p>
    	<?php endif; ?>
    <!-- End Loop -->
    <?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