Fix query for Urlaub
This commit is contained in:
parent
55df26e15e
commit
0db2685810
1 changed files with 6 additions and 6 deletions
|
|
@ -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'
|
||||
)
|
||||
)
|
||||
) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue