From c3c32d88ef9c2356e7315e2486d49cbd4b7b9da9 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Sat, 10 Sep 2016 21:16:41 +0200 Subject: [PATCH] Fix post ID to Tagebuch --- .idea/workspace.xml | 31 +++++++++++++++++++++++++------ single.php | 8 ++++---- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ab9fe2d..dae9780 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,6 +2,7 @@ + @@ -26,10 +27,19 @@ - - + + + + + + + + + + + @@ -176,12 +186,12 @@ - @@ -235,10 +245,19 @@ - - + + + + + + + + + + + diff --git a/single.php b/single.php index 2bfde6a..911dd94 100644 --- a/single.php +++ b/single.php @@ -95,11 +95,11 @@ )); foreach($tagebuch as $tb){ if(get_field('urlaub',$tb->ID)->ID === get_the_ID()){ - $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'post-thumb' ); + $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($tb->ID), 'post-thumb' ); - echo('
'); - echo('
'); - echo('

'.the_title().'

'); + echo('
'); + echo('
'); + echo('

'.get_the_title($tb->ID).'

'); } } ?>