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

26 dezembro, 2023
Thank you very much for this. The use case fits perfectly for developers indeed. It doesn't pollute the front-end's default view and only works when specified within custom queries. Exactly what I needed. Thank you once again, keep up the great work 👍
13 outubro, 2022
Does exactly what it says without adding complexity or additional obstacles. Thank you!
25 setembro, 2020
Thank you for this very handy plugin to allow me to provide drag and drop reordering to my client for a custom post type I created.
23 outubro, 2019
The posts were in no particular order when in settings. Was expecting them to be ordered by date like they are in "all posts". It was random and the other settings wasn't able to adjust that.
16 maio, 2019
on most WP sites I've programmed it doesn't work by just installing it... You need a little code tweaking. Not a problem for a developer but I think this type of plugins use to work just by installing them and moving the posts around.
Leia todas as 27 avaliações

Colaboradores e desenvolvedores

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

Colaboradores

“Reorder Posts” foi traduzido para 5 localizações. Agradecemos 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.5.3

  • Released 2022-05-27
  • Cache busting for people who are receiving script errors around Nested Sortable.

2.5.1

  • Released 2022-02-14
  • Fixing sortable script with newer versions of jQuery sortable.

2.5.0

  • Released 2020-11-18
  • Fixing sortable script with newer versions of jQuery.

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