<?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>Bin-Blog &#187; plugin-killer</title>
	<atom:link href="http://www.bin-co.com/blog/tag/plugin-killer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Tue, 13 Oct 2009 18:55:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Plugin Killer Series for WordPress: The End</title>
		<link>http://www.bin-co.com/blog/2009/07/plugin-killer-series-for-wordpress-the-end/</link>
		<comments>http://www.bin-co.com/blog/2009/07/plugin-killer-series-for-wordpress-the-end/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 18:51:00 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[series]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=286</guid>
		<description><![CDATA[After eight posts, I am ending the plugin killer series. It has been a nice run. Hopefully, I have given you an idea of how easy it is to customize WordPress yourself - without having to resort to third party plugins. Not that there is anything wrong with that. Its just that, its more satisfying when you do it yourself. The advantages and disadvantages of customizing a theme rather than installing a plugin is given in the <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">introduction to the WordPress Plugin Killer Series.</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/wordpress.jpg" alt="WordPress Metal Logo" title="WordPress Metal Logo" width="300" height="300" class="aligncenter size-full wp-image-239 intro" align="right" /></p>
<p class="intro">After eight posts, I am ending the plugin killer series. It has been a nice run. Hopefully, I have given you an idea of how easy it is to customize WordPress yourself &#8211; without having to resort to third party plugins. Not that there is anything wrong with that. Its just that, its more satisfying when you do it yourself. The advantages and disadvantages of customizing a theme rather than installing a plugin is given in the <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">introduction to the WordPress Plugin Killer Series.</a></p>
<h2>The Posts</h2>
<h3><a href="http://www.bin-co.com/blog/2009/02/avoid-duplicate-content-use-canonical-url-in-wordpress-fix-plugin/">Avoid Duplicate Content &#8211; Use Canonical URL in WordPress</a></h3>
<p>If you are on wordpress, the canonical tag can be integrated into your theme easily. There is <a href="http://yoast.com/wordpress/canonical/">a plugin</a> to do the job for you &#8211; but you don&#8217;t need a plugin to do something as simple as this.</p>
<h3><a href="http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/">Show Popular Posts in WordPress &#8211; without a plugin</a></h3>
<p>A list of the popular posts of the blog is a standard feature in many blogs. There are quite a few plugins that offer this feature. But it can also be implemented using a simple <strong class="highlight">SQL query that counts the number of comments in a post</strong>.</p>
<h3><a href="http://www.bin-co.com/blog/2009/03/adding-social-bookmarking-button-in-wordpress-without-plugins/">Adding Social Bookmarking Button in WordPress &#8211; Without Plugins</a></h3>
<p>Many blogs have <strong class="highlight">links to add the current post to various social bookmarking site like Digg, Reddit, Delicious</strong>, etc. This blog don&#8217;t have it &#8211; but my <a href="http://lindesk.com/">LinDesk</a> blog does. This effect is achieved using wordpress plugins. But when you take a look at the code, <strong class="highlight">its just simple HTML</strong>.</p>
<h3><a href="http://www.bin-co.com/blog/2009/04/show-related-post-in-wordpress-without-a-plugin/">Show Related Post in WordPress Without a Plugin</a></h3>
<p>Related posts is a very popular feature. My default wordpress installation often includes a plugin that has this functionality. There are quite a few plugins that lets you have this feature. This can be implemented by <strong class="highlight">listing other posts with the same category/tags as the current post</strong>.</p>
<h3><a href="http://www.bin-co.com/blog/2009/05/highlight-authors-comments-in-wordpress-without-using-a-wordpress-plugin/">Highlight Author&#8217;s Comments in WordPress without using a WordPress Plugin</a></h3>
<p>Many blogs highlight the author&#8217;s comment in the comments section. You can use plugins to get this effect(For eg., the <a href="http://rmarsh.com/plugins/highlight-comments/">Highlight Author Comments Plugin</a>) &#8211; but you don&#8217;t have to. You can get the get the same effect by <strong class="highlight">adding a small bit of CSS code to your theme stylesheet</strong>.</p>
<h3><a href="http://www.bin-co.com/blog/2009/06/a-tweet-this-button-for-each-post-in-wordpress-without-out-a-plugin/">A Tweet This Button for Each Post in WordPress &#8211; Without a Plugin</a></h3>
<p><a href="http://richardxthripp.thripp.com/tweet-this">TweetThis</a> is a WordPress Plugin that &#8216;<strong class="highlight">adds a Twitter link to every post and page, so your readers can share your blog entries on their Twitter accounts</strong> with ease.&#8217; And in the tradition of my WordPress Plugin Killer Series, this post will show you how to do it without a plugin.</p>
<h3><a href="http://www.bin-co.com/blog/2009/06/creating-a-paypal-donate-widget-in-wordpress-without-a-plugin/">Creating a Paypal Donate Widget in Wordpress &#8211; Without a Plugin</a></h3>
<p>Paypal donate plugins. This is extremely simple to implement &#8211; you don&#8217;t even have to edit the code to get this done. Just <strong class="highlight">copy/paste the code provided by Paypal</strong>.</p>
<h3><a href="http://www.bin-co.com/blog/2009/07/create-a-better-404-page-in-wordpress-without-plugins/">Create a Better 404 Page in WordPress &#8211; Without Plugins</a></h3>
<p>Recently, one of my friends posted <a href="http://www.dailyseoblog.com/2009/06/8-wordpress-plugins-to-make-your-404-error-pages-user-friendly-efficient/">a list of plugins you can use to optimize your 404 page</a>. In case you don&#8217;t know what a <strong class="highlight">404 page, its the page that shows up if the URL requested by the user don&#8217;t exist</strong>. He listed eight plugins to do this. And since I am working on the Plugin Killer series, it got me thinking &#8211; is it possible to do it without using any plugins?</p>
<h3>Other People&#8217;s Posts</h3>
<p>Many other people have written on this topic too. Here is a few posts I could find&#8230;.</p>
<ul>
<li><a href="http://www.millionclues.com/problogging/wordpress-tips/add-custom-status-or-notes-to-a-post-without-plugin">Add Custom Status or Notes to a Post without a Plugin</a></li>
<li><a href="http://www.nirmaltv.com/2009/04/27/how-to-display-any-rss-feeds-on-wordpress-blog/">How to Display Any RSS Feed on Wordpress Blog</a></li>
<li><a href="http://sivel.net/2009/06/wordpress-maintenance-mode-without-a-plugin/">WordPress Maintenance Mode Without a Plugin</a></li>
<li><a href="http://www.wprecipes.com/how-to-show-related-posts-without-a-plugin">How to: Show related posts without a plugin</a></li>
<li><a href="http://sageblogger.com/wordpress-removing-nofollow-without-a-plugin/">WordPress: Removing Nofollow Without A Plugin</a></li>
<li><a href="http://trevordavis.net/blog/tutorial/wordpress-jquery-contact-form-without-a-plugin/">WordPress &amp; jQuery Contact Form without a Plugin</a></li>
</ul>
<p>If you know of any such articles, post a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/07/plugin-killer-series-for-wordpress-the-end/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a Better 404 Page in WordPress &#8211; Without Plugins</title>
		<link>http://www.bin-co.com/blog/2009/07/create-a-better-404-page-in-wordpress-without-plugins/</link>
		<comments>http://www.bin-co.com/blog/2009/07/create-a-better-404-page-in-wordpress-without-plugins/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 18:28:01 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[series]]></category>
		<category><![CDATA[wp-plugin]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=282</guid>
		<description><![CDATA[Recently, one of my friends posted a <a href="http://www.dailyseoblog.com/2009/06/8-wordpress-plugins-to-make-your-404-error-pages-user-friendly-efficient/">list of plugins you can use to optimize your 404 page</a>. In case you don't know what a <strong class="highlight">404 page, its the page that shows up if the URL requested by the user don't exist</strong>. He listed eight plugins to do this. And since I am working on the <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">Plugin Killer series</a>, it got me thinking - is it possible to do it without using any plugins?]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/willemvelthoven/251801449/"><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/07/404.jpg" alt="404" title="404" width="300" height="197" class="aligncenter size-full wp-image-283 intro" align="right" /></a></p>
<p class="intro">Recently, one of my friends posted a <a href="http://www.dailyseoblog.com/2009/06/8-wordpress-plugins-to-make-your-404-error-pages-user-friendly-efficient/">list of plugins you can use to optimize your 404 page</a>. In case you don&#8217;t know what a <strong class="highlight">404 page, its the page that shows up if the URL requested by the user don&#8217;t exist</strong>. He listed eight plugins to do this. And since I am working on the <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">Plugin Killer series</a>, it got me thinking &#8211; is it possible to do it without using any plugins?</p>
<p>Turns out, its easy. As long as you know about the <strong class="highlight"><a href="http://www.google.com/support/webmasters/bin/answer.py?answer=136085">Google&#8217;s 404 Widget</a>. It adds a search box for your site with appropriate search suggestions</strong> and tries(and unfortunately, often fails) to provide alternatives to incorrect URLs.</p>
<p>See it in action here &#8211; <a href="http://www.bin-co.com/perl/perl_tk_tutorials/" rel="nofollow">http://www.bin-co.com/perl/perl_tk_tutorials/</a>. The correct URL is <a href="http://www.bin-co.com/perl/perl_tk_tutorial/">http://www.bin-co.com/perl/perl_tk_tutorial/</a> &#8211; which the user finds and shows.</p>
<h2>Enable Google 404 Widget in your Site</h2>
<ul>
<li>First, <strong class="highlight">create the code</strong> by following the steps given in the <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=136085">404 Widget page</a>.</li>
<li>Then open the <strong class="highlight">404.php file of your wordpress theme and paste the code</strong> you got into it. Save and upload &#8211; you&#8217;re done.</li>
</ul>
<p>This is the last of my plugin killer series. Just to balance things out, I&#8217;m thinking of doing a <a href="http://www.bin-co.com/blog/2008/12/wordpress-plugin-week/">Plugin week</a>(yes, <strong class="highlight">a second plugin week</strong>) next week. Let me know if any of you are interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/07/create-a-better-404-page-in-wordpress-without-plugins/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Creating a Paypal Donate Widget in Wordpress &#8211; Without a Plugin</title>
		<link>http://www.bin-co.com/blog/2009/06/creating-a-paypal-donate-widget-in-wordpress-without-a-plugin/</link>
		<comments>http://www.bin-co.com/blog/2009/06/creating-a-paypal-donate-widget-in-wordpress-without-a-plugin/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 19:32:01 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[donate]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[series]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=278</guid>
		<description><![CDATA[<a href="http://www.supriyadisw.net/2006/11/paypal-donate-plugin-for-wordpress-widget-support">Paypal donate plugins</a>. This is extremely simple to implement - you don't even have to edit the code to get this done.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/halo_wordpress.jpg" alt="WordPress Helo Effect" title="WordPress Helo Effect" width="300" height="233" class="aligncenter size-full wp-image-238 intro" align="right" /></p>
<p class="intro"><a href="http://www.supriyadisw.net/2006/11/paypal-donate-plugin-for-wordpress-widget-support">Paypal donate plugins</a>. This is extremely simple to implement &#8211; you don&#8217;t even have to edit the code to get this done.</p>
<h2>Widget Mode</h2>
<p>Open the admin side of your blog and <strong class="highlight">go to Appearance &gt; Widgets. Now add a Text widget</strong> to the sidebar you want the widget in. <strong class="highlight">Edit it and paste the HTML code</strong> from the <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_donate_techview_outside">Paypal site</a>.</p>
<pre><code class="html">&lt;form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post"&gt;
&lt;input type="hidden" name="cmd" value="_xclick"&gt;
&lt;input type="hidden" name="business" value="binnyva@hotmail.com"&gt;
&lt;input type="hidden" name="item_name" value="Donation"&gt;
&lt;input type="hidden" name="currency_code" value="USD"&gt;
&lt;input type="hidden" name="amount" value="25.00"&gt;
&lt;input type="image" src="http://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"&gt;
&lt;/form&gt;</code></pre>
<p>Make sure you <strong class="highlight">use your own paypal ID in the business field</strong>.</p>
<p>Save the widget &#8211; and you&#8217;re done.</p>
<h2>Theme Mode</h2>
<p>Another method is to add the same code to the theme&#8217;s code directly. Usually in the <code>sidebar.php</code> file. I kind of prefer this method &#8211; but it involves code editing, FTP, etc. Not everyone is comfortable with this.</p>
<h2>Post Mode</h2>
<p>Last but not the least, you can embed the code directly into a post. This is perhaps the simplest of all. Below is a working sample of the code&#8230;</p>
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="binnyva@hotmail.com">
<input type="hidden" name="item_name" value="Donate">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="5.00">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/06/creating-a-paypal-donate-widget-in-wordpress-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A Tweet This Button for Each Post in WordPress &#8211; Without a Plugin</title>
		<link>http://www.bin-co.com/blog/2009/06/a-tweet-this-button-for-each-post-in-wordpress-without-out-a-plugin/</link>
		<comments>http://www.bin-co.com/blog/2009/06/a-tweet-this-button-for-each-post-in-wordpress-without-out-a-plugin/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 18:20:44 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[series]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=275</guid>
		<description><![CDATA[<a href="http://richardxthripp.thripp.com/tweet-this">TweetThis</a> is a WordPress Plugin that 'adds a Twitter link to every post and page, so your readers can share your blog entries on their Twitter accounts with ease.' And in the tradition of my <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">WordPress Plugin Killer Series</a>, this post will show you how to do it without a plugin.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/wordpress.jpg" alt="WordPress Metal Logo" title="WordPress Metal Logo" width="300" height="300" class="aligncenter size-full wp-image-239 intro" align="right" /></p>
<p class="intro"><a href="http://richardxthripp.thripp.com/tweet-this">TweetThis</a> is a WordPress Plugin that &#8216;adds a Twitter link to every post and page, so your readers can share your blog entries on their Twitter accounts with ease.&#8217; And in the tradition of my <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">WordPress Plugin Killer Series</a>, this post will show you how to do it without a plugin.</p>
<h2>The Code</h2>
<p>You can <strong class="highlight">add twitter button to your post by editing the <code>single.php</code></strong> file in your theme. Go to the place in the file where you want the button to show up &#8211; then add this code at that location&#8230;</p>
<pre><code class="javascript">&lt;a href="http://twitter.com/?status=&lt;?php echo urlencode(the_title('','', false)) ?&gt;+-+&lt;?php the_permalink() ?&gt;"&gt;Tweet This&lt;/a&gt;</code></pre>
<p>This is a super simple way of doing it &#8211; <strong class="highlight">with a little more code, you can use a URL shortner</strong> to &#8217;shortify&#8217; your permalink. Otherwise it might overflow the 140 char limit.</p>
<h2>Twitter</h2>
<p>By the way, if you are on twitter, add me &#8211; I&#8217;m <a href="http://twitter.com/binnyva">@binnyva</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/06/a-tweet-this-button-for-each-post-in-wordpress-without-out-a-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Highlight Author&#8217;s Comments in WordPress without using a WordPress Plugin</title>
		<link>http://www.bin-co.com/blog/2009/05/highlight-authors-comments-in-wordpress-without-using-a-wordpress-plugin/</link>
		<comments>http://www.bin-co.com/blog/2009/05/highlight-authors-comments-in-wordpress-without-using-a-wordpress-plugin/#comments</comments>
		<pubDate>Thu, 14 May 2009 18:44:58 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-killer]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=272</guid>
		<description><![CDATA[Many blogs highlight the author's comment in the comments section. You can use many plugins to get this effect(For eg., the <a href="http://rmarsh.com/plugins/highlight-comments/">Highlight Author Comments</a> Plugin) - but you don't have to. You can get the get the same effect by adding a small bit of code to your theme.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/wordpress-sticker.jpg" alt="WordPress Sticker" title="WordPress Sticker" width="300" height="282" class="aligncenter size-full wp-image-236 intro" align="right" /></p>
<p class="intro">Many blogs highlight the author&#8217;s comment in the comments section. You can use many plugins to get this effect(For eg., the <a href="http://rmarsh.com/plugins/highlight-comments/">Highlight Author Comments</a> Plugin) &#8211; but you don&#8217;t have to. You can get the get the same effect by adding a small bit of code to your theme.</p>
<h2>The Changes</h2>
<p>Just open up the <code>style.css</code> file in your active and add this at line at the end&#8230;</p>
<pre><code class="css">.bypostauthor { background-color:#aaa !important; }</code></pre>
<p>Change the #aaa to the color you want as the author comment&#8217;s background. That&#8217;s it &#8211; you&#8217;re all done.</p>
<p>Note: This will only work on 2.7+ version of WordPress &#8211; if you are using an older version, please <a href="http://www.dullest.com/blog/highlight-author-comments-wordpress/">read the instructions in this post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/05/highlight-authors-comments-in-wordpress-without-using-a-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Show Related Post in WordPress Without a Plugin</title>
		<link>http://www.bin-co.com/blog/2009/04/show-related-post-in-wordpress-without-a-plugin/</link>
		<comments>http://www.bin-co.com/blog/2009/04/show-related-post-in-wordpress-without-a-plugin/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 18:00:29 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[related]]></category>
		<category><![CDATA[series]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=256</guid>
		<description><![CDATA[Related posts is a very popular feature. My default wordpress installation often includes a plugin that has this functionality. There are quite a few plugins that lets you have this feature.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/wordpress-150x150.jpg" alt="WordPress Metal Logo" title="WordPress Metal Logo" width="150" height="150" class="alignnone size-full wp-image-239 intro" align="right" /></p>
<p class="intro">Related posts is a very popular feature. My default wordpress installation often includes a plugin that has this functionality. There are quite a few plugins that lets you have this feature&#8230;</p>
<ul>
<li><a href="http://mitcho.com/code/yarpp/">Yet Another Related Posts Plugin (YARPP)</a></li>
<li><a href="http://rmarsh.com/plugins/similar-posts/">Similar Posts</a></li>
<li><a href="http://blendworx.com/aizattos-related-posts-wordpress-plugin/">Aizattos Related Posts</a></li>
<li><a href="http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/">WordPress Related Posts</a></li>
<li><a href="http://wasabi.pbwiki.com/Related%20Entries">Wasabi Related entries</a></li>
</ul>
<h2>The Code</h2>
<p>WordPress has been supporting tags in its new released &#8211; so the related posts feature can be implemented without the help of any plugins. All we have to do is find the <strong>other posts with some same tags as the current post</strong>. Just open the <strong><code>single.php</code> file in your theme and add this bit of code</strong> where you want the related posts to show up&#8230;</p>
<pre><code class="php">&lt;?php
$tags = wp_get_post_tags($post-&gt;ID);
if ($tags) {
	$tag_ids = array();
	foreach($tags as $individual_tag) $tag_ids[] = $individual_tag-&gt;term_id;

	$args=array(
		'tag__in' =&gt; $tag_ids,
		'post__not_in' =&gt; array($post-&gt;ID),
		'showposts'=&gt;5, // Number of related posts that will be shown.
		'caller_get_posts'=&gt;1
	);
	$my_query = new wp_query($args);
	if( $my_query-&gt;have_posts() ) {
		echo '&lt;h3&gt;Related Posts&lt;/h3&gt;&lt;ul&gt;';
		while ($my_query-&gt;have_posts()) {
			$my_query-&gt;the_post();
		?&gt;
			&lt;li&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;?php
		}
		echo '&lt;/ul&gt;';
	}
}
?&gt;</code></pre>
<p>This code finds the other post with any one of the tag that the current post has. If you want to show the <strong>posts with any one of the categories</strong> that the current post has, use this code instead&#8230;</p>
<pre><code class="php">&lt;?php
$categories = get_the_category($post-&gt;ID);
if ($categories) {
	$category_ids = array();
	foreach($categories as $individual_category) $category_ids[] = $individual_category-&gt;term_id;

	$args=array(
		'category__in' =&gt; $category_ids,
		'post__not_in' =&gt; array($post-&gt;ID),
		'showposts'=&gt;5, // Number of related posts that will be shown.
		'caller_get_posts'=&gt;1
	);
	// Rest is the same as the previous code
</code></pre>
<h2>WordPress Plugin Killer Series</h2>
<p>For those who came in late, this post is part of the <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">WordPress Plugin Killer Series</a>. This series will show you how to duplicate the functionality of the a few wordpress plugins without having to install it using custom code in the wordpress theme. The previous posts in this series are&#8230;</p>
<ul>
<li><a href="http://www.bin-co.com/blog/2009/02/avoid-duplicate-content-use-canonical-url-in-wordpress-fix-plugin/">Avoid Duplicate Content &#8211; Use Canonical URL in WordPress</a></li>
<li><a href="http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/">Show Popular Posts in WordPress &#8211; without a plugin</a></li>
<li><a href="http://www.bin-co.com/blog/2009/03/adding-social-bookmarking-button-in-wordpress-without-plugins/">Adding Social Bookmarking Button in WordPress &#8211; Without Plugins</a></li>
</ul>
<h3>More Resources</h3>
<ul>
<li><a href="http://www.smashingmagazine.com/2009/04/15/10-exceptional-wordpress-hacks/">10 Exceptional WordPress Hacks</a></li>
<li><a href="http://www.wprecipes.com/how-to-show-related-posts-without-a-plugin">How to: Show related posts without a plugin</a></li>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/04/show-related-post-in-wordpress-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>53</slash:comments>
		</item>
		<item>
		<title>Adding Social Bookmarking Button in WordPress &#8211; Without Plugins</title>
		<link>http://www.bin-co.com/blog/2009/03/adding-social-bookmarking-button-in-wordpress-without-plugins/</link>
		<comments>http://www.bin-co.com/blog/2009/03/adding-social-bookmarking-button-in-wordpress-without-plugins/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 17:48:19 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[bookmarking]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=245</guid>
		<description><![CDATA[Many blogs have links to add the current post to various social bookmarking site like Digg, Reddit, Delicious, etc. This blog don't have it - but my <a href="http://lindesk.com/" title="Linux - on the Desktop">LinDesk blog</a> does.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/social_bookmarking.png" alt="Social Bookmarking" title="Social Bookmarking" width="148" height="136" class="alignnone size-full wp-image-244 intro" align="right" /></p>
<p class="intro">Many blogs have links to add the current post to various social bookmarking site like Digg, Reddit, Delicious, etc. This blog don&#8217;t have it &#8211; but my <a href="http://lindesk.com/" title="Linux - on the Desktop">LinDesk blog</a> does. This effect is achieved using wordpress plugins like&#8230;</p>
<ul>
<li><a href="http://blog.rswr.net/2009/02/14/social-media-wordpress-plugin/">S-ButtonZ Social Media Buttons &#8211; WordPress Plugin</a></li>
<li><a href="http://wordpress.org/extend/plugins/social-buttons/">WordPress › Social Buttons</a></li>
<li><a href="http://yoast.com/wordpress/sociable/">Sociable &#8211; Social Bookmarking for WordPress</a></li>
<li><a href="http://andybeard.eu/wordpress-plugin-hacks">Hacked Wordpress Plugins</a></li>
<li><a href="http://lipidity.com/web/wordpress/wp-plugin-gregarious/">WP Plugin: Gregarious</a></li>
<li><a href="http://www.milienzo.com/wordpress-plugins/i-love-social-bookmarking/">I Love Social Bookmarking plugin</a></li>
<li><a href="http://wordpress.org/extend/plugins/add-to-any/">WordPress › Add to Any Share/Save/Bookmark Button</a></li>
</ul>
<p>For those who are new, this is part three of the <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">Plugin Killer series</a>. This series will show you how to duplicate the functionality of the a few wordpress plugins without having to install it using custom code in the wordpress theme. The earlier posts in this series are&#8230;</p>
<ul>
<li><a href="http://www.bin-co.com/blog/2009/02/avoid-duplicate-content-use-canonical-url-in-wordpress-fix-plugin/">Avoid Duplicate Content &#8211; Use Canonical URL in WordPress</a></li>
<li><a href="http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/">Show Popular Posts in WordPress &#8211; without a plugin</a></li>
</ul>
<h2>The Code</h2>
<p>You can add social bookmarking button to your post by editing the <strong class="highlight"><code>single.php</code> file in your theme</strong>. Go to the place in the file where you want the buttons to show up &#8211; then add this code at that location&#8230;</p>
<pre><code class="html">&lt;a href="http://del.icio.us/post?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;"&gt;del.icio.us&lt;/a&gt;
 | &lt;a href="http://digg.com/submit?phase=2&amp;url=&lt;?php the_permalink() ?&gt;"&gt;Digg it&lt;/a&gt;
 | &lt;a href="http://reddit.com/submit?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;"&gt;reddit&lt;/a&gt;
 | &lt;a href="http://www.stumbleupon.com/submit?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;"&gt;StumbleUpon&lt;/a&gt;
</code></pre>
<p>Of course, you don&#8217;t have to do it like that &#8211; a better way of doing it is by putting the links in a li/ul list and then styling it. The point is, you don&#8217;t need a plugin to do this.</p>
<h2>Different Implementations</h2>
<p>Another thing I would recommend is get the images &#8211; in the above code, I just used text links. If you get the favicons of the sites you&#8217;re linking to, it will look a lot nicer. <a href="http://lindesk.com/2009/03/customizing-the-terminal-the-prompt/">Example</a> (go to the end of the post). You can use bigger images as well &#8211; <a href="http://aravindjose.com/blog/2009/01/30/the-sensible-way-of-making-money-online-and-building-a-career-with-online-video/" title="Make a living out of Videos on Web. Seriously.">example</a>. Or use some kind of effect &#8211; <a href="http://www.millionclues.com/blogosphere/blogging-tips-blogosphere/getting-quality-backlinks" title="Getting Quality Backlinks without Link Exchanges">example</a>(here the icons are a bit transparent by default &#8211; but when you hover over them, it shows up clearly &#8211; its completely opaque).</p>
<p>Here only the four big ones are given. You can find <a href="http://txt.binnyva.com/2007/02/submition-to-social-bookmarking-sites/">code for more social bookmarking sites</a> elsewhere.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/03/adding-social-bookmarking-button-in-wordpress-without-plugins/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Show Popular Posts in WordPress &#8211; without a plugin</title>
		<link>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/</link>
		<comments>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 18:27:20 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[popular]]></category>
		<category><![CDATA[series]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=240</guid>
		<description><![CDATA[A list of the popular posts of the blog is a standard feature in many blogs. There are quite a few plugins that offer this feature. In case you are new to this blog, I am currently working on the <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">Plugin Killer Series</a> - a series of post in which I explain how to duplicate the functionality provided by some wordpress plugins - without having to install the plugin.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/halo_wordpress.jpg" alt="WordPress Helo Effect" title="WordPress Helo Effect" width="300" height="233" class="alignnone size-full wp-image-238 intro" align="right" /></p>
<p class="intro">A <strong class="highlight">list of the popular posts</strong> of the blog is a standard feature in many blogs. There are quite a few plugins that offer this feature&#8230;</p>
<ul>
<li><a href="http://ajaydsouza.com/wordpress/plugins/top-10/">Top 10 &#8211; A Page Counter and Popular Posts plugin for WordPress</a></li>
<li><a href="http://alexking.org/blog/2005/05/23/popularity-contest">Popularity Contest Plugin (beta)</a></li>
<li><a href="http://wordpress.org/extend/plugins/wordpress-popular-posts/">Wordpress Popular Posts</a></li>
<li><a href="http://boakes.org/most-wanted/">MostWanted &#8211; a Popular Posts Plugin for WordPress</a></li>
</ul>
<p>Now, lets see how to do it without using a plugin. In case you are new to this blog, I am currently working on the <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">Plugin Killer Series</a> &#8211; a series of post in which I explain how to duplicate the functionality provided by some wordpress plugins &#8211; without having to install the plugin.</p>
<p>These <strong class="highlight">plugins work by adding a view counter for each post</strong> &#8211; whenever a user visits a page, it will increment the count for that page by one. Unfortunately, WordPress does not provide this feature. But there is <strong class="highlight">another indicator for the popularity of a post &#8211; its comment count</strong>.</p>
<h2>The Code</h2>
<h3>Getting Comment Count &#8211; SQL</h3>
<p>So the first step is to get the list of post with the most comments. To get that, we can use the following SQL statement&#8230;</p>
<pre><code class="sql">SELECT id,post_title FROM wp_posts ORDER BY comment_count DESC LIMIT 0,10</code></pre>
<h3>Listing The Data &#8211; PHP/SQL</h3>
<p>This query will return just 10 posts. If you want more(or less) post, just change the number after LIMIT accordingly. The PHP code for executing the query and getting its result is&#8230;</p>
<pre><code class="php">$popular_posts = $wpdb-&gt;get_results("SELECT id,post_title FROM {$wpdb-&gt;prefix}posts ORDER BY comment_count DESC LIMIT 0,10");
foreach($popular_posts as $post) {
	// Do something with the $post variable
}
</code></pre>
<h3>Final Output as Links in a List &#8211; HTML/PHP/SQL</h3>
<p>Next step is to get the URL of each post. The recommended way of doing this is by using the &#8216;<a href="http://codex.wordpress.org/Template_Tags/get_permalink">get_permalink</a>&#8216; function. Another thing we have to do is to map the result as an HTML list&#8230;</p>
<pre><code class="php">&lt;li&gt;&lt;h3&gt;Popular Posts&lt;/h3&gt;
&lt;ul class="bullets"&gt;
&lt;?php
$popular_posts = $wpdb-&gt;get_results("SELECT id,post_title FROM {$wpdb-&gt;prefix}posts ORDER BY comment_count DESC LIMIT 0,10");
foreach($popular_posts as $post) {
	print "&lt;li&gt;&lt;a href='". get_permalink($post-&gt;id) ."'&gt;".$post-&gt;post_title."&lt;/a&gt;&lt;/li&gt;\n";
}
?&gt;
&lt;/ul&gt;
&lt;/li&gt;</code></pre>
<p>Note: The HTML part of the code may need to be changed &#8211; depending on your theme.</p>
<p>Add this code to the <code>sidebar.php</code> file in your theme &#8211; and you are done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin Killer: The Series</title>
		<link>http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/</link>
		<comments>http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 18:15:35 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[series]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=235</guid>
		<description><![CDATA[My <a href="http://www.bin-co.com/blog/2009/02/avoid-duplicate-content-use-canonical-url-in-wordpress-fix-plugin/">last post</a> about using a bit of custom PHP code in the wordpress template instead of installing a plugin inspired a new way of thinking for me. <strong class="highlight">How many of the wordpress plugins currently in use are actually necessary? Couldn't we avoid a few plugins by using a bit of custom code?</strong>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/wordpress-sticker.jpg" alt="WordPress Plugin Killer: The Series" title="Wordpress Sticker" width="300" height="282" class="alignnone size-full wp-image-236 intro" align="right" /></p>
<p class="intro">My <a href="http://www.bin-co.com/blog/2009/02/avoid-duplicate-content-use-canonical-url-in-wordpress-fix-plugin/">last post</a> about using a bit of custom PHP code in the wordpress template instead of installing a plugin inspired a new way of thinking for me. <strong class="highlight">How many of the wordpress plugins currently in use are actually necessary? Couldn&#8217;t we avoid a few plugins by using a bit of custom code?</strong></p>
<p>So I decided to do <strong class="highlight">a series on how to duplicate the functionality of some plugins</strong> using PHP code within the WordPress theme/template itself. That way, you can eliminate the plugin &#8211; and still get the features offered by the plugin.</p>
<h2>The Advantages</h2>
<p>The advantages of avoiding unnecessary plugins&#8230;</p>
<dl>
<dt>Less overhead/More Optimized Method</dt>
<dd>If you have installed a plugin, the plugin files must be read and loaded into the memory on every page load. This overhead can be avoided by using putting the code into the template file which is already in the include list.</dd>
<dt>Don&#8217;t have to worry about plugin updates</dt>
<dd>Granted, current WordPress version make it very easy to update plugins. But still, if you embed the code, then there is no need to update the code every month or so.</dd>
<dt>Much more customizable than the plugin</dt>
<dd>You can write the code to get the exact functionality you want. You cannot get that with a plugin.</dd>
<dt>You learn more about WordPress</dt>
<dd>This is perhaps the most important effect &#8211; you learn more about wordpress template tags, about PHP, about wordpress internals and lot more.</dd>
</dl>
<h2>The Disadvantages</h2>
<dl>
<dt>Not as easy as using a plugin</dt>
<dd>For those who work with WordPress and PHP code all the time, like myself, editing the code may be easier than finding, installing and configuring a new plugin. But for most normal people, using the plugin is a much easier option.</dd>
<dt>Have to be familiar with coding, PHP, FTP, etc.</dt>
<dd>To do custom coding, you have to be familiar with technologies like PHP, HTML, FTP uploading etc. If you are not familiar with these, you will have to put in a bit of time to learn it.</dd>
<dt>Changing the theme involves a lot of work.</dt>
<dd>You will have to port all the changes you made in your old theme to the new theme whenever you decide to move to the a theme. The more you customize a theme, the more time you have to spent when moving to a new theme.</dd>
</dl>
<h2>Plugin Killer Series</h2>
<p>With this in mind, I have decided to create a series that shows how to &#8216;kill&#8217; some unnecessary wordpress plugins. You will be able to get the same functionality by using the custom code in your template files.</p>
<p>The first post in this series is already done &#8211; it is the &#8216;<a href="http://www.bin-co.com/blog/2009/02/avoid-duplicate-content-use-canonical-url-in-wordpress-fix-plugin/">Avoid Duplicate Content &#8211; Use Canonical URL in WordPress</a>&#8216; where I showed how to create the same functionality as the <a href="http://yoast.com/wordpress/canonical/">Canonical plugin</a>.</p>
<p>More to follow. If you are interested in these posts, make sure you have subscribed to <a href="http://feeds2.feedburner.com/bin-blog">Bin-Blog Feed</a> &#8211; if you have not done so already.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
