PHPackages                             sectsect/wp-tag-order - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sectsect/wp-tag-order

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

sectsect/wp-tag-order
=====================

Sort the tags manually in individual posts on wordpress.

v3.16.1(2mo ago)214003[2 PRs](https://github.com/sectsect/wp-tag-order/pulls)GPL-3.0+PHPPHP &gt;=8.0CI passing

Since Jan 30Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/sectsect/wp-tag-order)[ Packagist](https://packagist.org/packages/sectsect/wp-tag-order)[ RSS](/packages/sectsect-wp-tag-order/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (20)Versions (109)Used By (0)

WP Tag Order
============

[](#wp-tag-order)

[![Plugin Check](https://github.com/sectsect/wp-tag-order/actions/workflows/plugin-check.yml/badge.svg)](https://github.com/sectsect/wp-tag-order/actions/workflows/plugin-check.yml) [![PHP Unit Tests](https://github.com/sectsect/wp-tag-order/actions/workflows/phpunit.yml/badge.svg)](https://github.com/sectsect/wp-tag-order/actions/workflows/phpunit.yml) [![PHPStan](https://github.com/sectsect/wp-tag-order/actions/workflows/phpstan.yml/badge.svg)](https://github.com/sectsect/wp-tag-order/actions/workflows/phpstan.yml) [![PHP Coding Standards](https://github.com/sectsect/wp-tag-order/actions/workflows/phpcs.yml/badge.svg)](https://github.com/sectsect/wp-tag-order/actions/workflows/phpcs.yml) [![TypeScript Code Quality](https://github.com/sectsect/wp-tag-order/actions/workflows/typescript-code-quality.yml/badge.svg)](https://github.com/sectsect/wp-tag-order/actions/workflows/typescript-code-quality.yml) [![CodeQL](https://github.com/sectsect/wp-tag-order/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/sectsect/wp-tag-order/actions/workflows/github-code-scanning/codeql)

### Order tags independently in each posts (not site-globally) on WordPress with simple Drag-and-Drop ↕︎ sortable feature.

[](#order-tags-independently-in-each-posts-not-site-globally-on-wordpress-with-simple-drag-and-drop-︎-sortable-feature)

[![](https://camo.githubusercontent.com/cefe270fa39dc2d8f1706c98bb79f8e37dc43c18f85f1b53d9b796e0597cb5f6/68747470733a2f2f6769746875622d736563742e73332d61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f77702d7461672d6f726465722f77702d7461672d6f726465722e676966)](https://camo.githubusercontent.com/cefe270fa39dc2d8f1706c98bb79f8e37dc43c18f85f1b53d9b796e0597cb5f6/68747470733a2f2f6769746875622d736563742e73332d61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f77702d7461672d6f726465722f77702d7461672d6f726465722e676966)

Important

This plugin is NOT compatible with Gutenberg on WordPress 5.x. Consider using [Classic Editor Plugin](https://wordpress.org/plugins/classic-editor/).

Important

Mutation events will no longer be supported in Google Chrome and Edge in July 2024 (Google Chrome on July 23, 2024, and Microsoft Edge the week of July 25, 2024). As a result, WP Tag Order versions 3.6.0 or less will not work with Chrome v127 and later, which will be released on **July 23, 2024**.
You have to update to **v3.7.0 or later**.
See [Chrome for Developers Blog](https://developer.chrome.com/blog/mutation-events-deprecation) for more details.
If you still need PHP7 support, see Troubleshooting below.

Features
--------

[](#features)

- 🏷️ Custom tag ordering for posts
- 🔍 Works with default WordPress tag and custom taxonomy systems
- 🔢 Drag-and-Drop interface for easy tag reordering
- 📊 Supports multiple post types and taxonomies
- 🔧 **NEW: Programmatic Tag Order Management**
- 🌐 **NEW: REST API Support**
    - Retrieve ordered tags via GET endpoint
    - Update tag order programmatically
    - Supports authentication and permissions
- 🚀 Lightweight and performance-optimized

Get Started
-----------

[](#get-started)

1. Clone this Repo into your `wp-content/plugins` directory.

```
cd /path-to-your/wp-content/plugins
git clone git@github.com:sectsect/wp-tag-order.git
```

2. Activate the plugin through the `Plugins` menu in WordPress.
3. Go to `Settings` -&gt; `WP Tag Order` page to select which taxonomies to enable ordering for.

Notes
-----

[](#notes)

- When creating a new post, you need to save it once to enable tag ordering.
- To apply ordering to existing posts, **"Add and Remove"** any tag once.
- To bulk-update multiple posts at once, go to `Settings` -&gt; `WP Tag Order` page and click 'Apply' under the Advanced Settings.

- Tested on WordPress v6.3.1.

Requirements
------------

[](#requirements)

- WordPress 5.6+
- PHP 8.0+

APIs
----

[](#apis)

FunctionDescription`get_the_tags_ordered()`Based on `get_the_tags()` - [Codex](https://codex.wordpress.org/Function_Reference/get_the_tags)`get_the_terms_ordered()`Based on `get_the_terms()` - [Codex](https://developer.wordpress.org/reference/functions/get_the_terms/)`get_the_tag_list_ordered()`Based on `get_the_tag_list()` - [Codex](https://codex.wordpress.org/Function_Reference/get_the_tag_list)`get_the_term_list_ordered()`Based on `get_the_term_list()` - [Codex](https://codex.wordpress.org/Function_Reference/get_the_term_list)`the_tags_ordered()`Based on `the_tags()` - [Codex](https://codex.wordpress.org/Function_Reference/the_tags)`the_terms_ordered()`Based on `the_terms()` - [Codex](https://codex.wordpress.org/Function_Reference/the_terms)Usage Example
-------------

[](#usage-example)

#### `get_the_tags_ordered()`

[](#get_the_tags_ordered)

```
