Changeset 3472613
- Timestamp:
- 03/02/2026 11:23:28 AM (4 weeks ago)
- Location:
- bracket-post-order
- Files:
-
- 6 added
- 6 edited
- 1 copied
-
tags/1.2.3 (copied) (copied from bracket-post-order/trunk)
-
tags/1.2.3/assets/icon-128x128.png (added)
-
tags/1.2.3/assets/icon-256x256.png (added)
-
tags/1.2.3/assets/icon.svg (added)
-
tags/1.2.3/bracket-post-order.php (modified) (2 diffs)
-
tags/1.2.3/includes/class-bracket-po-query.php (modified) (1 diff)
-
tags/1.2.3/readme.txt (modified) (5 diffs)
-
trunk/assets/icon-128x128.png (added)
-
trunk/assets/icon-256x256.png (added)
-
trunk/assets/icon.svg (added)
-
trunk/bracket-post-order.php (modified) (2 diffs)
-
trunk/includes/class-bracket-po-query.php (modified) (1 diff)
-
trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bracket-post-order/tags/1.2.3/bracket-post-order.php
r3462853 r3472613 4 4 * Plugin URI: https://wordpress.org/plugins/bracket-post-order/ 5 5 * Description: Drag-and-drop post ordering with per-taxonomy-term support. Reorder posts globally or within specific categories/tags. 6 * Version: 1.2. 26 * Version: 1.2.3 7 7 * Requires at least: 6.2 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'BRACKET_PO_VERSION', '1.2. 2' );21 define( 'BRACKET_PO_VERSION', '1.2.3' ); 22 22 define( 'BRACKET_PO_PATH', plugin_dir_path( __FILE__ ) ); 23 23 define( 'BRACKET_PO_URL', plugin_dir_url( __FILE__ ) ); -
bracket-post-order/tags/1.2.3/includes/class-bracket-po-query.php
r3462853 r3472613 162 162 global $wpdb; 163 163 164 // Build FIELD() clause — posts not in the list appear at end164 // Build FIELD() clause — new/unordered posts appear first (by date), then saved order 165 165 $ids_str = implode( ',', array_map( 'absint', $ordered_ids ) ); 166 $clauses['orderby'] = "FIELD({$wpdb->posts}.ID, {$ids_str}) = 0, FIELD({$wpdb->posts}.ID, {$ids_str}) ASC";166 $clauses['orderby'] = "FIELD({$wpdb->posts}.ID, {$ids_str}) > 0, FIELD({$wpdb->posts}.ID, {$ids_str}) ASC, {$wpdb->posts}.post_date DESC"; 167 167 168 168 return $clauses; -
bracket-post-order/tags/1.2.3/readme.txt
r3462853 r3472613 4 4 Requires at least: 6.2 5 5 Tested up to: 6.9 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 23 23 24 24 **2. Per-Term Post Ordering** 25 Filter your admin list by a category or taxonomy term, and the interface switches to per-term mode. Drag posts into the order you want for *that specific term*. Assign the same post to multiple categories — each one keeps its own sort. New posts added to a term automatically appear at the end of the custom order.25 Filter your admin list by a category or taxonomy term, and the interface switches to per-term mode. Drag posts into the order you want for *that specific term*. Assign the same post to multiple categories — each one keeps its own sort. New posts added to a term automatically appear first (newest on top). 26 26 27 27 **3. Taxonomy Term Ordering** … … 104 104 ] );` 105 105 106 The plugin will automatically apply the saved per-term order via `FIELD()` SQL — posts not in the saved order appear at the end.106 The plugin will automatically apply the saved per-term order via `FIELD()` SQL — posts not in the saved order appear first (newest on top). 107 107 108 108 == Installation == … … 190 190 = What happens when I add a new post to a category that has a custom order? = 191 191 192 New posts that aren't part of the saved per-term order automatically appear at the end. You can then go to the admin, filter by that term, and drag the new post into position.192 New posts that aren't part of the saved per-term order automatically appear first (sorted by date, newest on top). You can then go to the admin, filter by that term, and drag the new post into position. 193 193 194 194 = Is it compatible with Simple Custom Post Order (SCPO)? = … … 210 210 211 211 == Changelog == 212 213 = 1.2.3 = 214 * Fixed: New posts added to a term with per-term ordering now appear first instead of last 212 215 213 216 = 1.1.0 = -
bracket-post-order/trunk/bracket-post-order.php
r3462853 r3472613 4 4 * Plugin URI: https://wordpress.org/plugins/bracket-post-order/ 5 5 * Description: Drag-and-drop post ordering with per-taxonomy-term support. Reorder posts globally or within specific categories/tags. 6 * Version: 1.2. 26 * Version: 1.2.3 7 7 * Requires at least: 6.2 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'BRACKET_PO_VERSION', '1.2. 2' );21 define( 'BRACKET_PO_VERSION', '1.2.3' ); 22 22 define( 'BRACKET_PO_PATH', plugin_dir_path( __FILE__ ) ); 23 23 define( 'BRACKET_PO_URL', plugin_dir_url( __FILE__ ) ); -
bracket-post-order/trunk/includes/class-bracket-po-query.php
r3462853 r3472613 162 162 global $wpdb; 163 163 164 // Build FIELD() clause — posts not in the list appear at end164 // Build FIELD() clause — new/unordered posts appear first (by date), then saved order 165 165 $ids_str = implode( ',', array_map( 'absint', $ordered_ids ) ); 166 $clauses['orderby'] = "FIELD({$wpdb->posts}.ID, {$ids_str}) = 0, FIELD({$wpdb->posts}.ID, {$ids_str}) ASC";166 $clauses['orderby'] = "FIELD({$wpdb->posts}.ID, {$ids_str}) > 0, FIELD({$wpdb->posts}.ID, {$ids_str}) ASC, {$wpdb->posts}.post_date DESC"; 167 167 168 168 return $clauses; -
bracket-post-order/trunk/readme.txt
r3462853 r3472613 4 4 Requires at least: 6.2 5 5 Tested up to: 6.9 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 23 23 24 24 **2. Per-Term Post Ordering** 25 Filter your admin list by a category or taxonomy term, and the interface switches to per-term mode. Drag posts into the order you want for *that specific term*. Assign the same post to multiple categories — each one keeps its own sort. New posts added to a term automatically appear at the end of the custom order.25 Filter your admin list by a category or taxonomy term, and the interface switches to per-term mode. Drag posts into the order you want for *that specific term*. Assign the same post to multiple categories — each one keeps its own sort. New posts added to a term automatically appear first (newest on top). 26 26 27 27 **3. Taxonomy Term Ordering** … … 104 104 ] );` 105 105 106 The plugin will automatically apply the saved per-term order via `FIELD()` SQL — posts not in the saved order appear at the end.106 The plugin will automatically apply the saved per-term order via `FIELD()` SQL — posts not in the saved order appear first (newest on top). 107 107 108 108 == Installation == … … 190 190 = What happens when I add a new post to a category that has a custom order? = 191 191 192 New posts that aren't part of the saved per-term order automatically appear at the end. You can then go to the admin, filter by that term, and drag the new post into position.192 New posts that aren't part of the saved per-term order automatically appear first (sorted by date, newest on top). You can then go to the admin, filter by that term, and drag the new post into position. 193 193 194 194 = Is it compatible with Simple Custom Post Order (SCPO)? = … … 210 210 211 211 == Changelog == 212 213 = 1.2.3 = 214 * Fixed: New posts added to a term with per-term ordering now appear first instead of last 212 215 213 216 = 1.1.0 =
Note: See TracChangeset
for help on using the changeset viewer.