How to Persist New Order After Drag and Drop?
-
New to WordPress and PHP,
When I drag and drop posts into a new order on the admin page, the
menu_order
of the posts updates correctly in the database. However, when I refresh the admin page, the order resets.I see the bit in the FAQ on how to override ‘orderby’ and ‘order’, but I don’t understand where I would do this. Do I add this code to the wp-includes/class-wp-query.php file, or somewhere else?
Is this even what’s causing the order reset?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to Persist New Order After Drag and Drop?’ is closed to new replies.