Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
- <div class="editfield">
- <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
- <label for="<?php bp_the_profile_field_input_name() ?>"><?php _e( 'bp_the_profile_field_name()', 'buddypress' ) ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
- <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
- <input type="text" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" value="<?php bp_the_profile_field_edit_value() ?>" />
- <?php endif; ?>
- ....
- with your fields like :
- <div class="editfield"><label for="field_1"><?php _e( 'Name', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
- <?php do_action( 'bp_field_1_errors' ) ?>
- <input type="text" name="field_1" id="field_1" value="" />
- <label for="field_2"><?php _e( 'About me', 'buddypress' ) ?></label>
- <?php do_action( 'bp_field_2_errors' ) ?>
- <textarea rows="5" cols="40" name="field_2" id="field_2"><?php bp_the_profile_field_edit_value() ?></textarea>
- .....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement