Re: How do I use Buddypress xprofile fields inside bbPress?
Made some progress with this, but still need help. I figured that I could simply add something like this underneath the avatar:
Code:
$location = xprofile_get_field_data( ‘Location’, 10 ) ;
echo ‘Location: ‘ . $location;
echo ‘Location: ‘ . $location;
However, notice the hard-coded “10” there which is an ID. This needs to be the ID of each user in the replies table and it changes with each table row inside the “loop-single-reply.php” file. I don’t mind changing the template file and keeping a record for it when upgrades come, but how do I know the ID of each user in the bbPress posting loop?