diff --git a/functions.php b/functions.php index 539dafd..99390a6 100644 --- a/functions.php +++ b/functions.php @@ -33,8 +33,8 @@ function atravelblog_related_posts() { 'meta_query' => array( array( 'key' => 'urlaub', // name of custom field - 'value' => '"' . get_the_ID() . '"', // matches exaclty "123", not just 123. This prevents a match for "1234" - 'compare' => 'LIKE' + 'value' => get_the_ID(), // matches exaclty "123", not just 123. This prevents a match for "1234" + 'compare' => '=' ) ) ) );