Start experiment to query Tagebuch entries

This commit is contained in:
Markus Ankenbrand 2016-09-10 20:34:28 +02:00
parent 48cd36e98b
commit 85e4123b27
2 changed files with 15 additions and 7 deletions

View file

@ -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