Allow partial matches for person

This commit is contained in:
Markus Ankenbrand 2016-09-12 20:22:45 +02:00
parent fe09bbb472
commit 55df26e15e

View file

@ -27,7 +27,7 @@ function my_home_category( $query ) {
if ( !empty( $_GET['person'] ) ) {
$query->set( 'meta_query', array(
'key' => 'mitreisende',
'value' => '"' . $_GET['person'] . '"',
'value' => $_GET['person'],
'compare' => 'LIKE'
) );
}