Reorder Posts

Descrição

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.

Funcionalidades

  • 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

Espalhe a notícia

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

Traduções

  • Alemão

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.

Suporte

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.

Créditos

This plugin was originally developed for Metronet AS in Norway.

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

Imagens de tela

  • Reorder Posts permite que você facilmente arraste e solte posts para alterar a sua ordem
  • Configurações do painel admin

Instalação

Either install the plugin via the WordPress admin panel, or …

  1. Upload metronet-reorder-posts to the /wp-content/plugins/ directory.
  2. Ative o plugin pelo menu “Plugins” no WordPress.

For each post type, you will see a new “Reorder” submenu. Simply navigate to “Reorder” to change the order of your post types. Changes are saved immediately, there is no need to click a save or update button.

By default, ordering is enabled for all post types. A settings panel is available for determining which post types to enable ordering for.

Advanced customization is allowed via hooks. See the Plugin Filters on GitHub.

This tool allows you to easily reorder post types in the back-end of WordPress. How the posts are sorted in the front-end is entirely up to you, as it should be.

We do have advanced settings under Settings->Reorder Posts, but these should only be used for testing purposes.

You’ll want to make use of WP_Query, get_posts, or pre_get_posts to modify query behavior on the front-end of your site.

Examples of each are on the respective pages above. You are welcome to leave a support request if you need help with a query and we’ll do our best to get back with you.

FAQ

Onde está a página de configurações?

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

Onde está o botão “salvar” para a reordenação?

Não existe um botão. As alterações são salvas automaticamente.

Preciso adicionar código personalizado para que isso funcione?

Sim e não. Existem muitas formas de recuperar posts usando a API do WordPress, e se o código tiver uma propriedade de ordenação menu_order, as alterações devem ser refletidas imediatamente.

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.

Posso usar isso em um único tipo de post?

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

?>
O plugin funciona com tipos de post hierárquicos?

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

Funciona em versões mais antigas do WordPress?

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

Ele ordena os posts dentro de uma categoria (ex: um termo)?

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

Avaliações

Lifesaver!

This plugin was a complete lifesaver for me when I had to clean up and re-organize the content and navigation on a pre-existing website ported from Drupal that had hundreds of pages spread across multiple levels. Also works great with WP Show Posts and Events Manager plugins to display events in proper chronological event date order.

Excellent plugin

It's always a delight when you find a piece of well written code on this garbage dump that is the WordPress plugin directory. Thanks for sharing on Github!

Simple and functional – does what it says.

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.

Excellent – does what it says

Brilliant plugin. I was surprised this plugin has such a low rating and I suspect it is because it does require a little developer know-how to set it up. I had this up and running in 15 minutes. I use it in combination with it's sister plugin "Reorder by Term". Note you may need to adjust your WP_Query functions, but it provides you with the code snippets you need - very handy! For example I use the following to provide a custom post sort order by taxonomy: $category_name = $post->post_name; $args = array( 'post_type' => 'project', 'post_status' => 'publish', 'posts_per_page' => -1, 'order' => 'ASC', //'orderby' => 'menu_order', //old code //'category_name' => $category_name //old code //New sort order by term: 'meta_key' => '_reorder_term_category_'.$category_name, 'orderby' => 'meta_value_num title' ); $projects = new WP_Query($args); Another gotcha is to ensure you have "Sort by" set to None for the menu order arguments found within Settings - Reorder Posts. I suspect this is what is causing the function to not work for a few of the negative reviews here.
Leia todas as 21 avaliações

Contribuidores e desenvolvedores

“Reorder Posts” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.

Contribuidores

“Reorder Posts” foi traduzido para 5 localidades. Obrigado aos tradutores por suas contribuições.

Traduzir “Reorder Posts” para o seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, dê uma olhada no repositório SVN ou assine o registro de desenvolvimento via RSS.

Registro de alterações

2.4.1

  • Released 2019-02-16
  • Added query to reorder posts for an example
  • Option to turn off query output

2.4.0

  • Lançado em 14/08/2016
  • Major CSS overhaul inspired by the Nested Pages plugin
  • The sorting is now mobile friendly

2.3.0

  • Lançado em 12/08/2016
  • Added screen options to set the number of posts displayed

2.2.2

  • Lançado em 04/12/2015
  • Fixed loading animation that displays out of nowhere

2.2.1

  • Lançado em 09/11/2015
  • Fixed pagination issue

2.2.0

  • Lançado em 01/11/2015
  • Loading animation now shows inline

2.1.5

  • Lançado em 02/10/2015
  • Fixing paging offset error in the backend.

2.1.4

  • Atualizado em 20/08/2015 para o WordPress 4.3
  • Lançado em 24/04/2015
  • Added cache-busting when re-ordering
  • Tradução alemã foi adicionada
  • Ensuring WordPress 4.2 compatibility

2.1.2

  • Lançado em 28/01/2015
  • Aviso do desenvolvedor removido das páginas de reordenação

2.1.1

  • Lançado em 21/01/2015
  • Fixed pagination issue
  • Improved Reorder save query performance significantly

2.1.0

  • Lançado em 19/01/2015
  • Added add-on support
  • Make sure reordering can only be done by those with edit_pages privileges
  • Added pagination for performance reasons
  • Consultas otimizadas por motivos de desempenho
  • Added warning message for those with a lot of posts

2.0.2

  • Lançado em 26/12/2014
  • 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

  • Lançado em 23/12/2014
  • 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.
  • Os estilos da interface de reordenação foram ligeiramente ajustados.

1.0.6

  • Atualizado em 11/12/2014 para garantir a compatibilidade com o WordPress 4.1
  • Lançado em 19/07/2013
  • Added new filter for editing the post-types supported
  • Thanks to mathielo for the suggestion and code contribution.

1.0.5

  • Lançado em 09/08/2012
  • Added expand/collapse section for nested post types
  • Added better page detection for scripts and styles

1.0.4

  • Lançado em 11/07/2012
  • Added support for hierarchical post types

1.0.3

  • Lançado em 09/05/2012
  • Tela do plugin atualizada
  • Corrected function prefix
  • Additional: changed readme.txt (didn’t bump version number)

1.0.2

  • Lançado em 09/05/2012
  • Added ability to post type of posts to be reordered
  • Corrigido um erro na ordem inicial

1.0.1

  • Added ability to change menu name via class argument
  • Removido suporte para tipos de post não-hierárquicos

1.0

  • Lançamento inicial plugin