Fix query for Urlaub

This commit is contained in:
Markus Ankenbrand 2016-09-12 21:05:04 +02:00
parent 55df26e15e
commit 0db2685810

View file

@ -48,8 +48,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' => '='
'value' => '"'.get_the_ID().'"', // matches exaclty "123", not just 123. This prevents a match for "1234"
'compare' => 'LIKE'
)
)
) );
@ -70,8 +70,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' => '='
'value' => '"'.get_the_ID().'"', // matches exaclty "123", not just 123. This prevents a match for "1234"
'compare' => 'LIKE'
)
)
) );
@ -92,8 +92,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' => '='
'value' => '"'.get_the_ID().'"', // matches exaclty "123", not just 123. This prevents a match for "1234"
'compare' => 'LIKE'
)
)
) );