Start experiment to query Tagebuch entries
This commit is contained in:
parent
48cd36e98b
commit
85e4123b27
2 changed files with 15 additions and 7 deletions
|
|
@ -88,6 +88,15 @@
|
|||
}
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$tagebuch = get_posts(array(
|
||||
'category_name' => 'Tagebuch',
|
||||
'meta_key' => 'urlaub', // name of custom field
|
||||
'meta_value' => '"' . get_the_ID() . '"', // matches exaclty "123", not just 123. This prevents a match for "1234"
|
||||
));
|
||||
var_dump($tagebuch);
|
||||
?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue