Skip to content

Commit

Permalink
remove sortable and use only raw to sort items #90
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmedeiros committed Nov 18, 2019
1 parent c3b4a15 commit e669264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/class-tainacan-elastic-press.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ public function prepare_request($formatted_args) {
$new_sort["post_name.raw"] = $value;
} elseif ($key == 'post_type') {
$new_sort["post_type.raw"] = $value;
} elseif( !in_array("long", $parts) && in_array("meta", $parts) ) {
$new_sort["$key.sortable"] = $value;
// } elseif( !in_array("long", $parts) && in_array("meta", $parts) ) {
// $new_sort["$key.sortable"] = $value;
} else {
$new_sort[$key] = $value;
}
Expand Down

0 comments on commit e669264

Please sign in to comment.