ReOrder Post Within Categories

Περιγραφή

ReOrder Post Within Categories is used to sort posts (and custom post type) in any custom order by drag & drop interface.
It works with a selected category, each category can have different order of same post.

Thanks to

Nikita Spivak for the Russian translation.
Tor-Bjorn Fjellner for the swedish translation and i18n clean-up.

Στιγμιότυπα

  • Plugin page settings
  • Re-order your post through a drag & drop interface

Εγκατάσταση

  1. Upload the ‘reorder-posts-within-categories’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to the settings page to activate sorting for each categories you choose.

Συχνές Ερωτήσεις

Modify the reorder category query

A filter allows you to hook into the query of the posts before your reorder them in the dashboard. This is useful is you want to order parent terms posts and not children. WP post category query by default include post from children terms, which will show up in the order list. So by excluding them you are able to order only the posts of parent terms,

add_filter('reorder_post_within_category_query_args', 'exclude_children');
function exclude_children($args) {
    $args['tax_query'][0]['include_children']=false;
    return $args;
}
I want to order posts in non-hierarchical taxonomies (tags)

By default the plugin allows you to order posts only within hierarchical taxonomies (categories). This is done as a means to ensure one doesn’t have spurious orders as allowing both tags and category ordering could lead to users trying to order a post in both and this would create issues which have not been tested by this author. Hence tread with caution if you enable this in your functions.php file,

add_filter('reorder_post_within_categories_and_tags', '__return__true');

Keep in mind that you will now see Pages as a post type to re-order, selecting such post types which do not have any categories associated with it.

I want limit/enable roles that can re-order posts

Since v1.3.0 a new filter has been added that allows you to do that. Make sure you return a valid capability,

add_filter('reorder_post_within_categories_capability', 'enable_editors', 10,2);
function enable_editors($capability, $post_type){
    //you can filter based on the post type
    if('my-users-posts' == $post_type){
        $capability = 'publish_posts'; //Author role.
    }
    return $capability;
}

if an unknown capability is returned, the plugin will default back to ‘manage_categories’ which is an administrator’s capability.

I am uninstalling this plugin, how do I removed the custom table data ?

You can now flag the custom sql table to be deleted when you disable the plugin from your dashboard with the following filter,
add_filter(‘reorder_post_within_categories_delete_custom_table’, ‘__return__true’)
note that this filter is fired when you disable the plugin in the dashboard. So make sure it is activated when you set this filter.

Κριτικές

Couldn’t Get it to Work with Portfolio Element in Avada

Using the Avada theme, I tried to use it to reorganize my Portfolio posts. It was clunky on the reorder page in that, if I added a post to a category, I had to completely leave this page and come back in to see the new post in the reorder list (reloading the page didn't work and there's no save/update button to force a reload either). The real issue is though when using the Portfolio Fusion element on a page that displays more than one category, it worked for the first category displayed but destroyed the formatting in weird ways of the other category. I spent about an hour playing with it trying to get it to work before giving up as the results were constantly inconsistent. Perhaps it works well with other themes but not good for my purposes.

Good plugin

I had a problem with my cache. Sorry to complain before. It's ok.

Amazing, just saved me!

I am so happy right now. This plugin gave me exactly what I was hoping, simple and does what it says it will do. Cheers to the developer!

Excellent and extremely useful

Thanks for this great job, works fine in my case. I had to give different sorting ordres in some categories and this works fine, without messing with the original (chronological) post order in my dashboard.
Ανάγνωση όλων των 39 κριτικών

Συνεισφέροντες & Προγραμματιστές

“ReOrder Post Within Categories” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.

Συντελεστές

“ReOrder Post Within Categories” έχει μεταφραστεί σε 7 γλώσσες. Thank you to the translators for their contributions.

Μεταφράστε το “ReOrder Post Within Categories” στην γλώσσα σας.

Interested in development?

Περιηγηθείτε στον κώδικα , ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών μέσω RSS .

Σύνοψη αλλαγών

1.8.1

  • english corrections.

1.8.0

  • I18N: Changed language of translatable strings in the code to en_US. Inline code comments are still in French.

1.7.0

  • introduce admin post link in order list.

1.6.0

  • added term query filter ‘reorder_post_within_category_taxonomy_term_query_args’

1.5.0

  • fixed capability bug.
  • added filter to delete custom sql table when uninstalling.

1.4.1

  • changed text-domain to include plugin in translate.wordpress.org.

1.4.0

  • added russian locale.
    =1.3.0=
  • added filter to change capability of reorder post submenu access.
    =1.2.3=
  • bug fix

1.2.2

  • improved custom post selection in settings
  • added filter ‘reorder_post_within_categories_and_tags’

1.2.1

  • added filter ‘reorder_post_within_category_query_args’

1.2

  • cleaned up, included better messages to ensure settings are saved after activation, else order menu is not shown
  • fixed a small bug

1.1.7

  • Bug fix to allow plugin to work with WP multisite network installation.
  • enable editor role access to re-order menu
  • fixed some languages translation issues

1.1.6

  • Important bug fix (See https://wordpress.org/support/topic/updating-a-post-removes-it-from-the-custom-order). Thanks to Faison for this fix

1.1.5

  • Add DE_de language

1.1.4

  • Correct minor bug

1.1.3

  • Add spanish translations. Special thanks to David Bravo for this !

1.1.2

  • Add a plugin URI

1.1.1

  • Bug Correction when a post is saving

1.1

  • Change version number

1.0

  • Minor Correction

0.1

  • First commit; Initial version