News Manager: Conditionals

(Since 2.5)

You can use the following conditional functions in any component or template file:

  • nm_is_single()
  • nm_is_main()
  • nm_is_tag()
  • nm_is_archive()
  • nm_is_search()

For example, if you want to show some text only in single/full post pages:

<?php if (nm_is_single()) { ?>
... your text/code ...
<?php } ?>