Related Posts with UTW

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.

  • Share/Bookmark

Related posts

This entry was posted in blogging tips, plugins, wordpress and tagged , , , , , . Bookmark the permalink. Both comments and trackbacks are currently closed.

7 Comments

  1. Patrick Schaber (4 comments.)
    Posted January 31, 2007 at 3:33 pm | Permalink

    Andy,
    Thanks for the information! I’ll take a closer look at the UTW plug-in I have installed.

  2. robwatts (29 comments.)
    Posted January 31, 2007 at 5:48 pm | Permalink

    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?

  3. Andy Beard (1789 comments.)
    Posted January 31, 2007 at 5:52 pm | Permalink

    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

  4. robwatts (29 comments.)
    Posted January 31, 2007 at 5:59 pm | Permalink

    hmmn, well it sure beats my current method of screenshot shrink and gif :D

    ps..interesting use of nofollow on your h1 title…

  5. Andy Beard (1789 comments.)
    Posted January 31, 2007 at 6:10 pm | Permalink

    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.

  6. Owen (15 comments.)
    Posted March 7, 2007 at 10:24 pm | Permalink

    Cheers for that. Was looking for some info and came across your blog again on Google ;)

  7. Jim (1 comments.)
    Posted October 11, 2007 at 5:16 pm | Permalink

    Andy,
    Good stuff here. This was exactly what I was searching for, only a heck of a lot easier!

4 Trackbacks

  1. [...] 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 [...]

  2. [...] 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 [...]

  3. [...] Related Posts with UTW Andy Beard [...]

  4. [...] 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 [...]