The Template Tag Group Link displays a link to a specific group forum listing if current user has access privilege.
This template tag is included in the Template Tags and Widgets plugin available on the Simple:Press Our Plugin Library page.
The function used is sp_GroupLinkTag() and the file that makes the magic happen is sp-GroupLink-tag.php which is located in the plugin’s template-tags/library folder.
You can pass optional arguments to the function for formatting and display but the group ID number is required.
An example of using this tag with a Group ID number of 1 would be.
<?php sp_GroupLinkTag('groupId=1'); ?>
An example of using this tag with a Group ID number of 1 and showing text before and after the link would be.
<?php sp_GroupLinkTag('groupId=1&beforeLink=Go to&afterLink=now!'); ?>
You can also call this function by using a shortcode on pages, posts or widgets.
The Using Plugins page describes how you obtain and install the Template Tags plugin. Once installed you would activate it from the Simple:Press administration page Available “Plugins – Install Simple:Press Plugins”