YAY! I think I’ve solved it.
I just edited
wp-content/plugins/advanced-custom-fields-pro/input.js
and commented out this
$(window).load(function(){
// action for 3rd party customization
//acf.do_action('load', $('body'));
});
and
$(document).ready(function(){
// action for 3rd party customization
//acf.do_action('ready', $('body'));
});
the repeater fields still work, and the JavaScript timeout is gone. Even though it’s 114k lines of html…
What could this mess up? What am I missing doing this?
No, not really. Ideally would be to have ACF group the objects with sets of 50 or something and then have a pager then? Would that be possible?
Hi!
LOL, yeah, holy crap. 114100 lines of html. no wonder it freaks out. What’s causing this? just too many fields?
Is the plugin improperly used? Can we fix this somehow? It’s ~400-500 reapeating fields maximum, how can that generate 114K lines of html? That’s 285 lines of code per field, not counting the other stuff.
Please advice…
Hi, here is an export!
if( function_exists('register_field_group') ): register_field_group(array ( 'key' => 'group_5406e917d2c05', 'title' => 'Photographers', 'fields' => array ( array ( 'key' => 'field_5366797490f4c', 'label' => 'User tag', 'name' => 'user_tag', 'prefix' => '', 'type' => 'checkbox', 'instructions' => '', 'required' => 0, 'conditional_logic' => array ( array ( array ( 'field' => 'field_5310682236562', 'operator' => '==', 'value' => '1', ), ), ), 'choices' => array ( 'architecture' => 'Architecture', 'babykids' => 'Baby / Kids', 'beauty' => 'Beauty', 'lifestyletravel' => 'Lifestyle / Travel', 'fashion' => 'Fashion', 'food' => 'Food', 'interior' => 'Interior', 'portrait' => 'Portrait', 'sport' => 'Sport', 'still-life' => 'Still life', 'film' => 'Film', ), 'default_value' => array ( ), 'layout' => 'vertical', ), array ( 'key' => 'field_5310682236562', 'label' => 'Main category', 'name' => 'author_category', 'prefix' => '', 'type' => 'select', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'choices' => array ( 1 => 'Photography', 17 => 'DOP / Film', 7 => 'Styling / Set design', 8 => 'Food styling', 11 => 'Interior styling', 6 => 'Illustration', 12 => 'Animation', 22 => 'Graphic design', 18 => 'Prop maker', ), 'default_value' => array ( 99 => 'Not formatted', ), 'allow_null' => 0, 'multiple' => 0, 'ui' => 0, 'ajax' => 0, 'placeholder' => '', 'disabled' => 0, 'readonly' => 0, ), array ( 'key' => 'field_530faeaedd2cb', 'label' => 'Photos / Videos', 'name' => 'photo_photos', 'prefix' => '', 'type' => 'repeater', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'row_min' => '', 'row_limit' => '', 'layout' => 'table', 'button_label' => 'Add Row', 'min' => 0, 'max' => 0, 'sub_fields' => array ( array ( 'key' => 'field_530faebfdd2cc', 'label' => 'Photo', 'name' => 'photo_photo', 'prefix' => '', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'preview_size' => 'thumbnail', 'library' => 'all', 'return_format' => 'array', ), array ( 'key' => 'field_531097b005a25', 'label' => 'Client', 'name' => 'photo_client', 'prefix' => '', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_53105c9eff49a', 'label' => 'Type', 'name' => 'photo_category', 'prefix' => '', 'type' => 'select', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'choices' => array ( 1 => 'Photography', 17 => 'DOP / Film', 7 => 'Styling / Set design', 8 => 'Food styling', 11 => 'Interior styling', 6 => 'Illustration', 12 => 'Animation', 22 => 'Graphic design', 18 => 'Prop maker', ), 'default_value' => array ( ), 'allow_null' => 0, 'multiple' => 0, 'ui' => 0, 'ajax' => 0, 'placeholder' => '', 'disabled' => 0, 'readonly' => 0, ), array ( 'key' => 'field_530faed8dd2cd', 'label' => 'Tags', 'name' => 'photo_tags', 'prefix' => '', 'type' => 'repeater', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'row_min' => '', 'row_limit' => '', 'layout' => 'table', 'button_label' => 'Add Row', 'min' => 0, 'max' => 0, 'sub_fields' => array ( array ( 'key' => 'field_530fb01d61d89', 'label' => 'Tag', 'name' => 'photo_tag', 'prefix' => '', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'html', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), ), ), array ( 'key' => 'field_5375f578e5214', 'label' => 'Vimeo Video ID', 'name' => 'photo_vimeo', 'prefix' => '', 'type' => 'text', 'instructions' => 'Exempelvis 7100569', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'html', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), ), ), ), 'location' => array ( array ( array ( 'param' => 'user_role', 'operator' => '==', 'value' => 'all', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'seamless', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', )); endif
Latest version of ACF Pro by the way
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.