You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jörn Lund edited this page Oct 27, 2018
·
2 revisions
Adding an edit shortcut to the themes HTML output can be achieved by calling one of the acf_customizer_field, acf_customizer_row or acf_customizer_sub_field actions.
Single fields
Let‘s assume you output some field somewhere in your theme.
while ( have_rows('repeatable_field') ) {
the_row();
// This will create a shortcut to the entire repeaterdo_action( 'acf_customizer_row' );
the_sub_field('repeated_field');
// That on creates a shortcut directly to the input of 'repeated_field'do_action( 'acf_customizer_sub_field', 'repeated_field' );
}