Home  ›  Template Tags  ›  Blog Linking Template Tags

Blog Linking Template Tags

The following template tags are used to output blog linked info.

Before using any of these template tags, go to Forum ☛ Configuration ☛ Code and Query Optimisation and turn on the support for ‘Blog/Topic Linking’ Template tags

Linked Topic Post Count

This template tag can be placed within the blog comments template and for linked blog/topic posts will display the number of posts currently made against that topic. Useful in conjunction with the option to append topic posts to comments for linked posts.

sf_linked_topic_post_count();

There are no arguments for this template tag.

Blog Linking

This template tag allows display of forum linked topic link back to the blog linked post outside of the post content (the WP loop).

sf_blog_linked_tag($postid, $show_img=true);

Possible arguments to the template tag are:

ParameterDescriptionTypeDefault
$postidID of the blog postInteger-
$show_imgDisplay the icon for blog linked topicsBooleanTrue

User specified styles available for template tag output is:

StylesAffected Output
span.sfforumlinkStyles the link text

An example usage of the template tag is:

sf_blog_linked_tag(34, true);

Article written by steve on February 25, 2010 and last modified by steve on February 26, 2010