From 55df26e15eb5e49c62d23c2e9a89a4ee670c764c Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Mon, 12 Sep 2016 20:22:45 +0200 Subject: [PATCH] Allow partial matches for person --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index a2c1997..050050e 100644 --- a/functions.php +++ b/functions.php @@ -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' ) ); }