• Dashboard
    • Submit Ticket
    • Licenses
    • Login
  • Our Products
    • BuddyBuilder
    • Kleo
    • Typer
    • Seeko
    • SweetDate
    • BuddyApp
  • Services
    • VIP Support
    • WordPress Theme Installation Service
  1. Home
  2. BuddyApp
  3. Show profile fields in the profile header

Show profile fields in the profile header

Code

Source: http://pastebin.com/raw/QByiEAhH

This snippet should be added to wp-content/themes/kleo-child/functions.php

Note : You will have to adapt this function for your needs by changing the name of the fields Location and Specialization from the example shown. Field names are case sensitive and must match exactly.

Examples :
$location = bp_get_member_profile_data('field=Location');
$specialization = bp_get_member_profile_data('field=Specialization');

field=Location represents name of the field that we need to show in the member directory
field=Specialization represents name of another field that we need to show in the member directory

Blazing Fast Site Hosting & Maintenance

  • Welcome to BuddyApp!
  • Theme Requirements
  • Installing BuddyApp
  • Import Demo Content
  • Pages
  • WordPress Installation
  • Installing BuddyApp
  • Theme & Plugin Updates
  • Theme Automatic Updates
  • BuddyPress overview
  • BuddyApp Plugins
  • bbPress overview
  • rtMedia overview
  • WP Bakery Page Builder
  • Enabling BuddyPress Groups
  • Paid Memberships Pro
  • Bundled plugins and activation codes
  • Introduction to the child theme
  • Live Customizer
  • Overriding a file with the child theme
  • Saving Customizer Settings(Import/Export)
  • Ajax Login and Redirect
  • Theme Options Overview
  • Menu Customization
  • Change Header Menu Dropdown Trigger
  • Menu Customization
  • Find Theme Purchase Code
  • Translate theme with Loco Translate
  • Multilingual setup using WPML plugin
  • Translate with WPML
  • Show profile fields in the members directory
  • BuddyApp Sources & Credits
  • File Structure
  • Changelog
  • My site is slow. How to speed up my website?
  • How to add a Populated Country List XPROFILE
  • Ajax Interval Refresh - Menu Notifications & Messages
  • BuddyApp & WP Engine
  • Font Icons
  • BuddyApp Theme Hooks
  • Error 404 - Page not found
  • Troubleshooting an issue
  • Show profile fields in the members directory
  • Show profile fields in the profile header
BuddyBuilder is out. Total freedom to build online communities
SeventhQueen  - 2021 - Privacy Policy

Welcome to SeventhQueen Portal


Lost your password?

Don't have an account? Register now!

Forgot your details?



Wait, I remember now. Log In

Register your account

Sign up with Email
I have an account. Log In

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.