Sort Posts and custom Post Type Objects (custom post types) using a Drag and Drop Sortable JavaScript AJAX interface or default WordPress dashboard.
Over 12 MILLIONS DOWNLOADS and near PERFECT rating out of 200 REVIEWS. A powerful plugin, Order Posts and Post Types Objects using a Drag and Drop Sortable JavaScript capability.
The order can be customized within default WordPress post type archive list page or a separate Re-Order interface which displays all objects. It allows reordering the posts for any custom post types you defined, including the default Posts. Post Order has never been easier.
Usage
This plugin was developed considering everyone to be able to use the sorting feature, no matter the WordPress experience:
Install the plugin through the Install Plugins interface or by uploading the post-types-order folder to your /wp-content/plugins/ directory.
Activate the Post Order plugin.
A new setting page will be created within Settings > Post Types Order, you should check with that, and make a first options save.
Using the AutoSort option as ON you don’t need to worry about any code changes, the plugin will apply the customized post order on fly.
Use the Re-Order interface which appears to every custom post type (non-hierarchical) to change the post order to a new one.
If prefer sort apply through the code, include ‘orderby’ =>’menu_order’ within custom query arguments, more details at http://www.nsp-code.com/sample-code-on-how-to-apply-the-sort-for-post-types-order-plugin/
Example of Usage
As you can see just a matter of drag and drop and post ordering will change on front side right away. If for some reason the post order does not update on your front side, you either do something wrong or the theme code you are using does not use a standard query per WordPress Codex rules and regulations. But we can still help, use the forum to report your issue as there are many peoples who gladly help or get in touch with us.
Something is wrong with this plugin on your site? Just use the forum or get in touch with us at Contact and we’ll check it out.
Need More? Check out the advanced version of this plugin at Advanced Post Types Order which include Hierarchically post types order, Manual / Automatic Sorting, Individual Categories Order, Conditionals to apply, Paginations for large list, Mobile ready, Enhanced Interface, Plugins compatibility (MultiSite Network Support, WPML, Polylang, WooCommerce, WP E-Commerce, Platform Pro, Genesis etc), font side re-order interface, … and many more !!
Want to contribute with a translation to your language? Please check at https://translate.wordpress.org/projects/wp-plugins/post-types-order http://www.nsp-code.com
Installation
Upload post-types-order folder to your /wp-content/plugins/ directory.
Activate the plugin from Admin > Plugins menu.
Once activated you should check with Settings > Post Types Order
Use Re-Order link which appear into each post type section or use default WordPress interface to make your sorting.
Screenshots
The ReOrder interface through which the sort can be created.
Sort can be managed within default WordPress post type interface.
Since I have no PHP knowledge at all, is this plugin for me?
Absolutely, you can! Unlike many other plugins, you don’t have to do any code changes to make your post order to apply, accordingly to custom-defined order. There is an option to auto-update the WordPress queries so the posts will be returned in customised order. This can be turned off (Autosort) to allow customized code usage.
How to manually apply the sort on queries
Include a ‘orderby’ => ‘menu_order’ property within your custom query arguments.
What kind of posts/pages does this plugin allow me to sort?
You can sort ALL post types that you have defined into your WordPress as long they are not hierarhically defined: Posts (default WordPress custom post type), Movies, Reviews, Data etc..
Ok, i understand about the template post types order, how about the admin interface?
There’s an option you can trigger, to see the post types order as you defined in the sort list, right into the main admin post list interface.
There is a feature that i want it implemented, can you do something about it?
All ideas are welcome and i put them on my list to be implemented into the new versions. Anyway this may take time, but if you are in a rush, please consider a small donation and we can arrange something.
Can i make certain queries to ignore the custom sort when Autosort is turned On?
I still need more features like front sorting interface, shortcodes, filters, conditionals, advanced queries, taxonomy/ category sorting etc
Consider upgrading to our advanced version of this plugin at a very resonable price Advanced Post Types Order
Changelog
2.2.4
Add code comments hints for easier understanding and follow.
Use strval when comparing strings using ===
Use additional sanitize_text_field and isset checks to avoid PHP notices.
Use === “strict equality” comparison operator instead simple
Include the check for JetPack mobile, if plugin is active.
Check if there is a post_status filter and if set to ‘all’ to continue scripts enqueue.
New filter pto/interface/query/args to allow adjustments for the re-order interface query arguments.
WordPress 6.6.1 compatibility check and tag update.
2.2.3
When order update, attempt to clear the site / server caches.
Set Yes as default for the option to Enable sortable drag-and-drop functionality within the default WordPress post type archive.
WordPress 6.5.3 compatibility tag.
2.2.1
Options interface layout updates.
Code cleanup
Remove unused svg icon file.
2.2
Formidable style fix when Autosort is active.
Plugin headers format update.
WordPress 6.5 compatibility check and tag update ( RC1 )
2.1.8
Fix: Media/images order, retrieve the items per page from user upload_per_page
2.1.4
PHP Deprecated fix: Constant FILTER_SANITIZE_STRING is deprecated
WordPress 6.4.3 compatibility check and tag update
2.1.2
PHP 8.2.4 check for compatibility
WordPress 6.4.2 compatibility check and tag update
2.1
Trigger wp_cache_flush when saving the order to clear the internal caches
WordPress 6.3 compatibility check and tag
Compatibility update for lite speed cache
2.0.9
Fix: is_plugin_active
2.0.7
Compatibility class re-build
Fix: Enfold templates when using Admin Sort
2.0.5
Merge the “default archive&drop” option and keep the individual menu Yes/No for the default WordPress interfaces, to avoid confusion.
2.0.2
The Archive drag & drop is disabled by default
Small layout changes
WordPress 6.2 compatibility tag
2.0
Update cmoposer.json to use the wpackagist.org
New option to select the drag & drop available for post types.
The drag & drop within the default WordPress interfaces can be done now through the new icon, under the checkbox, for each item.
Check if ajax call to avoid applying the order when autosort is disabled.
Update plugin header image
1.9.9.2
WordPress 6.1.1 compatibility tag
1.9.9.1
WordPress 6.0 compatibility tag
1.9.9
Fix layout change when sorting by drag&drop within default WordPress interface.
Add placeholder row size by setting a tr colspan of the dragable element.
1.9.8
Readme file updates, typos fixes.
WordPress 5.9 compatibility tag
1.9.7
Remove Twitter button
Remove unused gif image
HTPML and CSS cleanup
1.9.5.7
Code cleanup
WordPress 5.8.1 compatibility tag
1.9.5.6
Fix PHP implode() notice
1.9.5.5
Fix PHP implode() notice
1.9.5.4
Fix PHP implode() notice
Ensure the drag & drop interface show for correct post types, non hierarchically to ensure correct functionality
WordPress 5.6 compatibility tag
1.9.5.2
Clean post cache on order update to allow menu_order to change on cached data
WordPress 5.5 compatibility tag
1.9.5.1
Fix: Outputs the admin save notice through admin_notices filter
1.9.5
Fix: disable drag & drop within taxonomies interfaces; fix WooCommerce attributes sort issue
Reorder interface slight styles improvements
Compatibility tag update for WordPress 5.4.2
1.9.4.3
Option text translation update
Changed the posts class to to wp-list-table when applying sortable for better compatibility
Compatibility tag update for WordPress 5.4
1.9.4.2
Compatibility tag update for WordPress 5.3
1.9.4.1
Ignore the Events Calendar posts
Filter typo fix
1.9.3.9
Ignore sorting when doing Search and there’s a search key-phrase specified.
Ignore sorting when doing Search within admin dashboard
Removed Google Social as it produced some JavaScript errors
WordPress 4.9.7 tag update
1.9.3.6
Clear LiteSpeed Cache on order update to reflect on front side
WordPress 4.9.1 tag update
1.9.3.5
Fix: updated capability from switch_theme to manage_options within ‘Minimum Level to use this plugin’ option
Default admin capability changed from install_plugins to manage_options to prevent DISALLOW_FILE_MODS issue. https://wordpress.org/support/topic/plugin-breaks-when-disallow_file_mods-is-set-to-true/
Prepare plugin for Composer package
1.9.3.3
Plugin option to include query argument ASC / DESC
1.9.3.2
Include ASC / DESC if there is a query order argument