single lightbox

This commit is contained in:
2019-07-03 23:20:48 +02:00
parent d59b9afadf
commit 5f461d3ea2
14 changed files with 653 additions and 219 deletions

View File

@@ -30,7 +30,7 @@
<?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) {
if ($terms && ! is_wp_error( $terms )) {
foreach ($terms as $term) {
echo '| ';
echo $term->name;