Wordpress plugin: Related Posts

This Wordpress plugin lets you manually select related posts using a nifty AJAX powered search utility. A powerful tool for boosting pages per visit and SEO.

Download the Related Posts plugin

Current stable version: 2.2

Features

  • Easily find entries that might be related to the one you are writing with an integrated AJAX powered search utility,
  • Easily add and remove relations with a single click. No page reloads, no pop-ups
  • Automatically display a list of related posts underneath your posts content. No need to add any PHP tags in your template files, but several functions available for advanced users.
  • The relationship created works reciprocal, which means that if post A is added as related to post B, post B is automatically added as related to post A as well (this option can be turned off easily through the settings panel)
  • Widget support
  • Flexible customization of the way the related posts are displayed

Screenshots

screenshot-1

screenshot-2

screenshot-3

Installation

  • Download the plugin and unzip,
  • Put the related-posts folder in your wp-content/plugins folder,
  • Activate the plugin through the Wordpress admin,
  • Related posts will be placed underneath your posts/pages content automatically (after you have selected them manually in the write/edit post screen). You can change this and some other settings through the plugins options page under Settings > Related Posts.
  • For advanced implementation, there are a couple of API functions available.

Customization

There are several options for customizing the way related posts are displayed on the plugins settings page.

For customizing with CSS: the list will be displayed as a <ul> within a container <div id="related-posts">

API functions

  • 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

Change Log

2.2

  • Added optimized SQL for related posts query provided by Peter Raganitsch
  • Added option for turning reciprocal function off provided by Brock Boland
  • Fixed some layout issues in Wordpress 2.7
  • The search tool now searches in post title and post content.

2.1.1

  • Solved an issue with shorthand PHP tags.

2.1

  • Solved an issue where in WP 2.6 relationships with revisions were created when editing a post.

2.0

  • Added the option to display related posts underneath your post content automatically
  • Added the extended customization options for the way the list of related posts is displayed:
    • Using a custom title
    • Choosing the HTML header element (h1, h2, etc.) of the title for the related posts section
    • Custom message to display when there are no related posts, with the option no displaying anything at all (no text, no code)
  • Added widget support
  • Added support for adding related pages

1.1

  • Fixed a small issue with the paths to the .js and .css files which made the plugin break on blogs that reside in subdirectories.

To Do

  • Language support
  • Displaying post meta information with related posts (categories, tags, date, number of comments)

Credits

A big thank you goes out to:

  • Peter Raganitsch for sharing his ancient SQL kung fu and thoroughly improving the speed and accuracy of this plugin.
  • Brock Boland for sharing his amazing improvements on the reciprocal function.

Hope you’ll find this useful. Please let me know how it works for you and if you run into any problems.

