• Resolved akidgrt

    (@akidgrt)


    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/&#8221; .
    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>

    </div>

    Regards
    Akshay

    https://www.ads-software.com/plugins/wp-biographia/

  • The topic ‘how i can show single author detail with social icon on author.php’ is closed to new replies.