Fix query with nested array
This commit is contained in:
parent
3e7dee4ca6
commit
6a9187e619
1 changed files with 5 additions and 3 deletions
|
|
@ -26,9 +26,11 @@ function my_home_category( $query ) {
|
|||
$query->set( 'cat', '2');
|
||||
if ( !empty( $_GET['person'] ) ) {
|
||||
$query->set( 'meta_query', array(
|
||||
'key' => 'mitreisende',
|
||||
'value' => $_GET['person'],
|
||||
'compare' => 'LIKE'
|
||||
array(
|
||||
'key' => 'mitreisende',
|
||||
'value' => $_GET['person'],
|
||||
'compare' => 'LIKE'
|
||||
)
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue