Getting the BuddyPress user profile link

For an author’s profile link, use

to get the URL, and

to get an HTML link element, including display name.

For the xprofile data, use

$field can be either the name of the field (like ‘Biography’) or the numerical field id.

Leave a comment

Your email address will not be published. Required fields are marked *