AJAX Sortable Post Types within WordPress
Sometimes you don’t want a custom post type you’ve defined to be sorted by the publish date. soulsizzle.com has a great tutorial on making a post type sortable with an AJAX admin page.
I wanted to to add this functionality to more than one post type I’d defined, but didn’t want to repeat the code. Minimalism!
So, after making a few tweaks to the code I also wrapped it in a class so I can use it whenever I want. Yeah.
The snappily titled “WordPress – class to make custom posttypes sortable with AJAX in admin” on github:gist has it all.
But in case you don’t want to head way over there, here’s the gist of it.
This has also tickled my fancy, so I’ll probably have a go at something like that soon.