Sign up ×
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.


share|improve this question

closed as off-topic by Pieter Goosen, birgire, gmazzap, Johannes Pille, ialocin Aug 9 '14 at 7:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – Pieter Goosen, birgire, gmazzap, Johannes Pille, ialocin
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

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
echo bp_get_profile_field_data( 'field=Name');

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

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