Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Carlo Falcini

change Select2 post order when inline edit

Hi, I’ve stumbled upon a little but tedious problem: preserve the actual posts order when update a field using inline edit.

I try to explain better:
I have a ACF relationship field, in which I put some posts and give them the order using simple drag’n’drop in Gutenberg;
the problem is: when I update that field using inline edit, order isn’t preserved because is overridden by Select2 order (which is alphabetical).

Any suggestion, please :) ?

1 year, 6 months ago
Stefan van den Dungen Gronovius
Developer

Unfortunately, no suggestion.
We do have this ticket on our backlog, but the way Select2 works and the way items are stored, we did not find a solution for this issue (yet). And I’m afraid there is no workaround for that at this moment.

1 year, 6 months ago
Carlo Falcini

Thank you for your reply. I’ve seen some related tickets on gitHub, in which suggests to remove the elements then reattach via jQuery, but I haven’t found a way to make it works in WP backend.
For the moment, I’ll do it another way (disable inline editing for that particular item, to avoid problems)

1 year, 6 months ago

You must be logged in to reply to this topic.