diff --git a/functions.php b/functions.php index 99519a9..e0e2990 100644 --- a/functions.php +++ b/functions.php @@ -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' + ) ) ); } }