Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to show my users profile fields in theirs child blogs of my site.

On the main template i use

<? echo bp_get_profile_field_data( 'field=Name'); ?>

On the child theme that i use for my users blogs this dont work.

Checking $bp var i can see that $bp->displayed_user its empty

There is way to do tihs?

I just want to show on the multisite blogs created by users their profile of buddypress.

Thanks!!

share|improve this question
add comment

1 Answer

try switch to the main blog where buddypress is installed, echo the profile fields then switch back to the current blog.

$bp_blog = 1; // the blog id of your buddypress install, often 1
switch_to_blog($bp_blog);
echo bp_get_profile_field_data( 'field=Name');
restore_current_blog();

if that doesn't work, maybe the user in question is not a member of your main blog. You might need to add all users in the network to the buddypress blog if they are not already.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.