Support

Account

Home Forums Feature Requests Feature Request: Hidden / Disabled Field Type Reply To: Feature Request: Hidden / Disabled Field Type

  • If you want a quick and dirty fix to add “edit” links to your repeater post selectors, add this snippet into the input.js file (adjust the wp-admin url if needed):

    /wp-content/plugins/acf-repeater/js/input.js

    on line 125 at the end of the render function

    /*EDIT LINK START*/
    			$('.repeater, .field_type-post_object').find('.post_object').each(function(){
    				var $editLink = $(this).parent().find('.edit-field-link');
    				if($editLink.length == 0)
    				{
    					$editLink = $('<a href="/wp-admin/post.php?post='+$(this).val()+'&action=edit" class="edit-field-link">Edit</a>');
    					$(this).before($editLink);
    				}
    			});
    			$('.repeater, .field_type-post_object').on('change','.post_object',function(){
    				var $editLink = $(this).parent().find('.edit-field-link');
    				$editLink.attr('href','/wp-admin/post.php?post='+$(this).val()+'&action=edit');
    			});
    			/*EDIT LINK END*/