how i can show single author detail with social icon on author.php
-
How i can show single author detail with social icon on author.php ?
Thanks in advance ??
now i m using this code
<div id=”contentmainmiddle” class=”contentmainmiddlecontact” >
<!– This sets the $curauth variable –>
<?php
$curauth = (isset($_GET[‘author_name’])) ? get_user_by(‘slug’, $author_name) : get_userdata(intval($author));
?>
<?php $authordata=get_userdata(get_query_var( ‘author’ )); ?><?php if (function_exists(‘get_avatar’)) {
echo get_avatar( get_the_author_email() );
} else {
//alternate gravatar code for < 2.5
$grav_url = “https://www.gravatar.com/avatar/” .
md5(strtolower($email)) . “?d=” . urlencode($default) . “&s=” . $size;
echo “<img src=’$grav_url’/>”;
} ?>
<h2>About: <?php echo $curauth->display_name; ?></h2>
<dl>
<dt>Website</dt>
<dd>user_url; ?>”><?php echo $curauth->user_url; ?></dd>
<dt>Profile</dt>
<dd><?php echo $curauth->user_description; ?></dd>
</dl><h2>Posts by <?php echo $curauth->nickname; ?>:</h2>
-
<!– The Loop –>
-
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
<?php the_title(); ?>,
<?php the_time(‘d M Y’); ?> in <?php the_category(‘&’);?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php endwhile; else: ?>
<p><?php _e(‘No posts by this author.’); ?></p><?php endif; ?>
<!– End Loop –>
</div>
Regards
Akshay -
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
- The topic ‘how i can show single author detail with social icon on author.php’ is closed to new replies.