Adding a drag and drop re-ordering from a custom post type default list [closed]

I have custom post type named ‘slider_to_be_ordered‘ and has the following arguments enabled:

 'supports'              => array( 'title', 'page-attributes' ),
 'hierarchical'          => true,

and I have the following default view:

custom post type that needs to be ordered by drag and dropping its order

I’ve seen there are plugins that enables that feature but would like to implement it using the WP-packaged jquery UI sortable but I would like to check first if there any hooks/filters/args that can be used to enable the drag and drop re-ordering, similar to the default menu re-ordering?

If the code implementation is complex, any clues on how to use jquery UI sortable to achieve the drag-and-drop effect?


Leave a Comment