2019-02-28, 22:10:38
(2019-02-24, 03:30:44)Carlos Wrote:(2018-12-27, 21:18:21)dromanov31 Wrote: Hello! I have an idea of a useful feature which could highly improve SEO of this plugin. It is the ability to add meta description to tag pages. Example of a page site.com/news/tag/sometag
Sorry for the delay.
I'll consider it.
If you need this, I can post some example of template snippet.
(2019-02-26, 05:51:41)Carlos Wrote: Insert this in your template, before <?php get_header(); ?>
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.)
Thank you very much, Carlos!
I'll try this!