BuddyPress Xprofile Custom Field Types

BuddyPress Xprofile Custom Field Types plugin adds some essential profile field types to BuddyPress. The new BuddyPress custom profile fields allow you to provide more flexibility to your users.

BuddyPress Custom Xprofile Fields:-

  • Birthdate/Age:- Allows users to select a date and show it as age/date.
  • Checkbox Acceptance:- Want to get users' consent on something. Use this as the terms box.
  • From/To Value:- Can be used to show 2 numbers or text strings.
  • Image field:- Let users upload/add images on their profile.
  • File Field:- Allows users to add files to their profile field.
  • Token:- Allows to pre-define a set of values and only accepts them.
  • oEmbed:- Allows using videos or any embed supported content.
  • Post Type Selector:- Let users select a post and show it on their profile.
  • Multi Post Types Selector:- Lets user select multiple posts and shows it on their BuddyPress Profile.
  • Taxonomy Selector:- Allows users to select a term and show it on their profile.
  • Multi Taxonomy selector:- Allows users to show multiple terms on their profile. Optionally, You can also allow users to create new terms.
  • Email:- Let users add a valid email to the profile.
  • Color:- Let users choose a color and show it.
  • Date selector:- Honestly, you don't need it. It is for backward compatibility with the BuddyPress Xprofile Custom Fields Type plugin.
  • Slider:- Allow users to select values within a range using the range slider.
  • Min Max Xprofile field:- This allows you to force users to add a value between the given min/max range.
  • Decimal:- Allow users to select a decimal value.
  • Web:- It is the same as the BuddyPress URL field.
  • Country Field:- Let's you have a country drop down field.
  • Tags:- User generated tags field type.




  • Visit to dashboard->Plugins->Add New
  • Search for "BuddyPress Xprofile Custom Field Types"
  • Click Install, and activate it after installation.

Adding New Profile Fields:-

