BuddyBoss Home – Web › Support Forums › General › BuddyPress (general issues) › Xprofiles / multisite
- This topic has 0 replies, 1 contibutor, and was last updated 8 years, 11 months ago by Jill.
Question
December 11, 2015 at 6:52 pm #54278@falconslifeHello,
I am trying to get xprofile fields to populate on the users multisite blog.
I was using UsersUltra Pro and sexy author bio to produce this effect:
http://falconslife.org/test1/ (left pane)
Since migrating to Buddypress/Buddyboss users can’t update their (wp) author bio from the Buddyboss front end.
I have a xprofile field called ‘bio’ and have tried the following in a number of permutations.
http://www.code-zen.net/2009/using-custom-profile-field-data-in-buddypress-templates/
http://premium.wpmudev.org/blog/buddypress-profile-data-on-multisite/
I have the tesseract theme with the following edits:
shortcode.php
function bio() { global $bp; $thisblog = $current_blog->blog_id; $user_id_from_email = get_user_id_from_string( get_blog_option($thisblog, 'admin_email')); $myfield = xprofile_get_field_data( 'bio', $user_id_from_email ); echo $myfield; } add_shortcode('bio', 'bio');
bp-custom.php
<?php function xprofile_get_field_data($field_name = '', $echo = 1) { if( !$field_name ) { return false; } global $site_members_template; if( function_exists( 'xprofile_get_field_data' ) ) { $data = xprofile_get_field_data( $field_name, $site_members_template->member->id); if( $echo ) { echo "$data"; return true; } else { return $data; } } }
fuctions.php
include 'shortcodes.php'; // buddypress include 'bp-custom.php';
What am I doing wrong?
I’m learning as a go, not to versed with php.
Thanks so much!
Justin
- The question ‘Xprofiles / multisite’ is closed to new replies.