Support

Account

Home Forums ACF PRO How to disable drag&drop ordering function on a specific Repeaters field? Reply To: How to disable drag&drop ordering function on a specific Repeaters field?

  • I finally have the solution (which works for me, but I think most people can use this)… and it was so easy (in hindsight).

    The only thing you need to do is remove the class order from the field.
    Since I add an extra class to the repeaters I don’t want users to move, it was fairly simple to limit it to these repeaters.

    jQuery(document).ready(function() {
        jQuery(".disable-sorting table.acf-table td.order").removeClass("order");
    });
    

    If you want it done on all your repeaters, just remove the class .disable-sorting.