2019-02-26, 05:51:41
Insert this in your template, before <?php get_header(); ?>
(If you prefer to have it in a component or a function, a small change would be required.)
Code:
<?php
$arr =array(
"tag1" => "This is the meta description for tag1",
"tag2" => "This is the meta description for tag2",
"tag3" => "This is the meta description for tag3",
// etc...
);
if (nm_is_tag()) foreach ($arr as $t=>$m) if (nm_is_tag($t)) {$metad=$m; break;}
?>
(If you prefer to have it in a component or a function, a small change would be required.)