Allow partial matches for person
This commit is contained in:
parent
fe09bbb472
commit
55df26e15e
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ function my_home_category( $query ) {
|
||||||
if ( !empty( $_GET['person'] ) ) {
|
if ( !empty( $_GET['person'] ) ) {
|
||||||
$query->set( 'meta_query', array(
|
$query->set( 'meta_query', array(
|
||||||
'key' => 'mitreisende',
|
'key' => 'mitreisende',
|
||||||
'value' => '"' . $_GET['person'] . '"',
|
'value' => $_GET['person'],
|
||||||
'compare' => 'LIKE'
|
'compare' => 'LIKE'
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue