(2018-10-26, 09:01:51)32010 Wrote: Hi, I've two questions:
- Is there a way to use News Manager to create a sticky post (i.e. one that stays posted above any other new posts, so site visitors will always see it first)?
- Is there a way to post News Manager posts to two different pages on a website, rather than simply assigning the posts to one page?
I've searched the thread and couldn't find any relevant answers - apologies if I've missed something.
you can use nm_show_tag in a template like this
PHP Code:
<section id="news-features">
<section id="sticky-posts">
<?php
nm_set_option('maxposts', 2); //I don't want to see more than 2 stickies
nm_show_tag('sticky');
?>
</section>
<section id="news-headlines">
<h2>Recent News</h2>
<?php nm_list_recent(); ?>
</section>
</section>
define('NMDEFAULTEXCLUDETAGGED', 'sticky');
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.