2018-11-03, 23:07:40
(2018-11-03, 16:57:05)Carlos Wrote: [ -> ]Forget it... nm_get_header ignores parameters.
(With get_header you can use get_header(false) to remove the canonical tag)
Can you send me the URL of your site by PM?
PM sent!
(2018-11-03, 16:57:05)Carlos Wrote: [ -> ]Forget it... nm_get_header ignores parameters.
(With get_header you can use get_header(false) to remove the canonical tag)
Can you send me the URL of your site by PM?
(2018-10-29, 02:33:42)Carlos Wrote: [ -> ]Thanks that does the job.(2018-10-27, 22:18:28)lesh Wrote: [ -> ]Carlos -
nm_show_tag displays a message "no posts found' if there are no posts with that tag, it would be good to be able to check first so nm_show_tags could be skipped and avoid this message.
Currently you can use a conditional like this:
Code:<?php
$tags = nm_get_tags();
if (count($tags['mytag']) {
nm_show_tag('mytag');
}
?>
(I intend to add some other functions to make things better.)
In the meantime, another option is using the News Manager Addons plugin, that lets you filter by a tag, use your custom html layout, etc.
(2018-11-15, 16:37:10)krlllo Wrote: [ -> ]Hello, guys!
By any chance, is there an option within news manager where I can set a date to unpublish a post? Thank you
(2018-11-21, 04:08:53)Scorpio Wrote: [ -> ]Is there any possibility to use and install the news manager plugin twice?
I want to use the first one for general news and the second one for events.
define('NMDEFAULTEXCLUDETAGGED', 'events');
in gsconfig.php (so that these posts are not included in the main posts list, archives, etc.)SITE/news/tag/events
(or SITE/news/?tag=events
, ... depending on your fancy URL settings)(2018-12-11, 05:51:38)Carlos Wrote: [ -> ](2018-11-15, 16:37:10)krlllo Wrote: [ -> ]Hello, guys!
By any chance, is there an option within news manager where I can set a date to unpublish a post? Thank you
No, there's no option for that.
Just curious - if this was possible, how would you expect it to work for unpublished posts? Would they just not be listed (but still available if you know the post URL), or would they no longer be available? (like private posts)
(2018-12-11, 06:05:45)Carlos Wrote: [ -> ]Long ago I made 3 NM clones. However I've not updated them since then - they're still based on version 3.2.2. When I have the time I'll update them to 3.6.
(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
(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.
<?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;}
?>
(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.)
(2019-03-11, 22:47:15)acenda Wrote: [ -> ]News Manager updated (Great plugin, but little problems with post pictures and social media. Made it work, but picture should be invisible in posts and post list. Only visible in social media og:image)
showImages 0
(2019-03-12, 00:49:05)Carlos Wrote: [ -> ](replying to http://get-simple.info/forums/showthread...5#pid63895 )
(2019-03-11, 22:47:15)acenda Wrote: [ -> ]News Manager updated (Great plugin, but little problems with post pictures and social media. Made it work, but picture should be invisible in posts and post list. Only visible in social media og:image)
Enable NM Custom Settings and enter:
Code:showImages 0
(2019-03-15, 23:28:23)acenda Wrote: [ -> ]Hi Carlos. How can I use the post picture in og:image? Is there a way to print picture's url?
Thanks!
<?php if (nm_post_has_image()) { ?>
<meta property="og:image" content="<?php nm_post_image_url(640,480,1); ?>">
<?php } ?>