Reorder Posts

Description

A simple and easy way to reorder your custom post-type posts in WordPress. Adds drag and drop functionality for post ordering in the WordPress admin panel. Works with custom post-types and regular posts.

We consider Reorder Posts a developer tool. If you do not know what menu_order or custom queries are, then this plugin is likely not for you.

Features

  • Adds “Reorder” sub-menu to all post types by default
  • Hierarchical post type support (i.e., supports nested posts)
  • Allows you to re-nest hierarchical posts
  • Auto-saves order without having to click an update button
  • Dedicated settings panel for determining which post types can be reordered
  • Advanced settings panel for overriding the menu order of custom post type queries

Add-ons

Spread the Word

If you like this plugin, please help spread the word. Rate the plugin. Write about the plugin. Something 🙂

Translations

  • German

If you would like to contribute a translation, please leave a support request with a link to your translation.

You are welcome to help us out and contribute on GitHub.

Support

Please feel free to leave a support request here or create an issue on GitHub. If you require immediate feedback, feel free to @reply us on Twitter with your support link: (@ryanhellyer or @ronalfy). Support is always free unless you require some advanced customization out of the scope of the plugin’s existing features. We’ll do our best to get with you when we can. Please rate/review the plugin if we have helped you to show thanks for the support.

Credits

This plugin was originally developed for Metronet AS in Norway.

The plugin is now independently developed by Ryan Hellyer, Ronald Huereca and Scott Basgaard.

Screenshots

  • Reorder Posts allows you to easily drag and drop posts to change their order
  • Admin panel settings

FAQ

Where’s the settings page?

The settings are located under Settings->Reorder Posts. Settings are optional, of course, as the plugin will work with no configuration. We consider the settings useful for only advanced users (i.e., users with coding experience).

Where is the “save” button when re-ordering?

There isn’t one. The changes are saved automatically.

Do I need to add custom code to get this to work?

Yes, and no. There are many ways to retrieve posts using the WordPress API, and if the code has a menu_order sort property, the changes should be reflected immediately.

Often, however, there is no menu_order argument. In the plugin’s settings, there is an “Advanced” section which will attempt to override the menu_order property. Please use this with caution.

Can I use this on a single post type?

You are able to override the post types used via a filter (see below) or navigate to the plugin’s settings and enable which post types you would like to use.

<?php

add_filter( 'metronet_reorder_post_types', 'slug_set_reorder' );
function slug_set_reorder( $post_types ) {
    $post_types = array( 'my_custom_post_type', 'my_other_post_type' );
    return $post_types;
}

?>
Does the plugin work with hierarchical post types?

Yes, but be wary that the plugin now allows you to re-nest hierarchical items easily.

Does it work in older versions of WordPress?

This plugin requires WordPress 3.7 or above. We urge you, however, to always use the latest version of WordPress.

Does this sort posts within a category (i.e., a term)?

No, but there is an add-on for this plugin called Reorder by Term you should check out.

Reviews

Simple and functional – does what it says.

benfurfie

Needed a simple way of reordering posts within a CPT for a customer. Could have built it myself, but thought I'd have a quick look around to see if there was a good solution out there. The interface is well thought and and easy to use, both for myself and a less technical user. I always make a habit of checking the code on any plugin I use, as it often says a lot about the developers' approach and quality. Reorder Posts is well commented, uses extendable classes, which are sensibly named and has high quality, standard compliant code. Would recommend.

Read all 19 reviews

Changelog

2.4.0

  • Released 2016-08-14
  • Major CSS overhaul inspired by the Nested Pages plugin
  • The sorting is now mobile friendly

2.3.0

  • Released 2016-08-12
  • Added screen options to set the number of posts displayed

2.2.2

  • Released 2015-12-04
  • Fixed loading animation that displays out of nowhere

2.2.1

  • Released 2015-11-09
  • Fixed pagination issue

2.2.0

  • Released 2015-11-1
  • Loading animation now shows inline

2.1.5

  • Released 2015-10-02
  • Fixing paging offset error in the backend.

2.1.4

  • Updated 2015-08-20 for WordPress 4.3
  • Released 2015-04-24
  • Added cache-busting when re-ordering
  • Added German translation
  • Ensuring WordPress 4.2 compatibility

2.1.2

  • Released 2015-01-28
  • Removed developer notice from Reorder pages

2.1.1

  • Released 2015-01-21
  • Fixed pagination issue
  • Improved Reorder save query performance significantly

2.1.0

  • Released 2015-01-19
  • Added add-on support
  • Make sure reordering can only be done by those with edit_pages privileges
  • Added pagination for performance reasons
  • Optimized queries for performance reasons
  • Added warning message for those with a lot of posts

2.0.2

  • Released 2014-12-26
  • Bug fix: Saving admin panel settings resulted in a variety of PHP offset error messages.
  • Bug fix: Querying multiple post types resulted in PHP illegal offset error messages.

2.0.1

  • Released 2014-12-23
  • Altered contributor documentation.
  • Adding filters for determining where the Reorder sub-menu will show up.
  • Sub-menu headings now reflect the post type that is being re-ordered.
  • Fixed bug in display when there are no post types to re-order.
  • Changed class names to be more unique.

2.0.0

  • Released 2014-12-12
  • Added settings panel for enabling/disabling the Reorder plugin for post types.
  • Added advanced settings for overriding the menu order of post types.
  • Added internationalization capabilities.
  • Slightly adjusted the styles of the Reordering interface.

1.0.6

  • Updated 2014-12-11 – Ensuring WordPress 4.1 compatibility
  • Released 2013-07-19
  • Added new filter for editing the post-types supported
  • Thanks to mathielo for the suggestion and code contribution.

1.0.5

  • Released 2012-08-09
  • Added expand/collapse section for nested post types
  • Added better page detection for scripts and styles

1.0.4

  • Released 2012-07-11
  • Added support for hierarchical post types

1.0.3

  • Released 2012-05-09
  • Updated screenshot
  • Corrected function prefix
  • Additional: changed readme.txt (didn’t bump version number)

1.0.2

  • Released 2012-05-09
  • Added ability to post type of posts to be reordered
  • Fixed bug in initial order

1.0.1

  • Added ability to change menu name via class argument
  • Removed support for non-hierarchical post-types

1.0

  • Initial plugin release

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code