Comments (169)

  • Lazy

    June 26, 2008 (10:00 pm)

    Hi,

    really usefull plugin and i will sure give it a try tomorrow.

    have a nice evening,

    Chris

  • Microkid

    June 26, 2008 (10:01 pm)

    Cool thanks!

    Let me know how it works out.

  • baron

    June 27, 2008 (12:02 am)

    hi. Thanks for plugin

    perfect.

    Regards

  • Chris

    June 27, 2008 (1:38 am)

    Very nice plugin. Can’t wait for widget support. It would be excellent to have this functionality in the sidebar. Thanks.

  • Dave

    June 27, 2008 (11:19 am)

    Hi there, just trying out your plugin and love the idea but can’t get the search to return any posts?

    Am I doing something wrong?

  • Microkid

    June 27, 2008 (11:25 am)

    Hi Dave,

    Any change your blog sits in a subdirectory? Something like:

    http://www.example.com/blog/

    I noticed some problems occur with the javascript there.

  • Dave

    June 27, 2008 (11:32 am)

    Could be, it is sat in a subdirectory (http://dave/wordpress) but is set to run from the same directory it’s installed in.

  • Microkid

    June 27, 2008 (11:39 am)

    Yeah, there’s a little bug that creates problems in that case. I’ve quick fixed it, can you try download the plugin again from here

    http://downloads.wordpress.org/plugin/microkids-related-posts.1.0.zip

    and the see if it works?

  • Dave

    June 27, 2008 (11:52 am)

    Thanks MK — works a treat now.

    One point, your example code above references “RP_show_related_posts();” while the actual functions start with “MRP”.

    Thanks again for the quick responses — reciprocal linking is a great addition!

  • Microkid

    June 27, 2008 (11:55 am)

    You are very right, thanks.

    The plugin was named “Related Posts” before, but I had to change it because that name was taken in the Wordpress plugin directory :)

  • Trackback by Leonaut.com

    Related Posts…

    This Wordpress plugin lets you manually select related posts using a nifty AJAX powered search utility….

  • autworld

    June 27, 2008 (4:46 pm)

    great work, nice plugin!

  • Aydın

    June 27, 2008 (8:29 pm)

    Thanks for the plugin but it doesn’t work on my site. I’ve read he comments and seen subdomain issue, I downloaded the new file but it still doesn’t work. Any suggestions?

  • Aydın

    June 27, 2008 (8:37 pm)

    It’s alright, I added my subdomain folder name to mikrokids-related-posts.php file line 186 & 187, now it works perfect…
    Thanks for that great plugin…

  • Charlie

    June 28, 2008 (3:26 am)

    I’m having a problem with this, I have the plugin activated and I’ve added the line of php code to the single.php file where I want the list to appear and all I see after refreshing is “none” where the article links would appear. Did I miss something?

  • Microkid

    June 28, 2008 (1:09 pm)

    Aydin, could you clarify a little? Did get_bloginfo(’siteurl’) not work correctly? What WP version are you running? Can you give me the url?

    Hi Charlie, when there are no related posts added yet to your post, the plugin will display “none”.

  • Dale Ryan

    June 28, 2008 (3:03 pm)

    Doesn’t seem to work with pages. . . just posts. Would it be difficult to expand it to include pages?

  • Microkid

    June 28, 2008 (3:16 pm)

    Hi Dale,

    Support for pages is on it’s way. Actually, I’m thinking it would be great if you could relate anything to anything; pages, links and posts. What do you think?

  • Pingback by Rauru Blog » Blog Archive » 最近の WordPress plugin

    [...] Microkid’s Related Posts plugin [...]

  • Cukrzyca i pompa insulinowa

    June 28, 2008 (7:38 pm)

    Great plug in!
    I’m used similar plug in from Terong many years ago but it was not compatible with wp 2.3 up.
    Great idea, thanks a lot!

  • Slash

    June 28, 2008 (11:31 pm)

    Hi,

    Great plugin. When there are no related posts added yet to a post, the plugin will display “none”. In the next version, will it possible to display nothing at all, no text, no code ?

  • Microkid

    June 29, 2008 (1:04 am)

    Hi Slash,

    I was thinking about that, being able to edit what appears when there are no related posts. Pretty sure I will manage to include that with the next release.

  • ariwolu

    June 30, 2008 (5:27 am)

    Hi
    I’m ari
    I use related post in my wp
    but I still confuse how to use it, can u explain more.
    With a picture or screenshot maybe?
    Thankz

  • rexsky

    June 30, 2008 (7:39 am)

    hi. Thanks for plugin,I will try it ….If has some questions,I will report it …

  • Pingback by Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 6/30

    [...] Microkid’s Related Posts [...]

  • Saijo George

    June 30, 2008 (7:58 am)

    Nice work , was after something like this for a while

  • Pingback by WordPress Plugin Releases for 6/30 | BlogBroker24-7

    [...] Microkid’s Related Posts [...]

  • Saijo George

    June 30, 2008 (8:24 am)

    Its doesn’t work . In the Post edit page , when u type in the search word it just stays blank.

    Already tried the new link that was posted , also tried to edit the mikrokids-related-posts.php file line 186 & 187 and manually added the blog url with out the trailing slash. Still nothin. :(

  • Pingback by Wp Wordpress » Blog Archive » WordPress Plugin Releases for 6/30

    [...] Microkid’s Related Posts [...]

  • Pingback by Wp Wordpress » Blog Archive » Weblog Tools Collection: WordPress Plugin Releases for 6/30

    [...] Microkid’s Related Posts [...]

  • Aydın

    June 30, 2008 (11:05 am)

    Aydin, could you clarify a little? Did get_bloginfo(’siteurl’) not work correctly? What WP version are you running? Can you give me the url?

    get_bloginfo(’siteurl’) didn’t work. I think it just calls “blog url”. My site sits on a subdomain as “../blog” and i added my subdomain folder name after php code and it works fine now. My edited code is:
    ”;
    echo ‘

    Hope it helps.
    By the way, My blog runs on WP 2.5.1

  • Aydın

    June 30, 2008 (11:07 am)

    Ups, code didn’t show up… Adding it again:

    script type="text/javascript" src="'.get_bloginfo('siteurl').'/blog/wp-content/plugins/microkids-related-posts/microkids-related-posts.js">

  • Microkid

    June 30, 2008 (11:20 am)

    Aydin, thanks. Sorry the code isn’t showing up correctly in your comment. But don’t bother , I know what you mean :)

    I’m going to look into it.

    Saijo, I think this should fix your problem too, give me a sec.

  • Microkid

    June 30, 2008 (11:32 am)

    Saijo, can you try downloading this version and see if it works?

  • Saijo George

    June 30, 2008 (12:39 pm)

    Will do it and report back ASAP

  • Saijo George

    June 30, 2008 (12:44 pm)

    Works Fine now , Gr8 work mate …

  • Microkid

    June 30, 2008 (1:25 pm)

    Thanks Saijo, I’ve updated the plugin. Great feedback guys.

  • moserw

    June 30, 2008 (1:56 pm)

    Might be just what I was looking for. Hope it does sticky function well and is customizable to the degree I want. Thanks.

  • Microkid

    June 30, 2008 (1:59 pm)

    Hi moserw, please let me know here if you have any feature requests.

  • Saijo George

    June 30, 2008 (2:13 pm)

    Its customisable and goes well with google ads on post , I have placed Link Ads + Recent Post together . Now lets wait and see how the traffic reacts to it .

    The best features are :

    1) U can select the requires post ( way better than automatic selection based on tags , content )

    2 ) The relationship created works reciprocal, which means that if post A is added as related to post B, post B is automatically added as related to post A as well ( this is a time saver and a gr8 feature )

  • Atlanta Wedding Photographer

    June 30, 2008 (2:50 pm)

    I have been looking for a related posts plugin and I am glad that I came across this site it looks like this is going to be what I am looking for . The problem though: I down loaded the plugin and installed it so that I can see it and search and select the related posts but it doesn’t come up. I saw the link that we have to put in the “theme files.” Where would those exactly be?

  • Pingback by Wp Wordpress » Blog Archive » New Wordpress Plugin Releases

    [...] Microkid’s Related Posts [...]

  • Microkid

    June 30, 2008 (3:02 pm)

    Hello there Wedding Photographer,

    This depends on what Wordpress theme you use. You have to place the code somewhere in one of the theme files that load when a post is viewed (i.e. single.php). This code retrieves and shows the related posts.

  • stratosg

    June 30, 2008 (3:21 pm)

    hey thx for a nice plugin!

  • Atlanta Wedding Photographer

    June 30, 2008 (3:57 pm)

    I’ll put it in the single.php (i know that I have that one) and see what happens later today. I have the “Natural Essence” theme. http://www.peterdoylephotography.com/storyboard

    thanks again.

  • Microkid

    June 30, 2008 (4:47 pm)

    Alrighty Atlanta, put it somwhere below `the_content()` in single.php and you should be ready to go. You can customize the appearance using CSS.

    I think it might be useful for a lot of people to add an “automatically add below posts content” option in the next release.

  • Ruud

    July 1, 2008 (2:55 am)

    Very great plugin..
    But is there any limitation for ‘numerous of related post’ each article that post since “if post A is added as related to post B, post B is automatically added as related to post A as well” ?

    If I have twenty article that related to post A it that mean the A post will have 20 link related post. Too much.
    Thanks before for nice plugin..

  • Saijo George

    July 1, 2008 (4:20 am)

    The beauty of this plugin is that u can add the related post manually , so out of that 20 related post u might have on your blog , if u wish only 2 to show up u can do that by only added those 2

  • Pingback by WordPress Plugins: Related Posts at WordPress Today

    [...]   Related Posts,手工提供“相关文章”列表。   类似“相关文章列表”的插件有不少,不过大部分都是依靠算法来自动匹配的,事实上由于中文的特殊性,有时候这些插件看起来更像是“随机文章列表”。所以,不如还是人工来决定吧。本款插件会在Post页面的选项中增加一个”Related Posts”选项,它提供一个即时效果的搜索框,可以自己输入关键词来搜索文章,然后添加入列表。 [...]

  • Pingback by Skylog » Blog Archive » links for 2008-07-02

    [...] Wordpress plugin: Related Posts This Wordpress plugin lets you manually select related posts using a nifty AJAX powered search utility. (tags: wordpress plugin) [...]

  • atlanta wedding photographer

    July 2, 2008 (6:21 pm)

    okay,,,, I put the code “somwhere below `the_content()` in single.php ” and I now see the related posts only when I am writing the post and not when I view it. Is there anything else that I need to check. I’m sorry that I can’t get this settled.

  • Microkid

    July 3, 2008 (11:45 am)

    Hi Atlanta,
    Did you use the first or the second code mentioned above? You should use the first.

  • Flector

    July 3, 2008 (11:57 am)

    It’s not work with russian titles (AJAX search). Can you fix this problem?

  • atlanta wedding photographer

    July 3, 2008 (4:57 pm)

    Here is the code:

    Posted in

    what do you think

  • atlanta wedding photographer

    July 3, 2008 (4:58 pm)

    ok so you don’t see it ….. i put it under the content and I used the first code you have on there

  • Microkid

    July 3, 2008 (7:23 pm)

    Hi Atlanta,

    I checked out which theme you are using, looks like you’re using a customized version of Natural Essence, correct? If so, the code should be placed underneath somewhere around line 21.

    Replace

    < ?php the_content('Read the rest of this entry »'); ?>

    With

    < ?php the_content('Read the rest of this entry »'); ?>
    < ?php if( function_exists("MRP_show_related_posts") ) MRP_show_related_posts(); ?>

    Let me know if that works.

  • Pingback by Все о Wordpress » Архив блога » Плагины для Wordpress 04.06.2008

    [...] Microkid’s Related Posts [...]

  • Pingback by Wordpress Related Posts plugin 2.0 release candidate

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

  • Pingback by Essential WordPress Plug-ins (urbanmainframe.com)

    [...] Microkid’s Related Posts: Manually add related posts with an Ajax locator. [...]

  • Pingback by Плагин WordPress "Microkid's Related Posts" для вставки "связанных" записей.

    [...] плагина: Microkid (http://www.microkid.net/) Страница плагина: (http://www.microkid.net/wordpress/related-posts/ Рассматриваемая версия: 1.1 от 01.07.2008 Совместимость с [...]

  • maddler

    July 8, 2008 (11:41 pm)

    Great plugin! I was about to write something by myself using themes/PHP/custom fields, you saved my life! :D

  • Cy

    July 9, 2008 (12:30 am)

    I am sorry to say that I cannot get it to work. The code just shows up as text under post. I’m sure the problem is with me. I carefully went over your instructions to Atlanta but that didn’t help. I stayed glued to this page in hopes that you add the option you spoke of up a few comments. Maybe that will do it for the newbie like me. Thanks.

  • maddler

    July 9, 2008 (12:32 am)

    is it the code correctly enclosed among

  • maddler

    July 9, 2008 (12:33 am)

    sorry… that was supposed to be:
    is the code correctly eclosed among <? and ?&gt> ?

  • Microkid

    July 9, 2008 (12:37 am)

    Maddler - You’re welcome :)

    Cy - Try downloading this version of the plugin - it’s not officially released yet, but it has a feature of automatically adding the related posts to your content.

    Make sure you completely uninstall and remove your current install of the plugin before installing this one. And please let me know if this solves your problem.

  • Cy

    July 9, 2008 (4:28 am)

    Thank you Microkid for responding. I have PlugInstaller. After deactivating the Microskids Related Posts I have an option to uninstall. When I do click uninstall a page pops up saying “cannot load”. Can I just use my FireFTP and take the plugin out or is that not the way to proceed? Thanks for your patience.

  • Microkid

    July 9, 2008 (4:16 pm)

    Cy,

    Yes, just delete the entire folder from the plugins folder. Then upload the new version.

  • cy

    July 9, 2008 (6:34 pm)

    Microkid,

    It worked perfectly!. Again, thank you for your time helping me out. I have researched all “related posts” type plugins and this is the very best for newbies like me. I’m sure advanced users will like it too. The reciprocal feature is really nice. By the way I using WP 2.5, self- hosted.

  • Microkid

    July 9, 2008 (7:09 pm)

    Thanks cy, glad to help :)

  • Pingback by Related Posts version 2.0 released

    [...] have released the Wordpress Related Posts plugin version 2.0. It has a lot of cool new features so make sure you [...]

  • moserw

    July 10, 2008 (7:41 pm)

    I installed it a couple of days ago and it worked well showing 10 related posts. Now it says “None” to every post. What could be wrong? BTW I changed my theme, but have done everything the same way in inserting the code as in the previous theme. Any help would be much appreciated.

  • Microkid

    July 11, 2008 (1:02 am)

    moserw,

    Are you running v2.0? If not, please check if installing the new version will solve your problem (see above for the download link)

    It probably has something to do with your new theme. Version 2.0 automatically adds the related posts to your content so there shouldn’t be any dependancies with themes.

  • Cy

    July 11, 2008 (7:54 am)

    May I add that I was validating my blog with W3C and found several plugins that were creating errors. Your plugin was NOT among them and I thank you for that.

  • Shirley

    July 11, 2008 (2:59 pm)

    Great plugin. I especially appreciate the ‘API Functions’.

  • Microkid

    July 11, 2008 (3:06 pm)

    Thanks Cy, Shirley,

    I’ve tried to create a plugin that has all the features for both basic and advanced users, so I’m happy it’s appreciated :)

    If there’s anything else you would like to see as a feature, please let me know and I will look into it.

  • Pingback by 12 Wordpress Plugins for Writers | Byzantine Roads

    [...] MicroKid’s Related Posts- Lets you search your posts and manually add related posts to posts. Posts. Posts Posts.  ( Not Spam) [...]

  • Susan

    July 12, 2008 (4:13 pm)

    Great plugin…except that it doesn’t seem to support Chinese at all. Thus I can only apply it to the posts with English titles.

    May I ask for a function that I can add related posts by typing IDs or sth else, if non-English search is difficult?

  • Microkid

    July 12, 2008 (6:13 pm)

    Hi Susan,

    I’ll put support for Chinese characters on my list. I know there are some problems with cyrillic alphabet as well. I’ll look into it for the next version.

  • Justin

    July 18, 2008 (6:23 pm)

    great plugin. any chance at adding the ability to completely customize the related post output? it would be great to be able to include an article thumbnail, title, and excerpt.

  • Microkid

    July 18, 2008 (8:46 pm)

    Hi Justin,

    If you want you can use this function to grab all the post ID’s:


    < ?php $related_posts = MRP_get_related_posts( $post_id ); ?>

    Using the get_post() function you could get any data you need from the related posts.

  • Dale

    July 19, 2008 (7:54 pm)

    Hello. Great plugin, I really like it and like the idea of being able to selectively include only the related posts I want. I installed it for the first time today, after upgrading my site to WordPress 2.6. I did notice something a little odd… When I display a related post, links back to the original post appears multiple times. For example, if you click one of the related posts listed on this post…

    http://www.afewgoodpens.com/blog/2008/07/18/site-updates-4/

    … you’ll see duplicated links back to the original. I was just reading that WordPress introduced post revision tracking in 2.6, and if you pass the mouse over the duplicate links, you’ll see they reference the revisions. I’m looking into turning the revision level off, but also wanted to let you know about the problem (if you don’t already).

    Thanks and thanks for the good work…. I’m planning to go back through a lot of my posts and set up related post links, and this plugin is a great help.

    Dale

  • Microkid

    July 19, 2008 (11:28 pm)

    Dale - Thanks, I hadn’t noticed this yet.. I’ll look into it right away. Definitely something to do with the revisions.

    Good to hear you find it useful :)

  • Microkid

    July 20, 2008 (1:46 am)

    I solved the issue in version 2.1, you can download it here.

  • Dale

    July 20, 2008 (3:20 am)

    Oh, man, you’re great … just installed version 2.1, cleaned up the duplicates, and created a new related posts reference … it worked beautifully. Thanks tons for taking care of this so quickly!

    Dale

  • Dale

    July 21, 2008 (12:45 am)

    Hello again. A question about your plug-in…. In the features list above, you say:

    “The relationship created works reciprocal, which means that if post A is added as related to post B, post B is automatically added as related to post A as well.”

    I was wondering how it’s designed to work when I add more than one relationship. That is, if I add two related posts (Post #2 and Post #3) to Post #1, should Post #2 automatically show Post #1 and Post #3, and Post #3 show Post #1 and Post #2?

    I hope that makes sense….

    Thanks!!

    Dale

  • Microkid

    July 21, 2008 (9:10 am)

    Hi Dale,

    I understand what you mean, but no it doesn’t work that way. Post 1 and 2 might be related on one subject, and post 1 and 3 on another. So this doesn’t necessarily mean that 2 and 3 are related.

  • Dale

    July 22, 2008 (3:10 am)

    Hi, MK… Thanks for the response. What you are saying makes sense, and I thought it might work that way … just wanted to be sure before I linked up a bunch more posts.

    Thanks again for your attention and quick followup; I really do appreciate it.

    Bye for now,

    Dale

  • atlanta wedding photographer

    July 22, 2008 (10:54 pm)

    I got a little furstrated so i just deleted it now I calmed down and put it back up again. I figured out what was happening. It seems that the space between in the “< ?php” that you gave was causing the problems. I now have it up but the related posts are only showing when you click on the indivdual blog and they are showing up twice. Is there something that I did? Thanks for your time. here’s the link: http://peterdoylephotography.com/storyboard/the-business-of-relationships/

  • Microkid

    July 23, 2008 (1:11 am)

    Atlanta,

    Glad you got it working. Where did the space show up? Sorry about that causing you so much trouble.

    With the release of version 2.0 I added the functionality of the related posts being added to your posts content automatically. So no need to insert the code - well, except when you want to change the location of the list. You are now looking at the same list twice because its added automatically plus you’ve added the code.

    So, either turn of the “automatic” function through the settings or get rid of the code.

    Right now the plugin doesn’t add the list automatically to your post excerpts on the home and archive pages. Would be a good feature for a future release maybe. If you want it anyway, just add the before mentioned code to the index.php, archive.php, and, if it exists, category.php files of your theme. Same way, right underneath the_content() or the_excerpt(), either one should be in your theme files.

  • Murad

    July 23, 2008 (6:25 am)

    i’ve been looking for this since it appeared on the dashboard widget. but really took time as i think the search in the wordpress plugin page is bit crooked.

    im novice but i think this is what ppl need .. thanks a lot.

  • Atlanta Wedding Photographer

    July 23, 2008 (2:41 pm)

    Dude….thanks a bunch…finally got everything situated. took out it showing twice and only had to put the code in the index.php so that it shows up on the front page. thanks again!!!!

  • Heather

    July 23, 2008 (3:12 pm)

    My blog is in a subdomain: blog.peacockandpaisley.com. I tried Microkid Related Posts 1.0 and tried adding http://blog.peacockandpaisley.com to lines 186 and 187, as mentioned above, but no related posts are showing up. I’m using the Firebug theme, but when I switched between themes, the plugin still didn’t seem to be working. Looking forward to using your plugin! Thanks for the help.

  • Microkid

    July 23, 2008 (3:20 pm)

    Hi Heather,

    The 186/187 fix was for an older version, it’s not necessary for the current version.

    It seems the related posts list is appearing underneath your post content correctly. Does the related post tool show up on your write post page?

  • Andrew

    July 26, 2008 (4:01 am)

    When I try to activate the plugin, I get a “fatal” error message:

    Parse error: syntax error, unexpected $end in/Library [etc.] / microkids-related-posts/microkids-related-posts.php on line 482

    I am very new to WordPress, so I’ve probably done something stupid, but I have managed to install and activate other plugins. Any help much appreciated.

  • Microkid

    July 26, 2008 (10:26 am)

    Hi Andrew,

    I might have a solution - can you download and install this version and tell me if it works?

  • Andrew

    July 26, 2008 (11:55 am)

    No, I get the same error, but now at line 485.

  • Microkid

    July 26, 2008 (12:16 pm)

    Ok … this one should do the trick. Please download it and let me know.

  • Andrew

    July 26, 2008 (1:50 pm)

    Yes! That did it. Thanks. Now I just need to figure out how to make it work. When I’m writing a post, I should be able to type in a tag in the “Search posts” box, under “Related Posts”, and that will show a list of posts with that tag. Is that right? I’m not seeing any related posts right now. I’m going to play with it some more.

  • Microkid

    July 26, 2008 (2:04 pm)

    The search tool will match whatever you fill in on the titles of your posts.

    I think in a future version I’ll add matching on post content and/or tags as well.

  • Andrew

    July 26, 2008 (2:07 pm)

    Ok, I got it working by replacing this bit in lines 76 and 77:

    “‘.get_option(’siteurl’).’/

    with the location of my blog. Is the subdomain issue? My blog is located in a folder called “blog” that sits in my root folder.

    Anyway, thanks for the plugin and for the help.

  • Microkid

    July 26, 2008 (2:08 pm)

    hmm .. that shouldn’t be happening. What version of the plugin are you using?

  • Andrew

    July 26, 2008 (2:12 pm)

    Version: 2.1.1rc2

    Thanks for the explanation about how it matches.

  • JesusCrunk.com

    July 31, 2008 (3:51 am)

    Related Posts<- I want to change this to Discography

    * 116 Clique - 13 Letters
    * 116 Clique - The Compilation Album

  • Vorenus

    July 31, 2008 (7:10 am)

    The AJAXY crap doesn’t work in Firefox 3. Test it and you’ll see how the search for posts doesn’t show any posts (but it does in Safari).

  • Microkid

    July 31, 2008 (8:24 am)

    JesusCrunk:
    Check the plugins settings in the WP admin.

    Vorenus:
    It should work in FF3 (I use it daily actually). Maybe something else is the problem?

  • Vorenus

    July 31, 2008 (10:30 am)

    It just started working. I can’t explain it. Perhaps it wasn’t loading the .js file before.

    Anyway, I apologize for my hostile tone earlier.

  • Microkid

    July 31, 2008 (10:34 am)

    No problem. I’m not a very big fan of Ajax as a solution to everything either. It just seemed like the best solution here.

  • Perband

    August 2, 2008 (12:23 pm)

    Great Plugin! But how can I change the font-size of the label “Related Posts”?

  • Perband

    August 2, 2008 (1:30 pm)

    Ok, I found it :). But I have a second question: Would it be possible not only to search the titles of former posts? It would be more handy, if also the tags are searchable and/or the body of the post. Maybe it would be a good idea, to prepopulate the field “Related” with some data, eventually with the posts, which have one of the tags.

  • Microkid

    August 2, 2008 (2:59 pm)

    Hi Perband,

    An option for suggestions definitely seems like a useful feature. Good idea — I’ll look into in.

  • Pxl_Buzzard

    August 2, 2008 (4:02 pm)

    Thanks for the great addon Microkid. I was just wondering what new features were added in version 2.1.1?

  • Microkid

    August 2, 2008 (4:08 pm)

    Sorry, no new features. I only fixed an issue that would make the plugin crash when shorthand php tags are not allowed. If you weren’t having problems, then there’s no reason to update really.

  • Pxl_Buzzard

    August 2, 2008 (4:10 pm)

    Thanks for the quick reply, and it’s nice to see that you’re still active with the project and the people that use it.

  • Microkid

    August 2, 2008 (4:12 pm)

    Cool, I’m just happy I can give something back to a great community.

  • KrzysztofUW

    August 2, 2008 (7:34 pm)

    Great work! This plugin is very practical but on each entry should be a number of comments and the search should be more configurable. Anyway really true respect for your work :)

  • Adam Wulf

    August 8, 2008 (4:49 am)

    love it!

    mega dittos for being able to link to pages as well. thanks for the plugin, gj!

  • Pingback by Some Thoughts On WordPress 2.6 (and Plugins Galore) - Part Two | afewgoodpens.com

    [...] Microkid’s Related Posts is one of my favorite plugins, and I will gradually deploy it all throughout the site, including archive articles. This plugin adds related post functionality to the WordPress Write pages, letting you search through your posts by keyword and include a list of related posts. I like this particular plugin because connecting posts is partly automated and partly manual, giving me control over the relationships I want to create. And, for more fun, if you are writing Post A and create a related entry to Post B, the plugin automatically updates Post B to contain the related post link back to Post A. Grrreeeaaatttt You can see an example of this plugin in action at the end of this article. [...]

  • Pingback by Wordpress 2.6 ile uyumlu eklentiler | alpibo

    [...] Microkids Related Posts 2.1 [...]

  • Robert Irizarry

    August 15, 2008 (11:36 am)

    I love the control this plugin provides. Very cool.

    However, I was wondering why you didn’t use the same code names Related Posts uses? It seems to be the defacto standard and this way your plugin is a drop in replacement in themes which already support that version. An example of this approach is Yet Another Related Posts Plugin (YARPP).

    Regardless, thanks for the great work.

  • Adey

    August 24, 2008 (12:36 pm)

    Looks like a useful plugin. It would be ideal if you could add any link from anywhere, rather than just search matches. Doesn’t seem to be possible

    Thanks

  • CircleReader

    August 26, 2008 (4:00 am)

    A fantastic plugin - thank you very much!

    I just noticed that it is cross-liking my unpublished draft posts. Yikes! That means that people can see my drafts while they are still under construction. Not good–my collected thoughts are rough enough as it is…

  • Jenny

    August 28, 2008 (9:40 pm)

    Hi MicroKid,

    Thanks for sharing this plugin.

    I tried it, but what I got is this:

    “Related Posts

    None”

    I have put the entire folder (9 files) in this folder:
    …/wp-content/plugins/Related Posts/

    I use self-hosted WP version 2.5. What am I doing wrong?

  • Microkid

    August 30, 2008 (12:10 pm)

    Hi Jenny,

    The plugin does not create relations automatically. Did you build any relations through the manage/write post page?

  • Jenny

    August 30, 2008 (10:28 pm)

    All my posts are tagged, therefore several related posts should appear, but says “none”. Please help.

  • Microkid

    August 31, 2008 (12:26 am)

    Again, the plugin does not create relations automatically. The whole idea is that you can create relations manually, through the edit/write page. Check out the screenshots and instructions above for help.

  • schikowski

    September 1, 2008 (11:14 am)

    Hello Microkid,
    After searching for 3 days I have finally found your amazing plugin. Thank you for the excellent work!
    I was wondering whether there is a way to manually sort the links that come up.
    Right now it seems they are sorted alphabetically by default, and if there are numbers (post 1, post 2), the highest number will be on top, no matter in which order I choose them.

    Thanks in advance for your thoughts!
    Regards,
    schikowski

  • schikowski

    September 1, 2008 (1:38 pm)

    Hey,
    I just found that using the plugin breaks my admin panel (bottom) when editing a Page.
    Have you experienced this as well?
    WP 2.6
    Thanks!!
    schikowski

  • Microkid

    September 1, 2008 (3:20 pm)

    Circlereader - Can it be that this is happening with posts that were published before? Because you shouldn’t be able to select drafts.

    Schikowski - That would be a cool feature, manually adjusting the order of the related posts. I’ll put it on my list :)

    I’ve never noticed any problems with the admin panel footer. Perhaps a compatibility issue with another plugin? Can you try disabling a couple and see what happens?

    Thanks for your feedback guys.

  • CircleReader

    September 2, 2008 (3:39 am)

    It happens when I am drafting a new post and relate it to another, previously published post. When I hit save, the related posts appear on the previous post before I publish the new post. Clicking on the related posts link from the older post to my draft displays the unpublished, in progress post.

    (I’d set up an example for you, but I’m having some other technical difficulties with my blog right now. :( )

    +1 on searching tags and content as well as titles. Thanks for your help!

  • tata

    September 2, 2008 (6:21 am)

    This plug-in is precisely what I’m looking for. However, I do most of my composing using Windows Live Writer and would have to edit my posts after publishing in order to use your plug-in effectively.

    Any chance that you will also create a plug-in for WLW?! :D

  • tata

    September 2, 2008 (6:41 am)

    Okay, I’ve just completed some editing and my goodness, it looks simply fabulous. Thanks so much for the hard work you put into this plug-in and sharing it with us! My next post about blog resources is linking to this page!

    Thanks again, Microkid!

  • Microkid

    September 2, 2008 (8:14 am)

    CircleReader - Ok got it, that’s something that needs to be fixed a.s.a.p.

    Tata - thanks for the love :) As for Windows Live Writer - sorry, not a chance ;)

  • bad

    September 2, 2008 (9:42 pm)

    hi,

    I’m using it on two sites, it works perfect on the first one, but on the other one, the related post ajax function doesn’t show posts when I’m trying to search. This is when making a post or editing the post.

    latest wordpress version is used, as well as latest version of the plugin. None of them is in a subdirectory and is hosted by one company.

    Any ideas?

  • Pingback by My Favorite WordPress Plug-ins | I'm beautiful like me.

    [...] recently, I have found a most excellent plug-in: Micro*Kid’s Related Posts Plug-in. It’s ridiculously easy to use and looks quite fabulous, too. It does not find related posts [...]

  • Pingback by Yuki’s Blog » WordPress で使用している Plugin

    [...] Microkid’s Related Posts [...]

  • Pingback by Must install wordpress plug-ins for your new blog! | TechZoomIn

    [...] Microkid’s Related Posts-Manually add related posts to show the related posts under your every post.This will give good results to increase your page views count. [...]

  • jean lyon

    September 20, 2008 (11:25 am)

    Hi
    Great plugin and thanks a lot for your hard work !
    Just one question : is it possible to show on a page (single) a sub selection of related posts: my posts have related posts which are related :
    - links
    - books
    - stories
    I would like to automatically retrieve these related posts and show them in 3 differents spots when post appears on single page.
    How to achieve this ? is it possible with your plugin ? Could I use your plugin and then do a seach ?
    Jean from France

  • Microkid

    September 21, 2008 (10:37 pm)

    Salut Jean,
    Are these subjects you are making a sub selection on categories on your blog? Perhaps you could use the MRP_get_related_posts function (see the API functions above) to get all the ID’s. Then you would have to get the category of each post, some way, and order them by it.

    I think it’ll be useful for a lot of people to have the MRP_get_related_posts() function return more data than just the ID and title. I’m putting it on the feature request list for version 3.0

  • jean lyon

    September 22, 2008 (7:42 am)

    Hi
    Thanks for answer
    Using the MRP_get_related_posts function is probably the answer I will give it a try and keep you posted on my progresses. This function could be returning more data, it is a good idea for future version 3.
    Thanks for help
    Jean from France

  • Pingback by FOR WORDPRESS - New Wordpress Plugin Releases

    [...] Microkid’s Related Posts [...]

  • Saijo George

    October 11, 2008 (7:27 am)

    Got a feature request for the future version. Is it possible to shown only say X related post in this section. If there are more than X related post then any X random post ( from the selected related post ) is shown

  • Pingback by 10 Ways to Improve Navigation in WordPress

    [...] Related Posts: What better way to get people to stay on your blog than by recommending to them “related posts” that you’ve written?! All it takes is a plugin like Related Posts. [...]

  • Pingback by 10 Ways to Improve Navigation in WordPress | Wordpress Blog Services

    [...] Related Posts: What better way to get people to stay on your blog than by recommending to them “related posts” that you’ve written?! All it takes is a plugin like Related Posts. [...]

  • Pingback by 10 Ways to Improve Navigation in WordPress | How To WordPress

    [...] Related Posts: What better way to get people to stay on your blog than by recommending to them “related posts” that you’ve written?! All it takes is a plugin like Related Posts. [...]

  • Microkid

    October 15, 2008 (8:15 pm)

    Hi Saijo George,

    Why would you want this? Are you worried you will have to many links on your page?

  • Saijo George

    October 16, 2008 (2:56 am)

    Hi Microkid

    thanks exactly right. Its got a lot to do with the way I have integrated the related post in to my site eg : http://www.1800pocketpc.com/2008/09/15/non-animated-wallpaper-pack-for-pocket-pc-pack-3.html

    If there are say related post say around 10-20 the layout will be messedup. but if only say 6-7 are shown @ any given time it will look well presented.

  • Daniel Dumas :: Mr Night Man

    October 20, 2008 (11:42 am)

    thanks for this very great plugin! :)

  • Pingback by Words from the Source » Blog Archive » Navigating the Blogosphere

    [...] left with the post details and the comment form. Useful navigation for these pages could be listing related posts, most popular posts, or most commented posts. With these features a user can jump directly to [...]

  • Klaus

    October 26, 2008 (10:41 am)

    Great plugin! Will be using it in my relaunch :-)

  • createmo

    November 2, 2008 (6:58 am)

    Thank you for your website :)
    I made on photoshop backgrounds for myspace or youtube and even more
    my backgrounds:http://tinyurl.com/6rbxmr
    take care and thank you again!

  • Natural

    November 9, 2008 (6:53 pm)

    I can’t get one post to show up. It always says none. how does it find the related posts. thanks.

  • microkid

    November 16, 2008 (9:27 pm)

    @Natural,

    You have to manually select the related posts, it doesn’t work automatically. Please check the instructions in the post above.

  • GYM G

    November 19, 2008 (4:50 am)

    RE: If you want you can use this function to grab all the post ID’s:

    Using the get_post() function you could get any data you need from the related posts.

    More example code please for us who are not so php Savvy

    Would love to see the code with permalink, thumbnail etc..

    Here’s my old code using WP thumbnail:

    <img src=”ID, “thumb_archives”, true); ?>” alt=”ID, “thumb_archives”, true); ?> thumb_archives” />

    <a href=”" rel=”bookmark”>Custom Field LabelID, “Custom Field1″, true); ?>

  • GYM G

    November 19, 2008 (4:51 am)

    Unable to paste complete code, this site strips it all from my post

  • music lovers group

    November 20, 2008 (12:00 am)

    At the beginning I’m gonna use it with related posts plugin that uses the tags than after a while I’m gonna remove that plugin and only use this one.
    I hope not to mess up things.
    Thanks for the plugin !

  • snackosaurusrex

    November 25, 2008 (1:42 am)

    Hi Microkid,
    Thanks for the plugin and all the help! I’ve installed the newest version on my wordpress and tried the suggestions you made in the comments, but still can’t seem to figure it out. When I search for a related post, I see this:

    Warning: require(../../../wp-config.php) [function.require]: failed to open stream: No such file or directory in /home/snacko5/public_html/wp-content/plugins/microkids-related-posts/mrp-search.php on line 8

    any ideas? thank you!

  • Steven Vachon

    December 9, 2008 (10:28 pm)

    Great plugin. However, it’d be great if you had a “Related Links” feature as well. Would work the same, only difference would be links are custom added using a nearly identical interface.

  • Pingback by Karina Myers » Blog Archive » Wordpress Plugins Round-up You Shouldn’t Miss For Anything

    [...] Related Posts: I have this plugin installed in my site, it’s very useful and light which is always a plus. It creates an effective system of related content; this plugin will let you manually select related posts, and turn your blog into an extended network of intertwined information. Selecting related posts is fully integrated, which makes it very easy to adopt it in your publishing workflow. [...]

  • Pingback by Microkids Related Posts version 2.2 released - Microkid.net

    [...] out the full release notes. Update the plugin through your Wordpress admin or download it from the Wordpress plugin [...]

  • p