Skip to content

Commit 2bb2467

Browse files
authored
Fixed taxonomy not being respected when querying specific ids (#103)
1 parent f8db857 commit 2bb2467

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Taxonomies/TermQueryBuilder.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ public function whereIn($column, $values, $boolean = 'and')
137137
$column = 'slug';
138138
$values = collect($values)
139139
->map(function ($value) {
140+
$taxonomy = Str::before($value.'', '::');
141+
if ($taxonomy) {
142+
$this->taxonomies[] = $taxonomy;
143+
}
144+
140145
return Str::after($value, '::');
141146
})
142147
->all();

0 commit comments

Comments
 (0)