From 59f7f7b6239c8f27882b96b38abc81bf521a80f4 Mon Sep 17 00:00:00 2001 From: Dan Head Date: Mon, 26 Feb 2018 18:59:51 +0000 Subject: [PATCH] Suppress NewsNow tag from metadata --- theme/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/theme/functions.php b/theme/functions.php index 59a81f0..63ad676 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -21,6 +21,12 @@ function windycoys_nav() { function windycoys_the_tags() { $tags = get_the_tags(); + // Suppress NewsNow tag + foreach($tags as $key=>$tag) { + if($tag->name === "newsnow") { + unset($tags[$key]); + } + } if ($tags) { foreach($tags as $key=>$tag) { echo '