2014-07-06, 19:17:43
2014-07-06, 20:35:20
You can use nm_custom_display_recent, e.g. like this:
Just a note: I've uploaded this plugin to Extend.
Code:
<ul>
<?php
nm_custom_display_recent('
<li><strong><a href="{{post_link}}">{{post_title}}</a></strong><br />
{{post_excerpt}}
<a href="{{post_link}}">Read more</a>
</li>
',
'tagishere');
?>
</ul>
Just a note: I've uploaded this plugin to Extend.
2014-07-10, 01:17:12
Ok thanx, works fine now .
2014-07-22, 18:50:50
Hey Carlos! Hell, GS is changing a lot!
I tested your lastest version 0.9.0.3 and it works great.
Tip: if you can't add my "pull-down menu style WP" to NMUpdated plugin, you could add it to NMAddons. it could fit well.
I tested your lastest version 0.9.0.3 and it works great.
Tip: if you can't add my "pull-down menu style WP" to NMUpdated plugin, you could add it to NMAddons. it could fit well.
2014-09-04, 00:38:40
News Manager Addons plugin version 0.9.1
- Support for NM authors with new token {{post_author}}
- Supports NM 3.0 custom setting defaultAuthor
- Supports $NMAUTHOR gsconfig array (as in NM Custom Authors)
- Support for NM authors with new token {{post_author}}
- Supports NM 3.0 custom setting defaultAuthor
- Supports $NMAUTHOR gsconfig array (as in NM Custom Authors)
2014-10-18, 04:03:14
Version 0.9.1.1 available: fixes wrong <ul> classes (nm_custom_list_recent, nm_custom_list_future)
2014-10-20, 04:24:01
Great. I am going to test it.
2014-12-03, 19:43:15
Hi Carlos!
After various "tests" with "NM Addons", I may to suggest you to eliminate the tags <p> and </p> before and after the tag {{post_excerpt}}. I think that It's better to have a clean text to use it directly in a tag <div> or <span>, specially during the adaptation of a free html template. What do you think about it?
After various "tests" with "NM Addons", I may to suggest you to eliminate the tags <p> and </p> before and after the tag {{post_excerpt}}. I think that It's better to have a clean text to use it directly in a tag <div> or <span>, specially during the adaptation of a free html template. What do you think about it?
2014-12-06, 01:22:27
I agree. Thank you!
2014-12-11, 06:11:45
News Manager Addons version 0.9.2
- Post excerpts ({{post_excerpt}} placeholder) are no longer enclosed between <p> and </p> tags. (@D.O.)
2014-12-12, 23:28:33
Hi Carlos, thanks for accepting my TIP, example in this amazing themes by Timbow
(http://get-simple.info/extend/theme/gril...-site/873/) there is this "problem" with NM Addons and the template
(if you list it there are two <p> tags.
OK I am going to download the new version now, thanks again for your quick help bro!
(http://get-simple.info/extend/theme/gril...-site/873/) there is this "problem" with NM Addons and the template
(if you list it there are two <p> tags.
OK I am going to download the new version now, thanks again for your quick help bro!
(2014-12-11, 06:11:45)Carlos Wrote: [ -> ]News Manager Addons version 0.9.2
Please note that, if you're upgrading from previous versions of the plugin, you may have to edit your template or component (if your styles are affected, you just have to change {{post_excerpt}} to <p>{{post_excerpt}}</p>)
- Post excerpts ({{post_excerpt}} placeholder) are no longer enclosed between <p> and </p> tags. (@D.O.)
2014-12-18, 00:50:14
Version 0.9.2.1 available (bugfix for 0.9.2)
(Thanks to Gooos for reporting)
(Thanks to Gooos for reporting)
2015-01-02, 07:40:07
I'm trying to get a list of recent postimages in the sidebar with the title of the post as alt-tag
I've tried with the
which off course don't work because of the <a href> tag.
but simple replacing this tag with the <img> tag also doesn't work
Is this possible ?
Anyone successful on this road ?
I think i'm getting there myself...
I've tried with the
PHP Code:
<a href="{{post_link}}">{{ post_image }} alt="{{post_title}}"</a>
which off course don't work because of the <a href> tag.
but simple replacing this tag with the <img> tag also doesn't work
PHP Code:
<img src="{{post_link}}">{{ post_image }} alt="{{post_title}}"</img>]
Is this possible ?
Anyone successful on this road ?
I think i'm getting there myself...
PHP Code:
<?php nm_custom_display_recent('
<a href="{{ post_image_url }}" alt="{{ post_title }}">
'); ?>
2015-01-02, 08:23:19
To get the image URL only, use the {{ post_image_url }} placeholder. Example:
Code:
<a href="{{ post_link }}"><img src="{{ post_image_url }}" alt="{{ post_title }}" /></a>
2015-01-12, 03:45:08
News Manager Addons version 0.9.3
- added support for NM (3.0+) post image options and custom settings (width, height, crop, default image) when nm_set_custom_image is not used.
2015-02-26, 03:14:51
News Manager Addons version 0.9.3.1
- fixes issue with custom excerpt length, not working since 0.9.2 (with NM 3.0) (@smsHH)
2015-02-27, 20:37:33
Hi Carlos, I will to test it soon.
2015-02-28, 01:14:47
custom excerpt length works fine now, i have it on the slider caption .. at least it works in my firefox 3.6 ;D
2015-04-19, 00:42:25
Hi,
any idea how can I implement random posts based on tags ? I'm trying to create a list of 5 random posts, where tags are sorted from 2 occurencies to more (2 because 1st is shown post, 2nd is related post based on tag..). I'm not very successful I don't have effective way of counting tags and assigning posts to them :/
so if 5 posts have 1-2 common tags, they would be skipped and only posts with more unique tags will be displayed, if no other posts, then show at least those posts with common tags..
any idea how can I implement random posts based on tags ? I'm trying to create a list of 5 random posts, where tags are sorted from 2 occurencies to more (2 because 1st is shown post, 2nd is related post based on tag..). I'm not very successful I don't have effective way of counting tags and assigning posts to them :/
so if 5 posts have 1-2 common tags, they would be skipped and only posts with more unique tags will be displayed, if no other posts, then show at least those posts with common tags..
2015-04-19, 19:47:37
News Manager's functions nm_get_posts() and nm_get_tags() return an array of posts (with all fields but content) and an array of tags (associated to post ids having the tag), respectively. These functions may be useful to do what you need.
2015-04-22, 07:47:31
thanks for pointing me to right direction, if anybody needs similar posts by tag, here's my code
Code:
$num_post = 5;
$slugs = array();
$url = nm_get_url('post');
$posts = nm_get_tags();
foreach($posts as $tag => $post) {
if(nm_post_has_tag($tag)) {
foreach ($post as $slug) {
$slugs[] = (string)$slug;
}
}
}
$slugs = array_unique($slugs);
if(($key = array_search(nm_post_slug(false), $slugs)) !== false) {
unset($slugs[$key]);
}
shuffle($slugs);
$slugs = array_slice($slugs, 0, $num_post);
$all = nm_get_posts();
echo '<ul class="nm_similar_post">';
foreach ($all as $post) {
if(in_array($post->slug, $slugs)) {
echo '<li><a href="'.$url.$post->slug.'" title="'.$post->title.'">'.$post->title.'</a></li>', PHP_EOL;
}
}
echo '</ul>';
2015-04-24, 04:47:41
Very interesting, thanks for sharing it.
2015-04-28, 03:23:16
(2015-04-24, 05:13:29)Oleg06 Wrote: [ -> ]works well, but what does the number 5?
Code:$num_post = 5;
Maximum number of posts to be listed.
2015-06-14, 18:52:42
News Manager Addons version 0.9.3.2
- added support for author's Display Name field (GS 3.2+, News Manager 3.2+)
2015-07-01, 18:09:56
The custom display thing is fantastic. It means I can do almost anything with recent posts on a homepage. I have found one very small error in the documentation:
Thank you Carlos for this fine plugin.
- {{ post_number }} - number of post as displayed (1 = first)
- {{ post_number }} - number of post as displayed (0 = first)
Thank you Carlos for this fine plugin.