getting a users blog url
- 
		my plugin needs to get the users url if they are logged on to the site. It works on single wordpress and on multi-site but not on buddypress installed sites. In single install wordpress I use $url = $userdata->user_url (in buddypress that returns the users member page) 
 if it’s multi-site I use $userbloginfo = get_blogs_of_user ( $userid, 1 ); $url = $userbloginfo [1]->siteurl;what can I use for buddypress if it’s installed? I tried $url = bp_core_get_userlink($userid,false,true); but that returns the users member page I just need the url to the first blog that the user owns, can you tell me how do I get that? 
- The topic ‘getting a users blog url’ is closed to new replies.