WordPress Related Posts plugin 2.0 release candidate

Related PostsAfter receiving overwhelming responses to the first release of the Related Posts plugin for WordPress, I have tried to implement a range of new features as requested by my loyal commenters.

The 2.0 release wil bring these new features:

  • Option to display related posts underneath your post content automatically
  • Extended customization of the way the list of related posts are displayed:
    • Using a custom title for the related posts section
    • Choosing the HTML header element (h1, h2, etc.) of the title for the related posts section, for all you DOM purists and SEO cats out there
    • Custom message to display when there are no related posts, with the option no displaying anything at all (no text, no code)
  • Widget support
  • Some minor bugs, like the post itself appearing as a search result
  • [EDIT] Relating posts to pages and vice versa will also be a feature in this release

Note that this version is a release candidate, which means that it’s not yet fully tested. That’s why I need you to check it out.

Please download the plugin, take it for a spin and let me know if you run into anything unexpected. If everything goes well, I will officially release version 2.0 to the world somewhere next week.


  • For customizing with CSS: the list will be displayed as a <ul> within a container <div id="related-posts">.
  • Place this code in your template files (probably single.php) where you want the list of related posts to be displayed:<?php MRP_show_related_posts(); ?>
  • To get the output HTML without displaying it use this function:<?php $related_posts_html = MRP_get_related_posts_html( $post_id ) ?>
  • If you’re looking for further integration; this function will return the IDs and titles of related posts:<?php $related_posts = MRP_get_related_posts( $post_id ); ?>It will return an array like $related_posts[related_post_id]->related_post_title


The settings page

Editing the widget

Related Posts

Comments (9)

  • Pingback by Wordpress plugin: Related Posts

    [...] Current stable version is 1.0, but there is a release candidate for version 2.0 [...]

  • Gary Allen

    July 4, 2008 (10:39 pm)

    Upon activating the plug-in, I received the following message that the plug-in could not be activated:
    Parse error: syntax error, unexpected $end in /usr/local/apache2/htdocs/db/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 483

  • Microkid

    July 6, 2008 (12:17 pm)

    Hi Gary,

    Strange .. What WP version are you running?

  • Jeff

    July 9, 2008 (7:26 pm)

    I like this plugin! I just tried it on a new site I’m developing and it works great – so far. We’ll be putting it thru some extensive testing over the next week as we further develop this site. Will let you know if we encounter any problems. Thanks for the work in developing this plugin!

  • vachi

    July 11, 2008 (3:52 pm)

    same for me too i get the error as well, the older version of teh plugin does not give error

    Fatal error: Call to undefined function wp_register_sidebar_widget() in /home/blah/public_html/vitamovie/site/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 369

    i am using 2.5.1

  • Roman

    October 7, 2008 (6:55 pm)

    Do you think there is anyway I could integrate my thumbnail plugin (php post thumb) with this plugin?

    Therefore displaying the related posts thumbnail along with it?

  • modern house design

    August 23, 2009 (7:15 am)

    same problem :
    Fatal error: Call to undefined function wp_register_sidebar_widget() in /home/blah/public_html/vitamovie/site/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 370

  • Hendrik

    January 4, 2011 (4:57 pm)

    The plugin is superb!

    Like some other folks above I would love to show thumbnails of related posts. Is there any possibility? Please…

  • Fußball

    March 23, 2011 (12:57 pm)

    The idea behind this plugin is awesome. It does what others cant.

    On the other hand the others do things this cant…

    Does it support thumbnails now?

Sorry, comments have been closed.