Related Posts
WTF provides you with a simple way to show related posts on your WordPress site. This is usually shown at the bottom of a single post page and is based on post tags. All you have to do to show related posts is add the following code in the loop probably in your single.php file:
<?php if(function_exists('wtf_related_posts')) wtf_related_posts(); ?>
This will output an un-ordered list of posts on your page. Note that this function will not work if your posts don’t use tags and the function is not in the loop. For more information on the loop see the official WordPress documentation.
Advanced
This method can take one argument:
wtf_related_posts($showposts);
- $showposts
- Default – 5
- Description – How many posts do you want to list. Any numeric value.

