Simple Tagging: Related Posts
Use
<?php STP_RelatedPosts(); ?>
in any template file within the WordPress Loop to display related posts of the current post:
The function STP_GetRelatedPosts()
is the non-echoing version (returns tags as string).
Example
<?php if (class_exists('SimpleTagging')) : ?>
<h3>Related Posts:</h3>
<ul>
<?php STP_RelatedPosts() ?>
</ul>
<?php endif; ?>
Options
You can change the appearance and behaviour by modifying the plugin’s options under WP Administration > Tags > Tag Options.
When you have opened the options, scroll down to Related Posts.
Individual Options
You also can override the plugin’s options by using the following optional parameters in the template tag STP_RelatedPosts()
:
STP_RelatedPosts($format, $postsseparator, $sortorder, $limit_qty, $limit_days, $dateformat, $nothingfound, $includepages)
Each option is explained under WP Administration > Tags > Tag Options > Related Posts.