NewUser NewUser - 2 years ago 148
Javascript Question

Get Wordpress User Profile Url/Link by ID

I managed to show up the users Profile Images from the mainsite
in my bbpress forum with this code:

<?php $user_info = get_user_by('id', $wp_query->query_vars['author']); echo get_avatar($user_info->ID, '150'); ?>


How can i get the Users Profile URL/LINK like with the same method?

Thank you so much!

Answer Source

This function should help: the_author_meta( $field, $userID );

for profile link you'll need 'user_url' for the field

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download