Hack preview box into Urlaub
This commit is contained in:
parent
189bf114a2
commit
f2243ecca2
1 changed files with 5 additions and 1 deletions
|
|
@ -95,7 +95,11 @@
|
||||||
));
|
));
|
||||||
foreach($tagebuch as $tb){
|
foreach($tagebuch as $tb){
|
||||||
if(get_field('urlaub',$tb->ID)->ID === get_the_ID()){
|
if(get_field('urlaub',$tb->ID)->ID === get_the_ID()){
|
||||||
get_template_part( 'content', get_post_format($tb->ID) );
|
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'post-thumb' );
|
||||||
|
|
||||||
|
echo('<a href="'.the_permalink($tb->ID).'" id="post-'.the_ID().'" '.post_class('post').' style="background-image: url('.$thumb['0'].');"><div class="post-overlay">');
|
||||||
|
echo('<div class="archive-post-header"><p class="archive-post-date">'.the_time(get_option('date_format')).'</p>');
|
||||||
|
echo('<h2 class="archive-post-title">'.the_title().'</h2></div></div></a>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue