All Projects → sectsect → wp-tag-order

sectsect / wp-tag-order

Licence: GPL-3.0 license
↕︎ Sort tags manually in individual posts (not site-globally) on WordPress.

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
shell
77523 projects
CSS
56736 projects
hack
652 projects

Projects that are alternatives of or similar to wp-tag-order

simple-page-ordering
Order your pages and other hierarchical post types with simple drag and drop right from the standard page list.
Stars: ✭ 88 (+450%)
Mutual labels:  drag-and-drop, order
Sortable
Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
Stars: ✭ 23,641 (+147656.25%)
Mutual labels:  drag-and-drop, sort
nested-sort
Nested Sort is a JavaScript library which helps you to sort a nested list of items via drag and drop.
Stars: ✭ 31 (+93.75%)
Mutual labels:  drag-and-drop, sort
Muuri
Infinite responsive, sortable, filterable and draggable layouts
Stars: ✭ 9,797 (+61131.25%)
Mutual labels:  drag-and-drop, sort
React Native Drag Sort
🔥🔥🔥Drag and drop sort control for react-native
Stars: ✭ 397 (+2381.25%)
Mutual labels:  drag-and-drop, sort
Rails sortable
Easy drag & drop sorting with persisting the arranged order for rails
Stars: ✭ 127 (+693.75%)
Mutual labels:  drag-and-drop, sort
ngx-dropzone
A highly configurable dropzone component for Angular.
Stars: ✭ 123 (+668.75%)
Mutual labels:  drag-and-drop
Angular-Table-Sort-Component
Sorting Algorithm for sorting table values in angular
Stars: ✭ 18 (+12.5%)
Mutual labels:  sort
OrderSystem
An independent micro-service that takes orders in and processes payments.
Stars: ✭ 16 (+0%)
Mutual labels:  order
Custom-Grid-View
Custom Drag and Drop Grid for Home Assistant
Stars: ✭ 103 (+543.75%)
Mutual labels:  drag-and-drop
slate-react-dnd-plugin
No description or website provided.
Stars: ✭ 35 (+118.75%)
Mutual labels:  drag-and-drop
react-grid-dnd
drag and drop, grid edition. built with react
Stars: ✭ 161 (+906.25%)
Mutual labels:  drag-and-drop
tag-picker
Better tags input interaction with JavaScript.
Stars: ✭ 27 (+68.75%)
Mutual labels:  tags
cyclejs-sortable
Makes all children of a selected component sortable
Stars: ✭ 16 (+0%)
Mutual labels:  drag-and-drop
algos
A collection of algorithms in rust
Stars: ✭ 16 (+0%)
Mutual labels:  sort
vue-drag-zone
Drag Zone component for @vuejs
Stars: ✭ 127 (+693.75%)
Mutual labels:  drag-and-drop
next
(Work in progress) The rewritten version of the original PizzaQL 🍕
Stars: ✭ 45 (+181.25%)
Mutual labels:  order
algorithms
The All ▲lgorithms documentation website.
Stars: ✭ 114 (+612.5%)
Mutual labels:  sort
sortboard
A small ES6 library for easy sorting and filtering of elements.
Stars: ✭ 29 (+81.25%)
Mutual labels:  sort
react-drag-list
A simple draggable list component。
Stars: ✭ 30 (+87.5%)
Mutual labels:  drag-and-drop

WP Tag Order

Build Status Latest Stable Version composer.lock Total Downloads Latest Unstable Version License

Order tags (Non-hierarchical custom taxonomies) within individual posts with simple Drag-and-Drop ↕︎ sortable feature.

⚠️ This plugin is NOT compatible with Gutenberg on WordPress 5.x. Consider using Classic Editor Plugin.

Requirements

  • WordPress 4.7+

Installation

1. Clone this Repo into your wp-content/plugins directory.
$ cd /path-to-your/wp-content/plugins/
$ git clone [email protected]:sectsect/wp-tag-order.git
2. Activate the plugin through the "Plugins" menu in WordPress.

That's it👌

Features

  • Support post_tag and non-hierarchical taxonomy.
  • Support multiple non-hierarchical taxonomies in a post-type.
  • In the case of creating a new post, you need to save the post once to activate this feature.
  • To apply for the existing post, "Add and Remove" any one tag once.
    Or, if you want to batch apply, Go to Settings -> WP Tag Order page, and click the Apply button.
  • Support Multisite.
  • Tested on WordPress v4.9.

Screencast

APIs

Function Description
get_the_tags_ordered() Based on get_the_tags() - Codex
get_the_terms_ordered() Based on get_the_terms() - Codex
get_the_tag_list_ordered() Based on get_the_tag_list() - Codex
get_the_term_list_ordered() Based on get_the_term_list() - Codex
the_tags_ordered() Based on the_tags() - Codex
the_terms_ordered() Based on the_terms() - Codex

Usage Example

<h2>get_the_tags_ordered()</h2>
<?php
$posttags = get_the_tags_ordered();
if ( $posttags && ! is_wp_error( $posttags ) ) {
    foreach ( $posttags as $tag ) {
        echo $tag->name . ' ';
    }
}
?>

<h2>get_the_terms_ordered()</h2>
<?php
$posttags = get_the_terms_ordered( $post->ID, 'post_tag' );
if ( $posttags && ! is_wp_error( $posttags ) ) {
    foreach ( $posttags as $tag ) {
        echo $tag->name . ' ';
    }
}
?>

<h2>get_the_tag_list_ordered()</h2>
<?php echo get_the_tag_list_ordered(); ?>

<h2>get_the_term_list_ordered()</h2>
<?php echo get_the_term_list_ordered( $post->ID, 'post_tag' ); ?>

<h2>the_tags_ordered()</h2>
<?php the_tags_ordered(); ?>

<h2>the_terms_ordered()</h2>
<?php the_terms_ordered( $post->ID, 'post_tag' ); ?>

Notes for Developers

  • The sorted tags will be saved in wp_postmeta table with an array of tag id that has been serialized as custom field.

    meta_id post_id meta_key meta_value
    19 7 wp-tag-order-post_tag s:91:"a:7:{i:0;s:1:"7";i:1;s:1:"5";i:2;s:2:"10";i:3;s:1:"4";i:4;s:1:"6";i:5;s:1:"8";i:6;s:1:"9";}";
  • This Plugin does not hosting on the wordpress.org repo in order to prevent a flood of support requests from wide audience. Your feedback is welcome.

Change log

See CHANGELOG file.

License

See LICENSE file.

✌️

A little project by @sectsect

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].