Support

Account

Home Forums Front-end Issues Removing ACF user fields on front end form

Unread

Removing ACF user fields on front end form

  • We have a front end profile update form.

    We’d like to hide some of the ACF fields from displaying on the front end only. As well as the H2 title.

    Is this possible?

    The fields are hooked onto this command.

    <?php 
    //action hook for plugin and extra fields								do_action('edit_user_profile',$current_user); 
    ?>

    field html

    <h2>Wordpress author  (wonkhe2)</h2>
    <table class="form-table"><tbody><tr class="acf-field acf-field-post-object acf-field-57641aa96fdb1" data-name="link_to_author_staff" data-type="post_object" data-key="field_57641aa96fdb1">
    		<td class="acf-label"><label for="acf-field_57641aa96fdb1">Link to author / staff</label></td>
    		<td class="acf-input">
    		<input id="acf-field_57641aa96fdb1-input" name="acf[field_57641aa96fdb1]" type="hidden">
    <select id="acf-field_57641aa96fdb1" class="select2-hidden-accessible" name="acf[field_57641aa96fdb1]" data-ui="1" data-multiple="0" data-placeholder="Select" data-allow_null="1" tabindex="-1" aria-hidden="true"><option value="" selected="selected" data-i="0">- Select -</option></select><span class="select2 select2-container select2-container--default -acf" dir="ltr" style="width: 100%;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-acf-field_57641aa96fdb1-container"><span class="select2-selection__rendered" id="select2-acf-field_57641aa96fdb1-container"><span class="select2-selection__placeholder">Select</span></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
    			</td>
    </tr>
    </tbody></table>

    many thanks, D.

Viewing 1 post (of 1 total)

The topic ‘Removing ACF user fields on front end form’ is closed to new replies.