• Hi! I am trying to fix the addon to work with acf v5. i think most of the problem is with the js files.

    like the one in field group js

    $(document).ajaxSuccess(function() {
    			$('#acf_location .location-groups td.value select:visible').each(onRuleChange);
    		});
    
    		// on load
    		$('#acf_location .location-groups td.value select:visible').each(onRuleChange);
    
    		// on field value change
    		$('#acf_location .location-groups').on('change', 'input[data-meta]', function() {
    			$(this).parents('tr[data-id]').find('td.param select').each(onValueChange);
    		});

    the #acf_location is now using

    $(document).ajaxSuccess(function() {
    			$('#acf-field-group-locations .location-groups td.value select:visible').each(onRuleChange);
    		});
    
    		// on load
    		$('#acf-field-group-locations .location-groups td.value select:visible').each(onRuleChange);
    
    		// on field value change
    		$('#acf-field-group-locations .location-groups').on('change', 'input[data-meta]', function() {
    			$(this).parents('tr[data-id]').find('td.param select').each(onValueChange);
    		});

    There are also incompatibility issues with the input js

    the selector being used
    div[data-field_name="'+this+'"] select
    is no longer available.

    is there any updates with upgrading this to work with acf v5? i think this addon will be a very helpful feature for acf pro. i hope you can update it to the latest version.

    https://wordpress.org/plugins/advanced-custom-fields-meta-location-rule/

  • The topic ‘Any updates with the ACF V5 compatibility issues’ is closed to new replies.