Title: WP Sort Order
Author: Fahad Mahmood
Published: <strong>March 1, 2016</strong>
Last modified: January 7, 2025

---

Search plugins

![](https://ps.w.org/wp-sort-order/assets/banner-772x250.png?rev=2597136)

![](https://ps.w.org/wp-sort-order/assets/icon-256x256.png?rev=1362889)

# WP Sort Order

 By [Fahad Mahmood](https://profiles.wordpress.org/fahadmahmood/)

[Download](https://downloads.wordpress.org/plugin/wp-sort-order.1.3.5.zip)

 * [Details](https://pcd.wordpress.org/plugins/wp-sort-order/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/wp-sort-order/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/wp-sort-order/#installation)
 * [Development](https://pcd.wordpress.org/plugins/wp-sort-order/#developers)

 [Support](https://wordpress.org/support/plugin/wp-sort-order/)

## Description

 * Author: [Fahad Mahmood](https://www.androidbubbles.com/contact)
 * Project URI: [http://androidbubble.com/blog/wordpress/plugins/wp-sort-order](http://androidbubble.com/blog/wordpress/plugins/wp-sort-order)
 * License: GPL 3. See License below for copyright jots and titles.

Order terms (Users, Posts, Pages, Custom Post Types and Custom Taxonomies) using
a Drag and Drop with jQuery ui Sortable.

Select sortable items from ‘WP Sort Order’ menu of Setting menu in WordPress.

In addition, You can re-override the parameters of ‘orderby’ and ‘order’, by using
the ‘WP_Query’ or ‘pre_get_posts’ or ‘query_posts()’.
 The ‘get_posts()’ is excluded.

At a glance by WordPress Mechanic:

### License

This WordPress Plugin is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free Software
Foundation, either version 2 of the License, or any later version. This free software
is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. You should have received a 
copy of the GNU General Public License along with this software. If not, see http://
www.gnu.org/licenses/gpl-2.0.html.

## Screenshots

 * [[
 * How it works?
 * [[
 * Settings Page
 * [[
 * Installation & Activation
 * [[
 * Settings Page – Full

## Installation

 1. Upload ‘wp-sort-order’ folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Select sortable items from ‘WP Sort Order’ menu of Setting menu in WordPress.

## FAQ

### How does it work with custom taxonomies and custom post types?

### How does it work with WordPress Categories?

### How to enable sorting for posts/pages and taxonomies with this plugin?

On settings page you can select posts/pages and taxonomies to enable sorting.

### Can users be sorted with this plugin?

Yes, you can sort. And there is a shortcode to list users under taxonomy, terms 
and children. [WPSO_USERS slug=”taxonomy or term slug” id=”taxonomy or term id”].
This shortcode will list users on front-end with your sorted order. No need to write
another query for it.

### How to re-override the parameters of ‘orderby’ and ‘order’

**Sub query**

By using the ‘WP_Query’, you can re-override the parameters.

 * WP_Query
 *  ‘date’,
    ‘order’ => ‘DESC’, ) ) ?>

**Main query**

By using the ‘pre_get_posts’ action hook or ‘query_posts()’, you can re-override
the parameters.

 * pre_get_posts
 * function my_filter( $query )
    { if ( is_admin() || !$query->is_main_query() )
   return; if ( is_home() ) { $query->set( ‘orderby’, ‘date’ ); $query->set( ‘order’,‘
   DESC’ ); return; } } add_action( ‘pre_get_posts’, ‘my_filter’ );
 * query_posts()
 *  ‘rand’
    ) ); ?>

## Reviews

![](https://secure.gravatar.com/avatar/864928b0317d735f98e37a5e14d70b31db3591ea1de62399b7c5613c9cb579d7?
s=60&d=retro&r=g)

### 󠀁[By Far The Best Sorting Plugin!](https://wordpress.org/support/topic/by-far-the-best-sorting-plugin/)󠁿

 [Xander Venske](https://profiles.wordpress.org/digitalmarque/) November 19, 2025

WP Sort Order is hands-down the best sorting plugin for WordPress. Works great with
all my ACF custom post types and taxonomies and also works a charm with Elementor
on the front-end, no effort required. Fahad Mahmood (@fahadmahmood) thank you for
a wonderful free contribution. I use your plugin on every site I work with.

![](https://secure.gravatar.com/avatar/cc085190c17dde5cf6ead5c78983f8e106bdc0fdc04d93b7095cc94427ca8b2d?
s=60&d=retro&r=g)

### 󠀁[Doesn’t support custom post types as it says](https://wordpress.org/support/topic/doesnt-support-custom-post-types-as-it-says/)󠁿

 [john_6x6](https://profiles.wordpress.org/john_6x6/) February 26, 2025 5 replies

I used JetEngine to make custom post types. The drag and drop works, but it does
not change on the front end. Only worked for default wordpress post type.

![](https://secure.gravatar.com/avatar/9eefd40eec19f548d5b9f29072beee3b3bb26cb31765133d4e50401cfe86aba8?
s=60&d=retro&r=g)

### 󠀁[I love this plugin](https://wordpress.org/support/topic/i-love-this-plugin-550/)󠁿

 [wpfan10](https://profiles.wordpress.org/wpfan10/) October 30, 2024

I find this plugin very useful for my needs , Thanks

![](https://secure.gravatar.com/avatar/5c73f4e83639a24e11e81cc7855bd092d133bc7b0e3c4a97acdbab8e4f68a6ed?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-39113/)󠁿

 [goose1984](https://profiles.wordpress.org/goose1984/) June 25, 2024

Great plugin and even when there was an issue the author fixed it within hours!

![](https://secure.gravatar.com/avatar/fbc1a1e0086ba9046ed50ed7cce8a85c560c87c1d6945f68f6ea46cc027083eb?
s=60&d=retro&r=g)

### 󠀁[Best all in one Sort Plugin with usefull setting and intuitive interface](https://wordpress.org/support/topic/best-all-in-one-sort-plugin-with-usefull-setting-and-intuitive-interface/)󠁿

 [spencerjakobgm](https://profiles.wordpress.org/spencerjakobgm/) January 21, 2024
1 reply

Best all in one Sort Plugin with usefull setting and intuitive interface and capabilities/
permission settings So editors, which are allowed to create new terms/ categories
are also allowed to sort the terms. Not common at other sort term plugins with much
higher installation base. Thank you Fahad for this great plugin.Spencer

![](https://secure.gravatar.com/avatar/c7941fd7259f4a4140526f30d32a671876ca6ffe0fdd8914ab9670ff81e698ca?
s=60&d=retro&r=g)

### 󠀁[Really good plugin](https://wordpress.org/support/topic/really-good-plugin-235/)󠁿

 [aleph2u](https://profiles.wordpress.org/aleph2u/) July 12, 2023

The best plugin to order pages, posts and custom post types!

 [ Read all 17 reviews ](https://wordpress.org/support/plugin/wp-sort-order/reviews/)

## Contributors & Developers

“WP Sort Order” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ Fahad Mahmood ](https://profiles.wordpress.org/fahadmahmood/)
 *   [ Invoicepress ](https://profiles.wordpress.org/invoicepress/)

“WP Sort Order” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wp-sort-order/contributors)
for their contributions.

[Translate “WP Sort Order” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-sort-order)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-sort-order/), check
out the [SVN repository](https://plugins.svn.wordpress.org/wp-sort-order/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/wp-sort-order/) 
by [RSS](https://plugins.trac.wordpress.org/log/wp-sort-order/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3.4

 * Fix: When enabling the order of the posts, it does not allow me to create new
   ones and the only way to create new ones was duplicating a previous post. [Thanks
   to Carlos][30/10/2024]

#### 1.3.3

 * Fix: PHP Notice: Function is_home was called incorrectly. [Thanks to @goose1984/
   Cotton Jamie][21/05/2024]

#### 1.3.2

 * Updated version with the improved security checks. [Thanks to patchstack.com /
   CatFather][21/01/2024]

#### 1.3.1

 * Updated version for WordPress. [24/05/2023]

#### 1.3.0

 * Fix: WP Sort Order messing with posts date/order. [Thanks to Gonzalo/@jamposta][
   11/11/2022]

#### 1.2.9

 * Fix: Categories sort order keeps reverting. [Thanks to saschaprinzip][14/07/2022]

#### 1.2.8

 * Compatibility added for Stock Locations for WooCommerce. [02/03/2022]

#### 1.2.7

 * Ordering not working for taxonomies – undefined offset fixed in hooks.php file.[
   Thanks to apapadakis][12/01/2022]

#### 1.2.6

 * Bootstrap and Fontawesome libraries are updated. [26/10/2021]

#### 1.2.5

 * Updated version for WordPress.

#### 1.2.4

 * On activation it was taking up some space at the header of the website pages –
   Fixed. [Thanks to code naira]

#### 1.2.3

 * PHP warning fixed. [Thanks to @hastibe]

#### 1.2.2

 * New post menu_order implemented with 6 layers check. [Thanks to Fahad Mahmood&
   Abdul Razzaq]

#### 1.2.1

 * New post menu_order and page refresh issue resolved. [Thanks to @thisleenoble]

#### 1.2.0

 * get_current_screen() used. [Thanks to ricjoh]

#### 1.1.9

 * Languages added. [Thanks to Abu Usman]

#### 1.1.8

 * User sort order refined for decimals. [Thanks to Joe Garcia]

#### 1.1.7

 * Table prefix issue has been fixed. [Thanks to Columbird]

#### 1.1.6

 * User sort order refined. [Thanks to Joe Garcia]

#### 1.1.4

 * Sanitized input and fixed direct file access issues.

#### 1.1.3

 * Plugins can be sorted as well.

#### 1.1.1

 * A few improvements related to WordPress 4.6.

#### 1.1.0

 * A few improvements related to WordPress 4.5.0.
    Initial Release

## Meta

 *  Version **1.3.5**
 *  Last updated **1 year ago**
 *  Active installations **6,000+**
 *  WordPress version ** 3.5.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/wp-sort-order/), [Russian](https://ru.wordpress.org/plugins/wp-sort-order/),
   and [Swedish](https://sv.wordpress.org/plugins/wp-sort-order/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wp-sort-order)
 * Tags
 * [post order](https://pcd.wordpress.org/plugins/tags/post-order/)[taxonomy order](https://pcd.wordpress.org/plugins/tags/taxonomy-order/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/wp-sort-order/advanced/)

## Ratings

 4.5 out of 5 stars.

 *  [  15 5-star reviews     ](https://wordpress.org/support/plugin/wp-sort-order/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wp-sort-order/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wp-sort-order/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wp-sort-order/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/wp-sort-order/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/wp-sort-order/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-sort-order/reviews/)

## Contributors

 *   [ Fahad Mahmood ](https://profiles.wordpress.org/fahadmahmood/)
 *   [ Invoicepress ](https://profiles.wordpress.org/invoicepress/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-sort-order/)