• Hello All

    I am modifying my author template to include fields such as ICQ #, AIM, YIM, MSN screen names. The only field that I could get working was the user web site. The other fields do not populate even though I see it when I go to edit my profile.

    Here is the code from my author template

    <?php get_header(); ?>
    
    <?php
    global $wp_query;
    $curauth = $wp_query->get_queried_object();
    ?>
    <div id="content">
    <table border="0" cellpadding="0" cellspacing="0"  bordercolor="#FFFFFF" width="100%">
    <tr>
    <!--User Details Block-->
    <td width="120" valign="top" align="left">
    
    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));
    endif;
    ?>
    <BR />Website:
    <a href="<?php echo $curauth->user_url; ?>">WEBSITE</a><br />
    
    <strong>ICQ #:</strong>
    <?php echo $curauth->user_icq; ?><br />
    <strong>AIM:</strong>
    <?php echo $curauth->user_aim; ?><br />
    <strong>MSN:</strong>
    <?php echo $curauth->user_msn; ?><br />
    <strong>Yahoo:</strong>
    <?php echo $curauth->user_YIM; ?><br />
    <!--END USER INFO BLOCK-->

The topic ‘Adding user fields into author template’ is closed to new replies.