Please visit `dashboard->Users->Profile Fields

  • Add New Field
  • Select a field type(from Custom Fields)
  • If the field has options, please update the options and save.
  • Have fun or you may want to visit the profile edit section to test it.

Deleting and existing Field:-

  • Visit Dashboard->Users->Profile Fields
  • Delete.

Migrating from BuddyPress Xprofile Custom Fields Type:-

The main noticeable difference for site admins between these plugins is how we store the field preferences. In our version, we are storing the settings in the meta field. The original version(not ours), stored in the child options which was a bad choice.

In order to migrate:-

  • Make sure to take a backup of your database.
  • Only the following field types need to be updated:- Birthdate, Checkbox Acceptance, Slider, Min-Max, Post Type, Multi Post Types, Taxonomy, Multi taxonomy, Decimal. All these fields will lose old settings.
  • Visit your profile Fields Screen, and for each of the above field types, Note down the settings.
  • Now either disable or remove the old BuddyPress Xprofile Custom Fields Type plugin and activate ours.
  • Visit the Edit field page in the admin for each of the above field types.
  • Update the settings as required.
  • That's it.

Frequently Asked a question:-

How much credit to the original plugin?

For inspiration 95%(or give 100%), for code 30%(I might deduct some more).

How is this plugin better?

I may misguide you, why not enlighten yourself by looking at the code. The lights of your IDE should guide you to the right choice.

What did you do to the original plugin's field type:-

Added some power punch and revived it. They are better, stronger, and are here to become your friend(again). Also, I can promise that they are going to live longer now.

Is this a new plugin or just an update of the BuddyPress Xprofile Fields Type:-

At the moment, It is a completely new rewrite and a whole new structure. It still keeps the old field types for backward compatibility.

What is the future of this plugin?

Don't ask me, ask the Oracle. If I have to predict, the future looks promising to me.

Why the fields are the same as the older plugin:-

It is to provide backward compatibility dear Watson. Will you like your users to get mad at you? I thought otherwise.

Why the migration headache?

A wise mine once said that the pain makes you stronger. In this case, It will make your website stronger and more resilient.

If I migrate, will users' data be lost?

Nope. We do not want you to look bad to your members. After all, if you are using our plugin, you are a part of the family(extended maybe). No user data will be lost in migration.

What is the minimum PHP version required:-

PHP 5.3. Anything below it is bad for the health of your site. Also, you should consider upgrading to PHP 7(.1,.2 whatever).

When will you add support for BP Profile search:-

As promised, We have added support for the BP Profile Search plugin. BuddyPress Xprofile Custom Field Types 1.0.3 added support for the BP Profile Search plugin.

Any other comments:-

Yes. I believe the field types color, date picker, Web are unnecessary types in this plugin. They are either not that great(someone should make BuddyPress great again) or have a better alternative in BuddyPress core. Also, if there is anything good in this plugin, I will gladly take all the credit. If there is something bad, let us find someone else to blame.

Where do I get support:-

If you can, buy a membership and use our premium forums. If you can't, no problem. Use our community forums.

Release History

  • Version: 1.2.5

    Wednesday, 02 November, 2022
    • Tested With: BuddyPress 10.6.0
    • Compatible With: BuddyPress 8.0+

    Updated compatibility with BP Profile Search plugin for Country field type.

  • Version: 1.2.3

    Wednesday, 08 June, 2022
    • Tested With: BuddyPress 10.3.0
    • Compatible With: BuddyPress 6.0+

    Added country field support when used with BP Profile Search plugin.
    Fixed the selected country not showing on edit profile page.

  • Version: 1.2.2

    Sunday, 17 April, 2022
    • Tested With: BuddyPress 10.2.0
    • Compatible With: BuddyPress 5.0+

    Added the filter 'bpxcftr_countries_list' to allow customizing countries list via code.

  • Version: 1.2.1

    Tuesday, 08 March, 2022
    • Tested With: BuddyPress 10.1.0
    • Compatible With: BuddyPress 8.0+

    Fixed file size error.

  • Version: 1.2.0

    Thursday, 09 September, 2021
    • Tested With: BuddyPress 9.1.0
    • Compatible With: BuddyPress 6.0+

    Added Tags Field Type(allows adding custom tags by user). Development sponsored by a kind gentleman.

  • Version: 1.1.9

    Monday, 28 June, 2021
    • Tested With: BuddyPress 8.0.0
    • Compatible With: BuddyPress 6.0+

    Added support for BuddyBoss Profile Search

  • Version: 1.1.8

    Thursday, 03 December, 2020
    • Tested With: BuddyPress 7.0.0
    • Compatible With: BuddyPress 4.0+

    Added country field.
    Added option for admins to choose if web links would open in new window/tab.
    Fixed the issue with From/To value deletion. Thank you @johan_walter
    Fixed web field always using http schema instead of the specified one.

  • Version: 1.1.7

    Saturday, 10 October, 2020
    • Tested With: BuddyPress 6.3.0
    • Compatible With: BuddyPress 4.0+

    Fix image/file not getting deleted when a user was deleted or marked spam.
    Fix issue with the default values of from/to field not being shown.
    Add option to select value separator in the from/to field.
    Fix deletion of value of From/To field when using numeric values.
    Prop @johan_walter for the suggestions.

  • Version: 1.1.6

    Saturday, 08 August, 2020
    • Tested With: BuddyPress 6.2
    • Compatible With: BuddyPress 4.0+

    Fix conflict of bitrhdate settings with date field settings.
    Fix terms checkbox issue in the dashboard.
    Cleanup files/images on user being marked spam or user deletion.
    Added French translations. Props Johan Walter.

  • Version: 1.1.5

    Tuesday, 03 March, 2020
    • Tested With: BuddyPress 5.1.2
    • Compatible With: BuddyPress 4.0

    Fix script loading on dashboard edit profile page.

  • Version: 1.1.4

    Monday, 03 February, 2020
    • Tested With: BuddyPress 5.1.2
    • Compatible With: BuddyPress 2.5+

    Updated to avoid registering our script handles on the pages not relavan to us. Fixes select2 conflict for some.

  • Version: 1.1.3

    Wednesday, 25 December, 2019
    • Tested With: BuddyPress 5.1.1
    • Compatible With: WordPress 4.0+

    Added an action to notify file deletion.

  • Version: 1.1.2

    Friday, 20 December, 2019
    • Tested With: BuddyPress 5.1
    • Compatible With: WordPress 4.0+

    Include Select2 full script.
    Pass values and other data to xprofile age display data.

  • Version: 1.1.1

    Tuesday, 08 October, 2019
    • Tested With: BuddyPress 5.0
    • Compatible With: BuddyPress 3.0+

    Fixed signup token validation.
    Added German Translations by Thorsten.

  • Version: 1.1.0

    Friday, 04 October, 2019
    • Tested With: BuddyPress 5.0
    • Compatible With: BuddyPress 3.0+

    New: Added oEmbed field type. allows using facebook, youtube, vimeo and other urls and embed them in BuddyPress user profile.
    New: Token field type. Define a set of codes and ask your users to enter the codes. Could be used to simulate invite only registration.
    Updated: TOS field type to allow adding more html tags and not filtering the attributes like target etc.
    Fix:- Options loading in admin.
    New:- Add extra label for Age(Birthdate field type). You can use different label for view/edit field name.
    For More, please see our blog.

  • Version: 1.0.9

    Saturday, 25 May, 2019
    • Tested With: BuddyPress 4.3
    • Compatible With: BuddyPress 2.9+

    Fix the file/image field editing when the field is marked as required.

  • Version: 1.0.8

    Tuesday, 16 April, 2019
    • Tested With: BuddyPress 4.2
    • Compatible With: BuddyPress 2.9+

    Fixes error caused by non required image/file field types on signup page.

  • Version: 1.0.7

    Friday, 01 March, 2019
    • Tested With: BuddyPress 4.2
    • Compatible With: BuddyPress 2.9+

    Fix a bug with multi post type selector.
    Fix upload issue in dashboard profile update screen. Thank you @laudag.
    Fix the loading of locale file for select2 js.

  • Version: 1.0.6

    Monday, 05 November, 2018
    • Tested With: BuddyPress 3.2
    • Compatible With: BuddyPress 2.9+

    Update select2 js library to latest stable version(1.0.6)
    Enable select2 on dashboard edit profile page if enabled.
    Fix a notice.

  • Version: 1.0.5

    Thursday, 06 September, 2018
    • Tested With: BuddyPress 3.1
    • Compatible With: BuddyPress 2.9+

    * Fix the date format for birthdate checking. Now it validates correctly(Earlier only year and month was significant).
    * Fix a validation issue with registration page when birthdate is not selected correctly and min age is required.
    * Improve from/to field display filter.
    * Fix translation for the birthdate field.