Skip to:

Search Results for 'profile fields'

Viewing 25 results - 1 through 25 (of 5,080 total)
  • Author
    Search Results
  • #269539
    David Cavins

    Hi Marc-

    It sounds like you’re just getting started. Custom fields are part of the extended profile component. Read more about it here:

    User Extended Profiles

    Displaying Extended Profile Fields on Member Profiles

    It is not really possible to show groups with any richness outside of the group page. Your best bet is probably to customize your group templates to show what you want. The template hierarchy will help you:

    Template Hierarchy

    An all-user overview with search and filtering is the members directory available at


    I am attempting to display some user data on a single page so members of a group can see all of the members within that group’s info without going into each profile. I have successfully displayed 2 custom fields, but cannot display the user’s email address.

    It is a private site, so I cannot link to it. Hopefully this is something minor that I am just missing.

    I have found so many scattered suggestions for this type of thing, but nothing has worked.
    I have tried all of these types with various field names (email, Email, Email address, Account email, etc.) and nothing displays the email address.

    <?php echo bp_member_profile_data(‘field=Email’); ?>

    <?php echo bp_member_profile_data(‘field=Account email’); ?>

    <?php echo xprofile_get_field_data( ‘field=Account email’ ); ?>

    <?php echo get_post_meta(get_the_id(), ‘user_email’, true); ?>

    <?php echo xprofile_get_field_data( ‘user_email’, get_the_author_id()) ?>

    I am updating a copied version in my theme of members.php from /buddypress/members/

    Any ideas would be appreciated. Thanks!

    BP v2.9.2
    WP v4.9.1


    I have a (private) corporate intranet that incorporates BuddyPress for Employee Profiles.

    Without giving users the ability to edit their own profiles, I would like the Member Profile Pages to display the Profile Photo, User Name (possibly regardless of “Display Name” choice), User Email, User Description (renamed “Position”), and a link to the local job description page for their position.

    Is it possible to modify the profile fields from wp-profile.php etc. using bp-custom.php and action hooks? Is there a better way to customize the member profile page template?

    Thank you.


    I am using WP Mail SMTP to get the mail to send without issues. But it seems to affect this particular email only, I am getting everything else as far as I am aware.

    Here are my current active plugins – There is quite a long list.
    I do use Autoptimize, so not sure if it’s affecting anything.
    One of note, is Social Login, which when logging directs to their site, and redirects back to my site to log the user in via their social network, this is where it falls over and does not send this one email. It manages to send other emails related to the login, but it now gives me an idea to look into the code that sends this social email sign up notification.

    (BuddyDev) BP Auto Login on Activation (1.0.3)
    Advanced Custom Fields (4.4.11)
    Allow Multiple Accounts (3.0.4)
    Autoptimize (2.2.2)
    BP Profile Message UX Free (1.5)
    BP xProfile Location (1.2)
    BP XProfile WordPress User Sync (0.6.4)
    BuddyDev Username Availability Checker (1.1.1)
    BuddyExtender (1.0.1)
    BuddyPress (2.7.4)
    BuddyPress Member Type Generator (1.0.3)
    BuddyPress Security Check (2.1.2)
    BuddyPress Simple Terms And Conditions (1.3)
    BuddyPress Xprofile Custom Fields Type (2.6.3)
    BuddyPress Xprofile Member Type Field (1.0.4)
    BuddyPress XProfile Validate with RegEx (0.1.2)
    Cherry Parallax Plugin (1.1.0)
    Cherry Plugin (
    Child Theme Configurator (2.1.2)
    Conditional Profile Fields for BuddyPress (1.1.9)
    Contact Form 7 (4.6)
    Contact Form 7 – Dynamic Text Extension (2.0.1)
    Contact Form 7 Conditional Fields (1.0)
    Contact Form 7 Get and Show Parameter from URL (0.9.7)
    Contact Form 7 Honeypot (1.10)
    Contact Form 7 Modules: Hidden Fields (2.0)
    Contact Form 7 Shortcode Enabler (1.1)
    Custom Hooks (1.0)
    Custom Post Template By Templatic (1.0)
    Custom Post Type UI (1.4.3)
    Disable Comments (1.6)
    Display Posts Shortcode (2.7.0)
    FacetWP (2.7.4)
    FacetWP – Map (1.0.5)
    Flamingo (1.5)
    GeoIP Detection (2.7.0)
    GEO my WP (2.7)
    Google Analytics Dashboard for WP (
    List Plugins (1.4.4)
    Meta Slider (3.4)
    Optimize Database after Deleting Revisions (4.2.1)
    Page-list (5.1)
    PHP Compatibility Checker (1.4.0)
    Popup Maker (1.4.20)
    Shortcodes in Menus (3.2)
    Social Login (5.2)
    Stream (3.2.0)
    String Locator (2.2.0)
    Sucuri Security – Auditing, Malware Scanner and Hardening (1.8.3)
    SuitePlugins – Advanced XProfile Fields for BuddyPress (1.0.3)
    Theme Check (20160523.1)
    Visual Builder for Contact Form 7 (2.0)
    WPFront User Role Editor (2.13)
    WP Mail SMTP (0.11.1)
    WP Private Content Plus (1.13.1)
    WP Smush (2.6.1)
    Yoast SEO (4.3)

    Henry Wright

    If I understand properly, you need conditional profile fields. Try BuddyDev’s Conditional Profile Fields for BuddyPress.

    Conditional Profile Fields for BuddyPress


    Hey everyone. I am having trouble reworking a profile/registration field. I have a field that asks who or what are you. The options are male, female, couple or group. If the user selects say male or female then the next profile field is age and all is well, they simply fill out the form as usual and get an account. However, I have been trying with all my heart, patience and ability to figure out a way to have the option couple when selected, add an extra age field so that I can get the ages of both users. I have seen this done with buddypress before and I am sure it can be done, would anyone here have any ideas on how this could be accomplished?

    Boone Gorges

    It’s not possible to use a regular BP profile field to keep track of data changes over time. BP doesn’t keep records of old profile field values – it only stores the most recent one.

    There are a number of ways you could accomplish it. If you had the technical know-how, you could build a tool that hooks into XProfile and syncs user-entered data to another system (maybe an array in usermeta or something like that). Another option is to manually created new fields every 3 months, but then you’d need to do some customization to the way fields are displayed on the front end so that the profile doesn’t show all past entries as separate items. Either way, some customization would be required.

    Maybe someone on this forum knows of an existing tool that will help.


    Hi there.
    Being a bit of a noob I’m not sure if what I’m trying is easy, hard, been asked a million times, or even possible.

    I will have user profiles that have the usual name, DOB, address, email, etc.
    I would then like to have field/s that a user can enter their height or a field to enter their weight. These fields are simple enough being integers but is it possible to log this information as the user’s height grows? Say they update their height every 3 months and it shows their growth over 12 months?

    I’m just trying to find the direction I should be heading in to get started.
    Thank you for any help.


    In reply to: Register page editor

    Boone Gorges

    BuddyPress’s Register page is a special kind of page that cannot be edited via the Dashboard. That’s why it’s blank when you view it in the normal way.

    To add additional fields to the registration process, go to Dashboard > Users > Profile Fields. Add one for Address and one for Phone Number. Make them required and/or private, if you’d like. As long as they are part of the ‘Base’ profile field group, they will appear as part of the registration process.

    Boone Gorges

    Hi @Sander – Thanks for reporting this. It looks like a legitimate bug. I’ve opened a ticket to track it:

    While we try to figure out a way to make this work better, you can work around the issue by disabling autolink for the field in question. Dashboard > Users > Profile Fields > Edit, and look for the Autolink metabox at the right.


    wp 4.7
    bp 2.9.2

    I am using custom profile fields and when the text contains an ampersand (in this case, within a company name) it is not escaped correctly and breaks the searchable link. See below…


    WP 4.9
    BP 2.9

    I’m having a problem with the output of special characters in the Buddypress profile fields.
    Like for example: a company name that uses apostrof ‘Name’ outputs this in the profile field as:

    Is there anything that could be done to let the fields accept special characters?

    Boone Gorges

    You may be able to disable the linking in the admin. Go to Dashboard > Users > Profile Fields. Find the Email field, and click Edit. On the right-hand column, find the “Autolink” metabox. Switch it to ‘Disabled’ and save.


    In reply to: customize members page

    Boone Gorges

    > i created customed fields for the inner-page of the user, but they don’t show in the members list page.

    The details depend on how you created these “customed fields”. If they are xprofile fields, then the simplest way is to do this:

    $user_id = bp_get_member_user_id();
    $data = xprofile_get_field_data( 'Custom Field Name', $user_id );
    if ( $data ) {
        echo $data;

    If you stored it in user meta, do something similar:

    $data = get_user_meta( $user_id, 'custom_field_name', true );

    Either way, bp_get_member_user_id() is how you get the ID of the current user in the loop.

    Boone Gorges

    Hi @barkins – BP doesn’t have a built-in tool for this (though it should – see, If you know that user IDs will remain the same between the local WP install and the live install, then you can do a simple database export/import, something like:

    $ mysqldump -u db_user -p db_name wp_bp_xprofile_groups wp_bp_xprofile_fields wp_bp_xprofile_data > ~/xprofile-export.sql

    $ mysql -u db_user -p db_name < ~/xprofile-export.sql

    If the user names will not be the same, you’ll need to write a script to handle this, but the details will depend on how you plan to identify users (email address, etc).


    I need to export and import just the Profile fields from my local WordPress installation to my live website.

    Is there a way to do this? I see there are ways to export and import the field data, but I just need the fields themselves. Thanks


    Within Extend Profile fields, each field has the following option:

    ‘Who can see this field’ with the default being ‘Everyone’

    Is there a way to default to ‘Only Me’ instead?

    Ideally, we would like to remove this ‘Who can see this field’ option and default everyone to ‘Only Me’

    Is this possible to do? Thanks


    Wordpress 4.8.3
    Buddypress 2.9.2

    I’ve written on the support forum for the plugin BuddyPress Xprofile Custom Fields Type but it seems the plugin author hasn’t answered anything in 8 months:

    After upgrading wordpress from 4.8.2 to 4.8.3 the Custom Taxomony Multisector is not displaying/working correctely in the dashboard user extended profiles tab. The users chosen selection is no longer displayed. The entire list is shown. From the front end everything works correctly. The user can select/unselect multiple organizations/specialties. I’ve look at the code in both the front and back end and it is identical. I don’t see any js errors in the console. I thought perhaps the jQuery hadn’t been initialized, but it looks like everything is correct. The only other thing that is weriod is the help / options dropdown at the top of the dashboard screen won’t open. Any help would be apprieciated.

    creative nomad

    I’m looking for the file or a way to change the words profile details on the registration form

    Boone Gorges

    Hi @willallen83 – I’m afraid I haven’t integrated with s2member in many years, so I can’t provide exact advice. But briefly, it appears that the code above is meant to sync the $s2member_fields fields – which I assume are defined somewhere in s2member – to the corresponding members of the $xprofile_fields array. The latter fields are created in Dashboard > Users > Profile fields; make sure the names (like ‘Last Name’) match exactly, or the lookup will fail.

    Note also that it may be more reliable to fetch user info from the values passed by the ‘wp_login’ hook to the function. So something like this:

    function s2_profile_field_update( $user_login, $user ) {
      //Array of xprofile field names
      $xprofile_fields = array('Last Name','Country','Introduce yourself to Aisha Salem');
      //Array of s2member field slugs
      $s2member_fields = array('last_name','user_country','member_letter_aisha');
      //Populates BP with S2 info
      // if( current_user_is("s2member_level1") ) {
           for($i = 0; $i < sizeof($xprofile_fields); $i++) {
              if(xprofile_get_field_data($xprofile_fields[i], $user->id) == '' && get_user_field($s2member_fields[i]) != '' )  {
                  xprofile_set_field_data($xprofile_fields[i], $user->id, get_user_field($s2member_fields[i]) );
      // }

    Note that, according to this code, it’ll only update the BP xprofile fields if they’re empty. You’ll have to remove that check if you always want s2member values to take precedence.

    Beyond this, your best bet for figuring out why this is not working is to place some debug statements at various points. Use error_log() or good old-fashioned var_dump() to make sure (a) the function is actually firing at ‘wp_login’, (b) the xprofile field values are actually being fetched properly, (c) the get_user_field() function is fetching data properly, and from the correct user, etc.



    I am using WordPress 4.8.3, BuddyPress 2.9.2, and s2Member 170722

    I am doing everything that I can to integrate BuddyPress and s2Memeber.

    I am hoping to get a smooth registration process going. With a free membership and a paid membership, s2member_level1. It seems no matter what I do, the registration process is ugly, and they don’t really talk to each other.

    Currenlty, I am trying the code out from this post It seems very promising. I have modified the code a little AND had to add some code to disable the buddypress automatic redirect from the default wordpress registration page.

    Here is my code (slightly modified from the one in the post, as I want to add this for all members, not just level2).

    // disable BuddyPress redirect from default reg page
    function my_disable_bp_registration() {
      remove_action( 'bp_init',    'bp_core_wpsignup_redirect' );
      // remove_action( 'bp_screens', 'bp_core_screen_signup' );
    add_action( 'bp_loaded', 'my_disable_bp_registration' );
    add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
    function firmasite_redirect_bp_signup_page($page ){
        return bp_get_root_domain() . '/wp-signup.php';
    // Function to populate BP Profile Fields w/ S2member Fields.
    function s2_profile_field_update() {
      global $current_user;
      //Array of xprofile field names
      $xprofile_fields = array('Last Name','Country','Introduce yourself to Aisha Salem');
      //Array of s2member field slugs
      $s2member_fields = array('last_name','user_country','member_letter_aisha');
      //Populates BP with S2 info
      // if( current_user_is("s2member_level1") ) {
           for($i = 0; $i < sizeof($xprofile_fields); $i++) {
              if(xprofile_get_field_data($xprofile_fields[i], $current_user->id) == '' && get_user_field($s2member_fields[i]) != '' )  {
                  xprofile_set_field_data($xprofile_fields[i], $current_user->id, get_user_field($s2member_fields[i]) );
      // }

    After this, nothing has really changed. I am not sure about the details.

    • Where exactly do I get the xprofile field names?
    • Where exactly do I get the s2Member field slugs?
    • Do I need to create these custom fileds with the same names in both BuddyPress and s2Members? (Which is what I have tried, so I am guessing no, or I am just doing it wrong…)

    So, as I understand it, with this code. I use the s2Member registration process and the next time the user loggs in, it is updated to their BuddyPress profile.

    Please let me know if I am not understanding this. AND PLEASE help me to understand how to do this correctly.

    Thank you so much!

    Boone Gorges

    Sure, I’m happy to point you in the right direction.

    The BuddyPress Custom XProfile Field Type plugin is probably a good one to start with. It uses the BP_XProfile_Field_Type class to register its fields. It even has an existing Datepicker field that you can use as a starting place:

    There are a few changes you’ll need to make in order for this to show two datepickers instead of one.

    – The set_format validation regex expects a single date. This will need to be modified for your new format.
    – You’ll need to modify the edit_field_html method so that it loads two separate input fields, and then write some JavaScript that assigns a jquery-datepicker to each one of them. Then you’ll need to write a little bit of extra JS that combines the two datepicker inputs into a single (probably hidden) field, which is the one that BP will actually save to the database.
    – If you decide to store the start and end date in a single row in the profile field, you’ll also need some logic that splits it into start and end when you load the edit_field_html. Another option is to store the concatenated display text – say, April 2017 - May 2017 – in BP’s native xprofile field, and to store the start and end date separately, as xprofilemeta. You’d need a custom save routine for this, but it may be a bit cleaner.

    Good luck! Sounds like a fun project.



    If you want your users to be able to select start and end times, my best suggestion is to create two separate xprofile fields, and name them accordingly: ‘Start Date’, ‘End Date’ or something like that.

    That is exactly what I did, that was only way around I found for time being. If you have any insight can you pls tell me if it is possible to have a field with JQ datepicker where I can select start and end date. I’m planning to create a filed like this just need something to start with.. that’s the hard part once I’ll have a slate to start with I can write what I want. I’ve no issues getting my hands in code I’d rather enjoy it.

    Boone Gorges

    Hi @amitrwt – The ‘Start’ and ‘End’ fields in the BP admin settings define the start and end dates of a single datepicker. That is, if you want to have a datepicker, but you only want to show dates between the years 1970 and 1990, you’d use those dates as the Start and End.

    If you want your users to be able to select start and end times, my best suggestion is to create two separate xprofile fields, and name them accordingly: ‘Start Date’, ‘End Date’ or something like that.

Viewing 25 results - 1 through 25 (of 5,080 total)
Skip to toolbar