The Template Tag Topic Link displays a link to a specific forum topic if current user has access privilege. The output displayed will use your theme styling.
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_TopicLinkTag() and the file that makes the magic happen is sp-TopicLink-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 TopicID number is required. If topic ID number is not found it will display “Topic not Found”.
An example of using this tag with a Topic ID number of 1o would be.
<?php sp_TopicLinkTag('topicId=10'); ?>
An example of using this tag with a Topic ID number of 10 and showing text before and after the link would be.
<?php sp_topicLinkTag('topicId=10&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”