Define order in term posts query

This commit is contained in:
Cooper Dalrymple
2026-06-17 16:16:24 -05:00
parent a77413f556
commit 5e92d1a839
+1
View File
@@ -792,6 +792,7 @@ final class Sort {
]],
'meta_key' => "ogre-sort_{$relationship['taxonomy']}_{$term_id}",
'orderby' => 'meta_value_num',
'order' => 'ASC',
]);
$posts = array_values(array_unique($posts));
foreach ($posts as $i => $post_id) {