Fix post ID to Tagebuch
This commit is contained in:
parent
eed02bf414
commit
c3c32d88ef
2 changed files with 29 additions and 10 deletions
31
.idea/workspace.xml
generated
31
.idea/workspace.xml
generated
|
|
@ -2,6 +2,7 @@
|
|||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="f4814905-d0bb-4804-a501-969ee4335bd0" name="Default" comment="">
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/single.php" afterPath="$PROJECT_DIR$/single.php" />
|
||||
</list>
|
||||
<ignored path="atravelblog.iws" />
|
||||
|
|
@ -26,10 +27,19 @@
|
|||
<file leaf-file-name="single.php" pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/single.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="825">
|
||||
<caret line="97" column="48" selection-start-line="97" selection-start-column="48" selection-end-line="97" selection-end-column="48" />
|
||||
<state relative-caret-position="571">
|
||||
<caret line="100" column="71" selection-start-line="100" selection-start-column="71" selection-end-line="100" selection-end-column="71" />
|
||||
<folding>
|
||||
<element signature="n#style#0;n#div#0;n#div#3;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
|
||||
<marker date="1473534979294" expanded="true" signature="2994:3008" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3046:3126" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3530:3570" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3763:3853" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3835:3853" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3993:4017" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="4323:4560" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="4534:4560" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="4946:5017" ph="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
|
|
@ -176,12 +186,12 @@
|
|||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1473509435154</updated>
|
||||
<workItem from="1473509436732" duration="4235000" />
|
||||
<workItem from="1473509436732" duration="6510000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="4235000" />
|
||||
<option name="totallyTimeSpent" value="6510000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="0" y="0" width="1920" height="1061" extended-state="0" />
|
||||
|
|
@ -235,10 +245,19 @@
|
|||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/single.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="825">
|
||||
<caret line="97" column="48" selection-start-line="97" selection-start-column="48" selection-end-line="97" selection-end-column="48" />
|
||||
<state relative-caret-position="571">
|
||||
<caret line="100" column="71" selection-start-line="100" selection-start-column="71" selection-end-line="100" selection-end-column="71" />
|
||||
<folding>
|
||||
<element signature="n#style#0;n#div#0;n#div#3;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
|
||||
<marker date="1473534979294" expanded="true" signature="2994:3008" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3046:3126" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3530:3570" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3763:3853" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3835:3853" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="3993:4017" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="4323:4560" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="4534:4560" ph="..." />
|
||||
<marker date="1473534979294" expanded="true" signature="4946:5017" ph="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
|
|
|
|||
|
|
@ -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('<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>');
|
||||
echo('<a href="'.get_the_permalink($tb->ID).'" id="post-'.$tb->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">'.get_the_time(get_option('date_format')).'</p>');
|
||||
echo('<h2 class="archive-post-title">'.get_the_title($tb->ID).'</h2></div></div></a>');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue