Reorder by Term

Beschreibung

We consider Reorder By Term a developer tool. If you do not know what menu_order or custom queries are, then this plugin is likely not for you. This is an add-on to Reorder Posts and requires Reorder Posts 2.1.0 or greater.

Out of the box, WordPress does not support the ability to reorder posts within a term. There are other plugins out there that do term ordering, but they usually create custom tables (which require crazy custom queries and filters) and/or add a column or two to core tables, which is not sustainable in the long-term should WordPress core decide to update its schema.

Reorder by Term uses custom fields, which means you can reorder by term within each taxonomy AND post type. This is insanely flexible.

Since WordPress doesn’t support this by default, when you install the plugin, you’ll have to build the term data. For a lot of posts and terms, this can take a while, but you can limit the build to post types and taxonomies if, for example, you don’t want to touch regular blog posts (with categories and tags).

Features

  • Provides a convenient build-terms tool to add the term data to your existing posts.
  • Automatically modifies/adds the term data when you save a post, change a term slug, or delete a term.
  • Reorder based on post type, taxonomy, and then term.
  • Uses custom fields to save data, so you can use get_posts, WP_Query, or pre_get_posts to order your query correctly.

Erzähl es weiter

Falls du dieses Plugin magst, wäre es toll, wenn du dies mit der Welt teilen würdest. Bewerte es, schreib darüber, … Irgendwas 🙂

Übersetzungen

None so far.

Falls du bei den Übersetzungen helfen möchtest, kannst du gerne einen Support-Request mit dem Link zu deiner Übersetzung hinterlassen.

Entwicklung

Development happens on GitHub.

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

Unterstützen

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

Screenshots

  • When first installing the plugin, you'll want to head to Tools->Build Post Term Data to add some data to your posts to allow reordering within terms.
  • Convenient Reorder shortcut when browsing terms within a taxonomy.
  • This is an add-on to the Reorder Posts plugin.
  • Start by selecting a taxonomy...
  • Then select a term to reorder...
  • And let the ordering begin!

Installation

Du kannst das Plugin über den WordPress Administrationsbereich installieren oder auch …

  1. Upload reorder-by-term to the /wp-content/plugins/ directory.
  2. Aktiviere das Plugin im Menü ‚Plugins‘ im WordPress Backend.

This plugin requires Reorder Posts 2.1.0 or greater.

When you first install the plugin, you’ll need to build term data. Head to Tools->Build Post Term Data. From there, you can build the term data based on the taxonomies you select. You can also start over and clear the existing term data.

Please note that this plugin does not change the order of items in the front-end. This functionality is not core WordPress functionality, so it’ll require some work on your end to get the posts to display in your theme correctly.

Um die Reihenfolge von beiträgen auf dem Frontend anzupassen, werden dir folgende Ressourcen eine Hilfe sein: WP_Query, get_posts, pre_get_posts

See usage for some examples.

FAQ

Why must I build term data?

For the plugin to work, there must be the correct custom fields present for each post you want reordered by term. Since this data doesn’t exist natively, we must build this data.

The build process should only have to happen once, so start the build, get a cup of coffee, and then start reordering your posts by term.

Wo ist die „Speichern“ Schaltfläche beim neu anordnen?

Es gibt keinen. Die Änderungen werden automatisch gespeichert.

Muss ich eigenen Code schreiben, um dies zum Funktionieren zu bringen?

Yes. Can we theoretically build this into the plugin to get it work automatically? Sure. But we won’t.

Funktioniert dieses Plugin auch mit hierarchischen Beitragstypen?

Of course, but by the nature of terms, all post structures are flat, regardless of hierarchy.

Funktioniert dieses Plugin auch in älteren Versionen von WordPress?

Dieses Plugin benötigt WordPress 3.7 oder darüber. Wir empfehlen aber stark, immer die neuste Version von WordPress zu verwenden.

Rezensionen

27. Juni 2017
Oh My God! It works!!! No bugs! I can use it on my client's production site!!!!! It's just like a fairy tale! Thank you, Guys!!!
13. Januar 2017
Big thank you to the developers, the plugin works great.
28. November 2016
Brilliant plugin. I had this up and running in 15 minutes. Note you will 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); A gotcha is to ensure you have “Sort by” set to None for the menu order arguments found within Settings – Reorder Posts, otherwise it will ignore the custom sort order.
3. September 2016 1 Antwort
Easy to install and simple to use, this is a really useful plugin. It provides the much-needed support for quick & intuitive re-ordering of different post types.
Alle 5 Rezensionen lesen

Mitwirkende & Entwickler

„Reorder by Term“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Reorder by Term“ wurde in 1 Sprache übersetzt. Danke an die Ãœbersetzerinnen und Ãœbersetzer für ihre Mitwirkung.

Ãœbersetze „Reorder by Term“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

1.2.3

  • Released 2019-02-16
  • Updating terms query in the back-end for better usability

1.2.2

  • Released 2016-08-14
  • Major CSS overhaul

1.2.0

  • Released 2016-08-12
  • Added screen options to set posts per page

1.1.0

  • Released 2016-08-08
  • Added option in Settings->Reorder Posts to disable the term query from displaying.
  • Added better support for the post object.

1.0.0

  • Updated 2015-04-25 – Ensuring WordPress 4.2 compatibility
  • Released 2015-01-27
  • Initial Release. Feedback is much appreciated!