Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding XProfile Fields to Registration Form


  • bennypowers
    Participant

    @bennypowers

    I’m using WPMUDEV’s Membership 2 Pro plugin. I’d like to add XProfile fields to the registration form. Here’s my attempt:

    <?php
    
    add_action('signup_extra_fields', 'igi_change_reg_fields');
    
    function igi_change_reg_fields() {
      if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile() ) : while ( bp_profile_groups() ) : bp_the_profile_group();
      echo '<input type="hidden" name="'.bp_the_profile_field_input_name().'" id="'. bp_the_profile_field_input_name().'" value="'. bp_the_profile_field_edit_value().'"';
    
       endwhile; endif; endif;
    
    }

    This produces:

    field_field_
    Warning: Creating default object from empty value in /home/bennyp5/public_html/israelguides.info/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-template.php on line 520

    Please help me to understand where I’m going wrong.

    Best,

Viewing 1 replies (of 1 total)

  • modemlooper
    Moderator

    @modemlooper

    any profile fields you add to the first field group get added to the registration form.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar