Patrick Schaber just dropped me an email asking me which related posts plugin I am using. Actually I am using one of the functions of the Ultimate Tag Warrior plugin to make the list.
The list was becoming a little unwieldy with the number of related posts, so I have cleaned up the simple code, added some error trapping, and here it is.
<?php if(function_exists('UTW_ShowRelatedPostsForCurrentPost')) { ?>
<h2>Related Posts:-</h2>
<ul class="utwrelposts"><?php UTW_ShowRelatedPostsForCurrentPost("posthtmllist" , "" , "10"); ?></ul>
<?php } ?>
Be careful on the quotes, as I still haven’t worked out why they are not appearing correctly under WP2.1
Using Ultimate Tag Warrior for controlling related posts means that you are not having to rely on a 3rd party algorithm to define what is related, although by limiting the number of related entries as I am now doing to 10, UTW seems to pick the most related posts fairly well.
7 Comments
Andy,
Thanks for the information! I’ll take a closer look at the UTW plug-in I have installed.
Andy, seems like Ive found a handy place to pop by and read up on handy little WP Plugins too :D
Speaking of which, mind sharing which one you use for your display php code plugin?
ig syntax highlighter
The problem is it seems to be buggered atm – it used to get quotes correct, but with 2.1 there seems to be a problem
hmmn, well it sure beats my current method of screenshot shrink and gif :D
ps..interesting use of nofollow on your h1 title…
I am busy hacking all my header stuff, and theme atm, and then I will be posting the code I am using.
I have a sitewide “Andy Beard – Niche Marketing” for home in the sidebar, so a followable heading there didn’t really matter so much – I do need to switch some of my headings around, and oyu will see some dynamic stuff there soon.
Cheers for that. Was looking for some info and came across your blog again on Google ;)
Andy,
Good stuff here. This was exactly what I was searching for, only a heck of a lot easier!
4 Trackbacks
[...] I mainly use UTW to put my Technorati tags into my posts. There are tons of other uses as well. Andy has a post on how you can use UTW to display related [...]
[...] have previously posted the code needed to insert UTW related posts somewhere on your blog. It was quite a short piece of code, but sometimes UTW can seem [...]
[...] Related Posts with UTW Andy Beard [...]
[...] Related Posts with UTW | Andy Beard – Niche Marketing – Use one of the functions of the Ultimate Tag Warrior WordPress plugin to make the list of your related posts [...]