=== Gnarly Frontend Page Sort === Contributors: olie480 Tags: wordpress, admin, pages, page sorting, frontend Requires at least: 3.9 Tested up to: 3.9.1 Stable tag: 1.0 License: GPLv3 Donate link: https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=b-6EV4MS6gQ9Wgixrs6Hgv4aiG9ax1HjZjqOAX6RltwK92g5MxPQWNvHqxa&dispatch=50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b081988ee87121ca8032a43984da2b890102b1 License URI: http://www.gnu.org/licenses/gpl-3.0.html Drag & Drop sorting of pages on the front end of your wordpress site. Great for sites that use get_pages to list sub pages of a parent page. == Description == Gives user the ability to order sub-pages on the parent page from the frontend of Wordpress. There are some backend plugins that do this, but I recently had a project that had about 30 parent pages, and those had sub-pages, and the sub-pages had sub-pages. We needed to find an alternative solution on the frontend because the majority of the plugins were drag and drop on the admin screen. This fixed this problem. == Installation == This is the code I used to list the child pages on a parent page. I changed the sort_column to menu_order instead of the default post_title, and the sort_order is asc. 0, 'child_of' => 0, 'parent' => $post->ID, 'number' => '', 'sort_order' => 'asc', 'sort_column' => 'menu_order' ); $child_pages = get_pages( $args ); ?> With the Child pages, I then created a custom loop (an example will be included later on in a separate file. I made 2 functions to spit out the pages of the parent page). From there I can add the gnarly tags to the parent container and the child items. When you install the plugin, just find the template that controls your pages loop and make the following modifications. This example uses Twenty-Fourteen as an example.