From 85e4123b272e9cdf84acdf65865aa0c8184eb401 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Sat, 10 Sep 2016 20:34:28 +0200 Subject: [PATCH] Start experiment to query Tagebuch entries --- .idea/workspace.xml | 13 ++++++------- single.php | 9 +++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 77d6eba..ab9fe2d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,6 @@ - @@ -27,8 +26,8 @@ - - + + @@ -177,12 +176,12 @@ - @@ -236,8 +235,8 @@ - - + + diff --git a/single.php b/single.php index 1dc1fa4..d29aa52 100644 --- a/single.php +++ b/single.php @@ -88,6 +88,15 @@ } + + '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); + ?>