Explode text to repeater (ACF)

Explode text by “,” and add to fields (ACF repeater) -> VIVI.si recepti:

    $('#explode_recepti').click(function(){

        var items = $('#explode_recepti_textarea').val().split(',').length;
        var itemsArray = $('#explode_recepti_textarea').val().split(',');

        for(i=0;i<items;i++){
            $('.acf-field-54dbe3014c9ae .acf-actions .acf-button ').click();
        }

        $('.acf-field-54dbe3014c9ae .acf-table .acf-field-text input').each(function( index , element) {
            
            $(this).val(itemsArray[index]);
        });

    });

ACF admin columns

Custom admin column from ACF field:

function my_page_columns($columns) {
    $columns = array(
        'cb'        => '<input type="checkbox" />',
        'title'     => 'Title',
        'datum'      =>  'Datum dogodka',
        'date'      =>  'Datum objave',
    );
    return $columns;
}

function my_custom_columns($column) {
    global $post;

    if ($column == 'datum') {
        echo get_field( "datum", $post->ID );
    } else {
         echo '';
    }

}
add_action("manage_dogodki_posts_custom_column", "my_custom_columns");
add_filter("manage_dogodki_posts_columns", "my_page_columns");

ACF choices dynamic (revolution slider)

Get ACF choices dynamic – Revolution slider:

function acf_load_color_field_choices( $field ) {
    // reset choices
    $field['choices'] = array();
    // get a list of all available sliders
	$my_sliders = new RevSlider();
	// grab the "alias" names of the sliders
	$my_slider_array = $my_sliders->getAllSliderAliases();
	foreach ($my_slider_array as &$value) {
	    $field['choices'][ $value ] = $value;
	}

    return $field;
}

add_filter('acf/load_field/name=revolution_slider_potep', 'acf_load_color_field_choices');

ACF settings page

Adding ACF option admin page

if( function_exists('acf_add_options_page') ) {
    acf_add_options_page(array(
        'page_title'    => 'Page Settings',
        'menu_title'    => 'Page Settings',
        'menu_slug'     => 'theme-general-settings',
        'capability'    => 'edit_posts',
        'redirect'      => false, //true redirects to the first child!!!
        'position' => 35,
    ));
    
    acf_add_options_sub_page(array(
        'page_title'    => 'Footer',
        'menu_title'    => 'Footer',
        'parent_slug'   => 'theme-general-settings',
    ));     
}