Fix query for Tagebuch entries

This commit is contained in:
Markus Ankenbrand 2016-09-12 13:34:55 +02:00
parent d41892d58a
commit aaea44db9c

View file

@ -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' => '='
)
)
) );