<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Open Script Solution&#187; Related Posts</title>
	<atom:link href="http://www.openscriptsolution.com/tag/related-posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:22:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Translate &#8220;Related Posts&#8221; Text Beneath Post Content Using Microkid&#8217;s Related Posts Plugin of WordPress</title>
		<link>http://www.openscriptsolution.com/2011/06/18/how-to-translate-related-posts-text-beneath-post-content-using-microkids-related-posts-plugin-of-wordpress/</link>
		<comments>http://www.openscriptsolution.com/2011/06/18/how-to-translate-related-posts-text-beneath-post-content-using-microkids-related-posts-plugin-of-wordpress/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 11:25:35 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[MicroKid]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Related Posts]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1314</guid>
		<description><![CDATA[I have been using the Microkid&#8217;s Related Posts until now, and I think this is one of the best related posts plugins in WordPress if you want to show the related posts in your WordPress website. According to the changelog page, since version 3.0 it has provided the internationalization feature, including the translation file. Great [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using the <a href="http://wordpress.org/extend/plugins/microkids-related-posts/" target="_blank" title="Microkid's Related Posts">Microkid&#8217;s Related Posts</a> until now, and I think this is one of the best related posts plugins in WordPress if you want to show the related posts in your WordPress website. According to the <a href="http://wordpress.org/extend/plugins/microkids-related-posts/changelog/" title="Microkid Related Posts' change log">changelog</a> page, since version 3.0 it has provided the internationalization feature, including the translation file. Great news. But, wait a minute! Unfortunately, there are some words that have not been translated, yet, including some modifications that needed to implement in order to get better using and performance. So here is modification I made. <span id="more-1314"></span></p>
<ol>
<li>
Open your <strong>microkids-related-posts.php</strong> file, and find this code around line 442:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> MRP_get_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post_type</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>and replace it with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> MRP_get_title<span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'microkids-related-posts'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post_type</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The purpose of this modification is to translate the &#8220;Related Posts&#8221; text (default) that defined in the options page by the author. This text will be shown at the bottom of your post content.
</li>
<li>
Find again this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;p&gt;&lt;input name=&quot;MRP_title&quot; type=&quot;text&quot; id=&quot;MRP_title&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; style=&quot;width:300px;&quot; /&gt;&lt;/p&gt;</pre></div></div>

<p>then replace it with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;p&gt;&lt;input name=&quot;MRP_title&quot; type=&quot;text&quot; id=&quot;MRP_title&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; style=&quot;width:300px;&quot; /&gt;&lt;/p&gt;</pre></div></div>

<p>Find again this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;input type=&quot;text&quot; name=&quot;MRP_text_if_empty&quot; id=&quot;MRP_text_if_empty&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'text_if_empty'</span><span style="color: #009900;">&#93;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hide_if_empty'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>disabled=&quot;disabled&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> style=&quot;width:250px;&quot; /&gt;</pre></div></div>

<p>then replace it with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;input type=&quot;text&quot; name=&quot;MRP_text_if_empty&quot; id=&quot;MRP_text_if_empty&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'text_if_empty'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hide_if_empty'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>disabled=&quot;disabled&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> style=&quot;width:250px;&quot; /&gt;</pre></div></div>

<p>The purpose of this modification is to avoid using <strong>&lt;?=</strong> tag for PHP version compatibility. Always using <strong>&lt;?php</strong> tag, as well as WordPress suggest, too, of course. <img src='http://www.openscriptsolution.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</li>
<li>
Still in that file, go to around line 135, find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;MRP_tab'</span><span style="color: #339933;">.</span><span style="color: #000088;">$current</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;a href=&quot;#&quot; rel=&quot;MRP_post_type'</span><span style="color: #339933;">.</span><span style="color: #000088;">$ext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_type_details</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">labels</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' (&lt;span id=&quot;MRP_related_count'</span><span style="color: #339933;">.</span><span style="color: #000088;">$ext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; class=&quot;MRP_related_count&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$related_posts_count</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/span&gt;)&lt;/a&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span></pre></div></div>

<p>then replace it with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;MRP_tab'</span><span style="color: #339933;">.</span><span style="color: #000088;">$current</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;a href=&quot;#&quot; rel=&quot;MRP_post_type'</span><span style="color: #339933;">.</span><span style="color: #000088;">$ext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_type_details</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">labels</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'microkids-related-posts'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' (&lt;span id=&quot;MRP_related_count'</span><span style="color: #339933;">.</span><span style="color: #000088;">$ext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; class=&quot;MRP_related_count&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$related_posts_count</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/span&gt;)&lt;/a&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span></pre></div></div>

<p>The purpose of this modification is to append the &#8216;microkids-related-posts&#8217; domain name to the translation, so if you are running a multilingual website content, you will know that this translation is coming from the related plugin.
</li>
<li>
Still in the same file, go to around line 481, and find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'%posttype%'</span><span style="color: #339933;">,</span> __<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_type</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">label</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$title</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>then replace it with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'%posttype%'</span><span style="color: #339933;">,</span> __<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_type</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">label</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'microkids-related-posts'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$title</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The purpose of this modification is to append the &#8216;microkids-related-posts&#8217; domain name to the translation, so if you are running a multilingual website content, you will know that this translation is coming from the related plugin.
</li>
<li>
Open your <strong>microkids-related-posts-widget.php</strong> file, and find this code around line 8:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$widget_ops</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'classname'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'widget_related_posts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Display related posts as a widget&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>then replace it with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$widget_ops</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'classname'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'widget_related_posts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Display related posts as a widget&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;microkids-related-posts&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The purpose of this modification is to append the &#8216;microkids-related-posts&#8217; domain name to the translation, so if you are running a multilingual website content, you will know that this translation is coming from the related plugin.
</li>
<li>
Find also this code still in the same file above this step:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">WP_Widget</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'related_posts'</span><span style="color: #339933;">,</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Related Posts'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$widget_ops</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>then replace it with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">WP_Widget</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'related_posts'</span><span style="color: #339933;">,</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Related Posts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'microkids-related-posts'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$widget_ops</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
</ol>
<p>Well, actually, there are some words/terms that still don&#8217;t have the domain name in the _e() function. They are located in the <strong>microkids-related-posts-widget.php</strong> file. Hopefully the author will be able to complete them. Thanks.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2011%2F06%2F18%2Fhow-to-translate-related-posts-text-beneath-post-content-using-microkids-related-posts-plugin-of-wordpress%2F&amp;title=How%20to%20Translate%20%26%238220%3BRelated%20Posts%26%238221%3B%20Text%20Beneath%20Post%20Content%20Using%20Microkid%26%238217%3Bs%20Related%20Posts%20Plugin%20of%20WordPress" id="wpa2a_2"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2011/06/18/how-to-translate-related-posts-text-beneath-post-content-using-microkids-related-posts-plugin-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make MicroKids Related Posts version 2.5 Plugin Support for Multi Language</title>
		<link>http://www.openscriptsolution.com/2010/05/06/how-to-make-microkids-related-posts-version-2-5-plugin-support-for-multi-language/</link>
		<comments>http://www.openscriptsolution.com/2010/05/06/how-to-make-microkids-related-posts-version-2-5-plugin-support-for-multi-language/#comments</comments>
		<pubDate>Thu, 06 May 2010 01:11:17 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[.mo file]]></category>
		<category><![CDATA[MicroKid]]></category>
		<category><![CDATA[multi-bahasa]]></category>
		<category><![CDATA[multi-language]]></category>
		<category><![CDATA[multilingual]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Related Posts]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1197</guid>
		<description><![CDATA[Yesterday, I successfully modified the MicroKid Related Posts version 2.5 plugin became support for multi language. I edited the strings that still did not use the gettext function, added the sub directory named &#8220;languages&#8221;, and then added the .mo file into it. I have created the Indonesian translation file into that sub directory. So, there [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I successfully modified the <a href="http://wordpress.org/extend/plugins/microkids-related-posts/" target="_blank">MicroKid Related Posts</a> version 2.5 plugin became support for multi language. I edited the strings that still did not use the gettext function, added the sub directory named &#8220;languages&#8221;, and then added the .mo file into it. I have created the Indonesian translation file into that sub directory. So, there is one .mo file at the moment. I have implemented this multi language version into one of my sites that support for multi language. I hope the <a href="http://www.microkid.net/wordpress/related-posts/" target="_blank">author</a> of this plugin will add this multi language feature into the next release. <span id="more-1197"></span></p>
<p>However, if you want to use the multi language version of MicroKid Related Posts version 2.5 plugin, please download <a href='http://www.openscriptsolution.com/wp-content/uploads/2010/05/microkids-related-posts_multi-language.zip'>microkids-related-posts_multi-language</a>. If you feel curious with the modification that I had made, you can compare the changes with the original version 2.5 one by using a tool such as <a href="http://winmerge.org" target="_blank">WinMerge</a>.</p>
<p>As usual, extract the .zip file to your <strong>wp-content/plugins/</strong> sub directory and then activate it from your wp admin if you use it for the very first time. If you have already used it, then simply extract and replace the old version with this new one.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2010%2F05%2F06%2Fhow-to-make-microkids-related-posts-version-2-5-plugin-support-for-multi-language%2F&amp;title=How%20to%20Make%20MicroKids%20Related%20Posts%20version%202.5%20Plugin%20Support%20for%20Multi%20Language" id="wpa2a_4"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/05/06/how-to-make-microkids-related-posts-version-2-5-plugin-support-for-multi-language/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adjust MicroKid Related Posts v2.4 with qTranslate v2.4.3 Plugins</title>
		<link>http://www.openscriptsolution.com/2009/09/07/adjust-microkid-related-posts-v2-4-with-qtranslate-v2-4-3-plugins/</link>
		<comments>http://www.openscriptsolution.com/2009/09/07/adjust-microkid-related-posts-v2-4-with-qtranslate-v2-4-3-plugins/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 10:46:15 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[MicroKid]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[qTranslate]]></category>
		<category><![CDATA[Related Posts]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=213</guid>
		<description><![CDATA[Today, I received one notification about the update available for MicroKid Related Posts plugin that I have been using it since version 2.3. It was changed from 2.3 to 2.4. According to its change log, there were 4 main things that changed: You can now add drafts and planned posts as related posts, without them [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I received one notification about the update available for <a href="http://www.microkid.net/wordpress/related-posts/" target="_blank">MicroKid Related Posts</a> plugin that I have been using it since version 2.3. It was changed from 2.3 to 2.4. According to its change log, there were 4 main things that changed:</p>
<ol>
<li> You can now add drafts and planned posts as related posts, without them appearing on your site before they are properly published.</li>
<li> Added shortcode support: you can now place the [ related-posts ] shortcode within the content of your post to display the related posts anywhere you want.</li>
<li> (For advanced users) Added a parameter to the MRP_get_related_posts function to optionally get the related posts in an object, so you can easily use it in other plugins or your own custom way of displaying the list of related posts. For documentation on this, see [the API section](http://www.microkid.net/wordpress/related-posts/#API “Microkids Related Posts API functions”).</li>
<li> (For advanced users) Added a parameter to the MRP_get_related_posts function to optionally include unpublished posts to the related posts list. For documentation on this, see [the API section](http://www.microkid.net/wordpress/related-posts/#API “Microkids Related Posts API functions”).</li>
</ol>
<p><span id="more-213"></span></p>
<p>After the automatically-upgrade process was completed, I remembered that I had modified this Microkids Related Post plugin before via this article: <a href="http://www.openscriptsolution.com/2009/08/22/adjust-microkid-related-posts-v2-3-with-qtranslate-v2-4-3-plugins/" target="_blank">Adjust MicroKid Related Posts v2.3 with qTranslate v2.4.3 Plugins</a>. It meant that I had to adjust its new script again in order it compatible with <a href="http://wordpress.org/extend/plugins/qtranslate/" target="_blank">qTranslate plugin</a>.</p>
<p>So here was I made:</p>
<ol>
<li>Open <strong>mrp-search.php</strong> file, find this code:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>52
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$results</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$result</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></td></tr></table></div>

<p>replace with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>52
53
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$results</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$result</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$related_post_title</span> <span style="color: #339933;">=</span> wp_specialchars<span style="color: #009900;">&#40;</span>qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>60
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>replace with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>60
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// echo $result-&gt;post_title;</span></pre></td></tr></table></div>

<p>find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>64
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/a&gt; &lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; title=&quot;View this post&quot; class=&quot;MRP_view_post&quot; target=&quot;_blank&quot;&gt;&amp;rsaquo;&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>replace with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>64
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$related_post_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt; &lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; title=&quot;View this post&quot; class=&quot;MRP_view_post&quot; target=&quot;_blank&quot;&gt;&amp;rsaquo;&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then save this file.</li>
<li>Open <strong>microkids-related-posts.php</strong> file, and find this code:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>104
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;li id=&quot;related-post-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$related_post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;span&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$post_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/span&gt;&lt;span&gt;&lt;a class=&quot;MRP_deletebtn&quot; onclick=&quot;MRP_remove_relationship(\'related-post-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$related_post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\')&quot;&gt;X&lt;/a&gt;&lt;/span&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>replace with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>104
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;li id=&quot;related-post-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$related_post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;span&gt;'</span><span style="color: #339933;">.</span>wp_specialchars<span style="color: #009900;">&#40;</span>qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_title</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/span&gt;&lt;span&gt;&lt;a class=&quot;MRP_deletebtn&quot; onclick=&quot;MRP_remove_relationship(\'related-post-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$related_post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\')&quot;&gt;X&lt;/a&gt;&lt;/span&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>328
329
330
331
332
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;ul&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> title=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$related_post_title</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$related_post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&lt;/li&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;/ul&gt;&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>replace with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>328
329
330
331
332
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;ol&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> title=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$related_post_title</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">.</span>wp_specialchars<span style="color: #009900;">&#40;</span>qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$related_post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&lt;/li&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;/ol&gt;&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>375
376
377
378
379
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;ul&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$related_post_title</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> title=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$related_post_title</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$related_post_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&lt;/li&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/ul&gt;&lt;/div&gt;&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>replace with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>375
376
377
378
379
380
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;ol&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_posts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$related_post_title</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$related_post_id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> title=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$related_post_title</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">.</span>wp_specialchars<span style="color: #009900;">&#40;</span>qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$related_post_title</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&lt;/li&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/ol&gt;
&lt;/div&gt;&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
</ol>
<p>This has been tested and working good in Microkids Related Posts version 2.4 and qTranslate version 2.4.3.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F09%2F07%2Fadjust-microkid-related-posts-v2-4-with-qtranslate-v2-4-3-plugins%2F&amp;title=Adjust%20MicroKid%20Related%20Posts%20v2.4%20with%20qTranslate%20v2.4.3%20Plugins" id="wpa2a_6"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/09/07/adjust-microkid-related-posts-v2-4-with-qtranslate-v2-4-3-plugins/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
