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

Show profile fields in the members directory

Code

Source: https://pastebin.com/raw/zpg7gwNr

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.

CSS

Minimal CSS required

div.mdetcenter {text-align:center;}

This snippet should be added to wp-content/themes/kleo-child/style.css

Full CSS used in demo

div.mdetcenter {text-align:center;}
#buddypress #members-list li div.item-avatar {width: 100px;display: block;height: 100px;text-align: center !important;margin: 0 auto !important;float: none;}
#members-list .item-meta {text-align: center;}
#buddypress ul.item-list li div.item-title {margin-left: 0;margin-right: 0;}
#buddypress #members-list .item-title {margin-left: 0;margin-right: 0;text-align: center;}
#buddypress #members-list .item-meta {margin-left: 0;margin-right: 0;text-align: center;}
ul#members-list li.kleo-masonry-item .member-inner-list{background-color :#333333 !important;}
#buddypress #friend-list div.item, #buddypress #members-list div.item, #buddypress #member-list div.item {color:#FFF;}
#buddypress #members-list .item-title a {color : #FFFFFF !important;font-weight: bold;}

This snippet should be added to wp-content/themes/kleo-child/style.css

Blazing Fast Site Hosting & Maintenance

  • Theme Requirements
  • WordPress Installation
  • Theme Automatic Updates
  • BuddyPress overview
  • Elementor overview
  • STAX Header Builder overview
  • bbPress overview
  • Membership overview
  • rtMedia overview
  • WP Bakery Page Builder
  • Enabling BuddyPress Groups
  • Paid Memberships Pro
  • Bundled plugins and activation codes
  • Add link to element or button in Revolution Slider 6.x
  • Introduction to the child theme
  • Overriding a file with the child theme
  • Saving Customizer Settings(Import/Export)
  • Build a menu with Stax
  • Find Theme Purchase Code
  • Translate theme with Loco Translate
  • Multilingual setup using WPML plugin
  • Show profile fields in the members directory
  • Changelog
  • My site is slow. How to speed up my website?
  • How to add a Populated Country List XPROFILE
  • Troubleshooting an issue
  • Admin bar only for admins
  • Error 404 - Page not found
  • 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.