Just had a quick look. You might be able to just get away with changing the group_id field in wp_bp_xprofile_fields to the id of the new group. The data table only seems to be looking for the id field. You can do that in phpMyAdmin. Try it locally, though, first if at all possible.
Hi Peter, I had the same problem, here is the code that will move everything from group_id 1 to group_id 3
Check the id of the secondary group and change the number 3.
—
require_once(‘wp-blog-header.php’);
$x = $wpdb->get_results(“SELECT * FROM wp_bp_xprofile_fields WHERE group_id=1 and is_required=0”);
foreach($x as $k=>$v){
$wpdb->update(‘wp_bp_xprofile_fields’,array(‘group_id’=>3),array(‘id’=>$v->id));
}
Thanks Devrim. How do I “run” this? Would putting it into bp-custom.php take care of it? I know how to run a SQL query in phpMyAdmin. That’s essentially what this is, right?
Is there a reason not to try this manually in phpMyAdmin? Is the group_id field connected to/dependant on other fields that are easy to overlook?
Just a small favor from you required if you can look that- as I’m very close to execute it.
For http://www.healthitinsider.com – I’m currently using buddypress template file and having the following functionality
https://github.com/kayue/buddypress-blank/tree/master/
Activity
Blogs
Forums
Members
Registration
I would like to create a specific section like groups which I name to Company. So that user can create and register company here.
I have copy the code of groups section (code mention in previous link)- modify it and create a directory which I name company
Healthitinsider.com/wp-admin/content/themes/company
Now I would like to define function in function.php so that it will be functional and we can assign a page on the site like
http://healthitinsider.com/groups/
For style.css I’ve use the previous codes. Please let me know how we can have the following functionality.