Title: Fields not shown
Last modified: August 21, 2016

---

# Fields not shown

 *  Resolved [HansTis](https://wordpress.org/support/users/hanstis/)
 * (@hanstis)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fields-not-shown/)
 * Hi,
 * I’m using WP version 3.8 with BP version 1.9 and your plugin version 1.5.8.2.
   After reading the FAQs I have added `<?php do_action ( 'bp_custom_profile_edit_fields_pre_visibility');?
   >` in /mythme/members/single/profile/edit.php, the first lines of edit.php now
   look like:
 *     ```
       <?php do_action ( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>
       <?php do_action( 'bp_before_profile_edit_content' );
       if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
       	while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
       <form action="<?php bp_the_profile_group_edit_form_action(); ?>” …..
       ```
   
 * Sorry to say the fields are still not shown on the registration page. I’ve temporary
   deactivated most other plugins but no succes. Can you tell me what I’m doing 
   wrong?
 * Best regards, Hans.
 * [http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/](http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [HansTis](https://wordpress.org/support/users/hanstis/)
 * (@hanstis)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fields-not-shown/#post-4432932)
 * Just some more info, I have just located the line:
 * `<?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>`
 * within edit.php (part of DynamiX Theme), but fields are not shown on register
   page 🙁
 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fields-not-shown/#post-4432983)
 * For register page, you need to add this hook to register page and not edit profile
   form. If you read the faq you have read you need to put this code in edit.php
   and register.php.
 *  Thread Starter [HansTis](https://wordpress.org/support/users/hanstis/)
 * (@hanstis)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fields-not-shown/#post-4432986)
 * Thanks for answering and apologize for not reading what you wrote about adding
   the code to both php-files. For now Xprofile fields are shown on the edit profile
   page (via edit.php) but not on the registration page. I think this has something
   to do with placing the code on the right place but I did not succeed. Not even
   after trying several sections where I’ve placed it including between <form> and
   </form>. Could you please be more specific about “just before the code of visibility
   settings”?
 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fields-not-shown/#post-4432987)
 * You need to search this code:
 *     ```
       <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
           <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
               <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
           </p>
   
           <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
               <fieldset>
                   <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
   
                   <?php bp_profile_visibility_radio_buttons() ?>
   
               </fieldset>
               <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
   
           </div>
       <?php else : ?>
           <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
               <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
           </p>
       <?php endif ?>
       ```
   
 * Just before this code you need to write:
    `<?php do_action( 'bp_custom_profile_edit_fields_pre_visibility');?
   >`
 *  Thread Starter [HansTis](https://wordpress.org/support/users/hanstis/)
 * (@hanstis)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fields-not-shown/#post-4432990)
 * Problem solved, thanks for your support and the great plugin!
 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fields-not-shown/#post-4432992)
 * You’re welcome!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Fields not shown’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-xprofile-custom-fields-
   type.svg)
 * [Buddypress Xprofile Custom Fields Type](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/reviews/)

## Tags

 * [shown](https://wordpress.org/support/topic-tag/shown/)

 * 6 replies
 * 2 participants
 * Last reply from: [donmik](https://wordpress.org/support/users/atallos/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/fields-not-shown/#post-4432992)
 * Status: resolved