Merge pull request 'Define order in term posts query' (#7) from refresh_flip into main
Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user