Adding menu_order to CPT admin page

Yes, you need to write code to populate it. This is untested but should work. add_filter(‘manage_edit-cpt_roundtable_columns’, ‘init_roundtable_custom_columns’); function init_roundtable_custom_columns($columns) { return array( ‘cb’ => ‘<input type=”checkbox” />’, ‘title’ => __(‘Title’), ‘taxonomy-sessions’ => __(‘Session’), ‘menu_order’ => __(‘Order’), ‘date’ => __(‘Date’), ); } add_action(‘manage_cpt_roundtable_posts_custom_column’, ‘manage_roundtable_custom_columns’, 10, 2); function manage_roundtable_custom_columns($column, $post_id) { $the_post = get_post($id); switch ($column) { … Read more

How do I include drag-and-drop in a plugin?

WordPress has a few of these libraries that come with core, you can view the list here: Default Scripts Included and Registered by WordPress. What you’re looking for is Draggable, Sortable, and in your case Droppable. You would use wp_enqueue_script() to add it like so: wp_enqueue_script( ‘jquery-ui-droppable’ ); WordPress registers these scripts using a Handle … Read more