BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Auto add list of countries to new Profile Field (WP backend)?
- This topic has 7 replies, 3 contibutors, and was last updated 8 years, 8 months ago by Anonymous.
Question
February 29, 2016 at 4:23 am #60709@mln83Is this possible somehow? 🙂
Would be great since it would take some time to manually add all 202 countries from the world.
Best regards,
MichaelAnswers
February 29, 2016 at 5:12 am #60715@
AnonymousHi @mln83
Please try following, it will helphttps://gist.github.com/slaFFik/67e5782da62a2577d1f8
Regards
Varun DubeyFebruary 29, 2016 at 8:28 am #60762@mln83Hi @vapvarun,
Thanks. It worked! 🙂
Can I safely delete bp-custom.php afterwards or is it required to stay in /wp-content/plugins/ ?
Best regards,
MichaelFebruary 29, 2016 at 12:41 pm #60797@
AnonymousHi @mln83,
It is required to say inside it and it is standard practice for BuddyPress specific customization.
RegardsFebruary 29, 2016 at 2:35 pm #60811@mln83Thanks @vapvarun,
I was wondering – if I want to change / remove the list again at some point can I make the changes inside the bp-custom.php file and will the User fields in WP-Backend automatically be updated?
The reason that I ask is because I am thinking about changing ‘field_group_id’ to ‘2’ instead of ‘1’ as the country list shouldn’t show up during registration but instead be shown from a second Field Group which I have created in WP backend. This second field group contains optional fields that the user can fill in after registration.
Best regards,
MichaelMarch 13, 2016 at 11:33 pm #62851@
AnonymousHi @mln83, Hope you are doing good today
Is your problem resolved? you can try to replace the id in the code.
Feel free to post a reply if you need further support with this issue.
Regards
March 14, 2016 at 2:12 am #62871@mln83Hi @pallavi,
Thanks it’s fine now. I decided to keep “Country” in the “Primary” field group.
I am having another critical issue here – https://www.buddyboss.com/support-forums/topic/require-user-to-agree-with-site-terms-and-conditions-upon-signup/
I would really appreciate it if you could advise me on any plugins/code or solutions to help solve this problem?
Best regards,
MichaelMarch 14, 2016 at 2:36 am #62875@
AnonymousOkay I will check that and reply you there..
Thanks
- The question ‘Auto add list of countries to new Profile Field (WP backend)?’ is closed to new replies.