home, tag archive improvements

This commit is contained in:
2019-06-24 02:37:58 +02:00
parent bbd581903b
commit 48e247e0f9
15 changed files with 768 additions and 280 deletions

View File

@@ -21,7 +21,9 @@
<div class="metadata">
<div class="categories">
<?php the_category(' | ');?>
<?php
<?php if(is_home() and $qc < 3): ; //first two posts format only ?>
<?php //get the post format
$terms = get_the_terms($post->ID, 'Format');
if ($terms) {
foreach ($terms as $term) {
@@ -29,6 +31,7 @@
echo $term->name;
}
}?>
<?php endif;?>
</div>
<?php if(is_home() and $qc < 3): ; //first two posts subtitle and excerpt ?>
<div class="alcim">