2018-10-29, 02:33:42
(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.