(2013-12-05, 03:26:25)newdeepdan Wrote: I've recently been using this plugin, and its great! I was wondering if anyone can help me with is there some code to only show posts with certain tags?
Page 1: only show posts with 'blue' tag
Page 2: only show posts with 'red' tag
and so on.
I tried reading through all the pages of this topic but I didn't find a solution. Any help would be appreciated a lot. Thank you.
D.O. posted a tip, a way to do this (if I have understood well)
Code:
<?php
if (return_page_slug()=='page-1') nm_show_tag('blue');
if (return_page_slug()=='page-2') nm_show_tag('red');
?>
Depending on how many pages/tags you want to use, it could be done in some different way (instead of using lots of ifs)
There's an issue if you use other plugin shortcodes (DynPages, galleries, etc.) in your posts - shortcodes will not be processed in those pages. [edited: tag pages use excerpts, so shortcodes are removed]
nm_show_tag() is really an internal function, not intended for use in templates or components, but this works.