Custom Signup Fields
I’m pulling my hair out on this problem and it is problem something super easy that I’m missing as I’m new to BuddyPress. I’m trying to create a plugin that allows users to select some groups during the registration process that they can join after activation. I have everything set up to get them into the groups once they activate, my issue is that I can’t seem to store the group IDs they selected in the meta filed of wp_signups until they actually activate. I’m using the following code to create the list of groups and checkboxes:
<?php $i = 0; ?>
<?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
<input type=”checkbox” id=”field_<?php echo 51+$i; ?>_<?php echo $i; ?>” name=”field_50” value=”<?php bp_group_id(); ?>” /><?php bp_group_name(); ?>
<?php $i++; ?>
<?php endwhile; endif; ?>
The checkboxes all show up fine on the signup page but when I check the wp_signups table, I don’t see the array of data I’m expecting. Any help would be greatly appreciated.
- The topic ‘Custom Signup Fields’ is closed to new replies.