From 18bd275fbce76fb3e066052ca9a42dba1c896faf Mon Sep 17 00:00:00 2001 From: Alessandro Tilli Date: Fri, 15 Nov 2019 15:38:55 +0100 Subject: [PATCH] tag template --- tag.php | 2 +- templates/blocks/tease-related-post.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tag.php b/tag.php index 788eb77..74fb7bd 100644 --- a/tag.php +++ b/tag.php @@ -52,7 +52,7 @@ $context['og_description'] = $context['tag_description']; if ( $tag_image_id ) { $context['og_image_data'] = wp_get_attachment_image_src( $tag_image_id, 'full' ); - } + } $context['projects'] = "[shortcake_projects_carousel layout='light' title='".$context['strings']['our_initiatives']."' topic='".$context['tag']->term_id."' /]"; diff --git a/templates/blocks/tease-related-post.twig b/templates/blocks/tease-related-post.twig index c244827..9f9a51e 100644 --- a/templates/blocks/tease-related-post.twig +++ b/templates/blocks/tease-related-post.twig @@ -1,4 +1,4 @@ -{% if (loop.index == 4 or loop.index == 7) %} +{% if ((loop.index % 3) == 1) %}
{% endif %}