Fix query for Tagebuch entries
This commit is contained in:
parent
d41892d58a
commit
aaea44db9c
1 changed files with 2 additions and 2 deletions
|
|
@ -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' => '='
|
||||
)
|
||||
)
|
||||
) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue