How to load ACF groups With jQuery or Ajax

When i want to edit wordpress page, it is taking 2min to load bcz of custom fields, am loading same type of custom filed 3 times, it will give the option to select the posts, left side we have latest 20 posts and right side we have a option to drag and drop selected posts so am thinking to load this custom filed after page loads can any one help me how to load custom filed after page load or any other solution please.am using the acf_add_local_field_group and below is my custom field code.

Can any one suggest me how to decrease the load time of my page

[
‘key’ => ‘field_58c133c48567bbb’,
‘label’ => ‘Content’,
‘name’ => ‘curated-content’,
‘type’ => ‘relationship’,
‘instructions’ => ”,
‘required’ => 1,
‘conditional_logic’ => array (
array (
array (
‘field’ => ‘field_58beb353edf35354b’,
‘operator’ => ‘==’,
‘value’ => ‘default’,
),
),
array (
array (
‘field’ => ‘field_58beb353edf35354b’,
‘operator’ => ‘==’,
‘value’ => ‘hero’,
),
),
array (
array (
‘field’ => ‘field_58beb353edf35354b’,
‘operator’ => ‘==’,
‘value’ => ‘grid’,
),
),
),
‘taxonomy’ => [
],
‘min’ => 1,
‘max’ => ”,
‘filters’ => [
0 => ‘search’,
1 => ‘post_type’,
2 => ‘taxonomy’
],
‘elements’ => [
0 => ‘featured_image’
],
‘return_format’ => ‘object’
],

Read more here:: How to load ACF groups With jQuery or Ajax

Leave a Reply

Your email address will not be published. Required fields are marked *