Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Compatible Plugins › BP xProfile Location › bug? missing location text on member profile card and header
- This topic has 5 replies, 2 voices, and was last updated 6 years, 7 months ago by
Themosaurus.
-
AuthorPosts
-
lalaineParticipant@lalaine
- 11 Topics
- 22 Posts
if you could please take a look only change made was i had to deactivate GEO my WP
for BP Maps for Members as suggested by BP xProfile Location pluginsee before and after attachments
ThanksIve changed the previous login i gave you before
September 13, 2018 at 11:30 #2190@themosaurus- 1 Topics
- 1675 Posts
Hi @lalaine,
Thank you for your patience. As a matter of fact, the Location field that you have probably created -as recommended by the plugin author- is never printed in any pages by Gwangi.
To change this and display it’s value next to your member avatar, please add the following code snippet to your website:
if ( ! function_exists( 'gwangi_buddypress_member_location' ) ) : /** * Print the HTML for the BP xProfile Location field. * * @since 1.0.0 */ function gwangi_buddypress_member_location() { if ( function_exists( 'xprofile_get_field_data' ) ) : $location = xprofile_get_field_data( 'Location', bp_get_member_user_id() ); $allowed_html = array( 'a' => array( 'href' => array(), 'rel' => array(), ), ); if ( ! empty( $location ) ) : ?> <div class="bp-member-xprofile-custom-field bp-member-location"><?php echo wp_kses( $location, $allowed_html ); ?></div> <?php endif; endif; } endif;
To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:
We hope this will solve your issue. ?
Best,
September 17, 2018 at 15:30 #2289 -
AuthorPosts
The topic ‘bug? missing location text on member profile card and header’ is closed to new replies.