Title: Whaze Term Order for Posts
Author: whaze
Published: <strong>5. maj, 2026</strong>
Last modified: 12. maj, 2026

---

Søg plugins

![](https://ps.w.org/whaze-term-order-for-posts/assets/banner-772x250.png?rev=3529916)

![](https://ps.w.org/whaze-term-order-for-posts/assets/icon-256x256.png?rev=3529899)

# Whaze Term Order for Posts

 Af [whaze](https://profiles.wordpress.org/whaze/)

[Download](https://downloads.wordpress.org/plugin/whaze-term-order-for-posts.1.2.0.zip)

 * [Detaljer](https://da.wordpress.org/plugins/whaze-term-order-for-posts/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/whaze-term-order-for-posts/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/whaze-term-order-for-posts/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/whaze-term-order-for-posts/#developers)

 [Support](https://wordpress.org/support/plugin/whaze-term-order-for-posts/)

## Beskrivelse

Whaze Term Order for Posts lets you enable per-post custom ordering of taxonomy 
terms directly from the Gutenberg editor sidebar. Configure which post types and
taxonomies are managed via the admin settings page, or register them programmatically
in code.

**Admin settings page:**

Go to **Settings  Term Order for Posts** to enable term ordering for any post type/
taxonomy combination — no code required.

**For developers (optional):**

Register a post type / taxonomy combination programmatically:

    ```
    add_action( 'init', function () {
        whaze_term_order_for_posts_register( 'post', 'category' );
        whaze_term_order_for_posts_register( 'movie', 'genre' );
    } );
    ```

Retrieve ordered terms in templates or REST:

    ```
    $terms = whaze_term_order_for_posts_get_terms( get_the_ID(), 'category' );
    ```

**Features:**

 * Settings page to configure post type / taxonomy pairs — no code needed.
 * Opt-in auto-apply: custom order applied automatically to native blocks, classic
   theme functions, and any code using `get_the_terms()` — no template changes required.
 * Drag-and-drop reordering panel in the block editor sidebar.
 * Order saved automatically with the post — no separate AJAX call.
 * Falls back to default WordPress term order when no custom order is set.
 * Unused order entries are cleaned up automatically when terms are removed.
 * REST API field `term_order` for headless use cases.
 * Fully translatable (i18n-ready).

## Installation

 1. Upload the plugin folder to `/wp-content/plugins/`.
 2. Activate the plugin through the **Plugins** screen in WordPress.
 3. Go to **Settings  Term Order for Posts** to enable term ordering for your post 
    types and taxonomies.

## FAQ

### Does this work with custom post types and taxonomies?

Yes. Select any registered post type and taxonomy in the settings page, or pass 
them to `whaze_term_order_for_posts_register()`.

### What happens if no order is defined for a post?

whaze_term_order_for_posts_get_terms() falls back to the standard `wp_get_object_terms()`
result — the plugin is completely transparent. The auto-apply option also has no
effect when no custom order is stored.

### What does the auto-apply option cover?

It hooks into `get_the_terms()`, which is called by native blocks (`core/post-terms`),
classic theme helpers (`the_category()`, `the_tags()`, `get_the_term_list()`, etc.),
and any code that goes through that function. Direct calls to `wp_get_post_terms()`
or `wp_get_object_terms()` are not affected — use `whaze_term_order_for_posts_get_terms()`
for those.

### Is this multisite compatible?

Yes. The order is stored as post meta and is therefore scoped to each site in the
network.

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Whaze Term Order for Posts” er open source-software. Følgende personer har bidraget
til dette plugin.

Bidragsydere

 *   [ whaze ](https://profiles.wordpress.org/whaze/)

[Oversæt “Whaze Term Order for Posts” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/whaze-term-order-for-posts)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/whaze-term-order-for-posts/),
tjek [SVN repository](https://plugins.svn.wordpress.org/whaze-term-order-for-posts/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/whaze-term-order-for-posts/)
via [RSS](https://plugins.trac.wordpress.org/log/whaze-term-order-for-posts/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.2.0

 * Add opt-in auto-apply option: enable custom term order automatically for native
   blocks, classic theme functions, and any code using `get_the_terms()` — no template
   changes required.

#### 1.1.0

 * Add admin settings page (Settings  Term Order for Posts) to configure post type/
   taxonomy pairs without writing code.
 * Programmatic registrations via `whaze_term_order_for_posts_register()` remain
   fully supported and are shown as read-only in the settings page.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.2.0**
 *  Senest opdateret **6 dage siden**
 *  Aktive installationer **Færre end 10**
 *  WordPress-version ** 6.0 eller højere **
 *  Testet op til **6.9.4**
 *  PHP-version ** 8.2 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/whaze-term-order-for-posts/)
 * Tags
 * [block-editor](https://da.wordpress.org/plugins/tags/block-editor/)[gutenberg](https://da.wordpress.org/plugins/tags/gutenberg/)
   [order](https://da.wordpress.org/plugins/tags/order/)[taxonomy](https://da.wordpress.org/plugins/tags/taxonomy/)
   [terms](https://da.wordpress.org/plugins/tags/terms/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/whaze-term-order-for-posts/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

[Your review](https://wordpress.org/support/plugin/whaze-term-order-for-posts/reviews/#new-post)

[Se alle anmeldelser.](https://wordpress.org/support/plugin/whaze-term-order-for-posts/reviews/)

## Bidragsydere

 *   [ whaze ](https://profiles.wordpress.org/whaze/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/whaze-term-order-for-posts/)