Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Paul Bearne

    (@pbearne)

    How are you adding the title field to the profile?

    Plugin Author Paul Bearne

    (@pbearne)

    You might be able to use the ‘aa_user_template’ fliter

    this pass’s the

    ‘<div class=”{class}”>{user}</div>’ and the $user object

    If you write code to like this (if the title is in the user object)

    add_fliter('aa_user_template','add_title_to_AA');
    function add_title_to_AA($string,$user){
    $html = null;
    if ($user->title){ $html = '<div class="user_title">'. $user->title .'</div>'};
    
    return str_replace('{user}','{user}'.$html,$string);
    }

    If the title isn’t in the user object you may have get the ID ($user->user_id) to then fetch the info

    Paul

    Thread Starter trunyan

    (@trunyan)

    Still looking at how to add the title field, lots of plugins but might be overkill. I’ll start looking at the aa_user_template and getting that to work. Thanks for the help and quick reply.

    Plugin Author Paul Bearne

    (@pbearne)

    my code only handle the adding to avartar

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Possible to pull a users title?’ is closed to new replies.