Control the Number of Related Post Shown with UTW

I’m sure this is documented with Ultimate Tag Warrior, since the plugin does have great docs, but who reads those 😉
I noticed today that a couple of my post had 8 or more related post listed below them. I needed to cut that down to 4 so it was time to dive into the code.
To edit a plugin, there is a submenu off the plugin menu to edit plugins. Choose Ultimate Tag Warrior to edit.

Look for the code:

function UTW_ShowRelatedPostsForCurrentPost($formattype, $format="", $limit = 0) {

Change the limit = 0 to limit = 4 or how ever many related post you want.

Technorati Tags:

     

Leave a Reply