WP Sort Order

Description

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.

Screenshots

  • Installation & Activation
  • Settings Page

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 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

Drag and Drop Functionality

I was looking for a plugin to automatically sort the order of columns. This is not that plugin. Instead, it enables an ability to easily drag and drop the order of entries in the column. It’s a great tool if you wish to manually control the order of your posts, pages, etc.

This one did it!

After trying about a dozen different post ordering plugins to help me sort the Topics custom post type in a LearnDash course, this was the one that finally did it!

Read all 6 reviews

Contributors & Developers

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

Contributors

Changelog

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