<?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>ErumMunir.com &#187; All Things Wordpress</title>
	<atom:link href="http://www.erummunir.com/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.erummunir.com</link>
	<description></description>
	<lastBuildDate>Thu, 17 Sep 2009 09:10:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress Blog Hacked!</title>
		<link>http://www.erummunir.com/531/wordpress-blog-hacked</link>
		<comments>http://www.erummunir.com/531/wordpress-blog-hacked#comments</comments>
		<pubDate>Thu, 17 Sep 2009 07:04:09 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Hacked]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=531</guid>
		<description><![CDATA[In one sentence &#8211; Upgrade to Wordpress 2.8.4 right now!!
That is unless you want to leave your blog open to being hacked. If you are using an older version of Wordpress, your blog has security vulnerabilities. Thankfully, these security loopholes have been fixed in Wordpress.
If you don&#8217;t think this can happen to you, think again!
One [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/531/wordpress-blog-hacked">Wordpress Blog Hacked!</a></p>



Related posts:<ol><li><a href='http://www.erummunir.com/219/wordpress-262' rel='bookmark' title='Permanent Link: WordPress 2.6.2'>WordPress 2.6.2</a> <small>I&#8217;ve had that annoying yellow bar telling me to upgrade...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In one sentence &#8211; Upgrade to Wordpress 2.8.4 right now!!</p>
<p>That is unless you want to leave your blog open to being hacked. If you are using an older version of Wordpress, your blog has security vulnerabilities. Thankfully, these security loopholes have been fixed in Wordpress.</p>
<p><strong>If you don&#8217;t think this can happen to you, think again!</strong></p>
<p>One of my websites which is based on a Wordpress blog and was running on version 2.0.9 got hacked a while back. I would never have found out if not for <a href="http://www.google.com/webmasters/tools" target="_blank">Google Webmaster Tools</a>.</p>
<p>So if you have not signed up for that yet, better do so asap as they have some very good tools which will help with optimizing your website/blog.<br />
<span id="more-531"></span></p>
<p>Once you are signed up check the link in the sidebar: Your site on the web > Keywords</p>
<p>This section shows the most common keywords Google finds on your website.</p>
<p>For me I was getting adult related keyword results which were not on my website. On checking the website source, I could see nothing. On checking the cached version at Google, I found the source had a zillion links to websites using these keywords.</p>
<p>I searched all over for an answer, I checked my files and database as much as I could but could not figure out where the links were coming from.</p>
<h2>My Solution</h2>
<p>In the end the best solution, albeit a time consuming one, was to re-install WP 2.8.4 with a new database and a new database user. Here&#8217;s how:</p>
<ol>
<li>Created a new database, a new database user and installed WP 2.8.4 in a sub folder  called Blog.</li>
<li>Replicated WP settings and started installing and setting up the plugins.
<li>Uploaded the old theme from my computer where I had a clean copy.</li>
<li>Started copy/pasting the pages and posts content manually.</li>
<li>Once the whole thing was set up exactly how I wanted it, I deleted the files in the root folder.</li>
<li>Next step was to move the files from the blog folder to the root folder.</li>
<li>Next I deleted the old database and any users associated with it.</li>
<li>Just to be safe also changed the hosting and FTP passwords.</li>
</ol>
<p>Now the true test &#8211; waiting for Google to crawl my website again to see if it will pick up the clean version or if the hack is still there. I will update this post as soon as I have that information.</p>
<h2>Upgrading Wordpress</h2>
<p>If you&#8217;d like to upgrade to the latest version of Wordpress and you are using WP 2.7 + then upgrading is simple. You can upgrade from within WP control panel by clicking Upgrade Now. </p>
<p>However, if you are using an earlier version which was installed manually, then it will have to be updated manually as well.</p>
<p>If you want I can do that for you. The options are:</p>
<p>$47 for the basic upgrade<br />
$97 for the basic upgrade plus plugin upgrade.</p>
<p><a href="/contact">Hire Me to upgrade your Wordpress and avoid getting hacked</a> </p>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/531/wordpress-blog-hacked">Wordpress Blog Hacked!</a></p>


<p>Related posts:<ol><li><a href='http://www.erummunir.com/219/wordpress-262' rel='bookmark' title='Permanent Link: WordPress 2.6.2'>WordPress 2.6.2</a> <small>I&#8217;ve had that annoying yellow bar telling me to upgrade...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/531/wordpress-blog-hacked/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>What&#8217;s With The Spammy Comments? Seriously!</title>
		<link>http://www.erummunir.com/526/whats-with-the-spammy-comments-seriously</link>
		<comments>http://www.erummunir.com/526/whats-with-the-spammy-comments-seriously#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:41:18 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>
		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=526</guid>
		<description><![CDATA[I started out with this blog being a do-follow blog because I believe in giving back to those who contribute useful comments. I can live with the fact that they might be adding the comment only for a link back as long as they also add something solid.
However, sadly most of the comments turn up [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/526/whats-with-the-spammy-comments-seriously">What&#8217;s With The Spammy Comments? Seriously!</a></p>



No related posts.]]></description>
			<content:encoded><![CDATA[<p>I started out with this blog being a do-follow blog because I believe in giving back to those who contribute useful comments. I can live with the fact that they might be adding the comment only for a link back as long as they also add something solid.</p>
<p>However, sadly most of the comments turn up being the &#8216;Thank you for this post&#8217; type comments, while others don&#8217;t even bother with that and just copy an old comment that made it through moderation. Even worse are those that are not even relevant to the post. </p>
<h2>No Follow to Do Follow to No Follow</h2>
<p>Due to these tactics, a lot of do-follow blogs have decided to go back to being no-follow blogs. Although, this blog is still do-follow, I am seriously considering that option if the quality of comments keeps deteriorating. It can be very time consuming to wade through the spam to get to the real comments and sometimes they get missed out on or get delayed in posting.<br />
<span id="more-526"></span></p>
<h2>What&#8217;s Happened to Akismet</h2>
<p>Another issue for us bloggers is that Akismet is no longer working at an optimal level. It is letting through some very blatant spam. And when I say blatant, I mean adult related spam that should never get past any spam filters. </p>
<p>Thanks to the comment moderation option, these comments never make it to the blog. May be it is time to add another spam comment removal plugin.</p>
<p><strong>Anyway&#8230;</strong><br />
&#8230;.the point is that if you want blogs to remain do-follow and keep sending their page rank and link benefit your way, make sure to write comments that add something to the discussion. It goes without saying that please read the post before commenting.</p>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/526/whats-with-the-spammy-comments-seriously">What&#8217;s With The Spammy Comments? Seriously!</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/526/whats-with-the-spammy-comments-seriously/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What&#8217;s New in Wordpress 2.8.x?</title>
		<link>http://www.erummunir.com/501/whats-new-in-wordpress-2-8-x</link>
		<comments>http://www.erummunir.com/501/whats-new-in-wordpress-2-8-x#comments</comments>
		<pubDate>Tue, 25 Aug 2009 06:19:00 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=501</guid>
		<description><![CDATA[As most of you may have realized by now, it is always a good idea to wait a while before upgrading to the latest version of Wordpress. 
One reason is you have to give the plugin authors time to update, if any are needed on their plugins. The second advantage to waiting is that all [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/501/whats-new-in-wordpress-2-8-x">What&#8217;s New in Wordpress 2.8.x?</a></p>



No related posts.]]></description>
			<content:encoded><![CDATA[<p>As most of you may have realized by now, it is always a good idea to wait a while before upgrading to the latest version of Wordpress. </p>
<p>One reason is you have to give the plugin authors time to update, if any are needed on their plugins. The second advantage to waiting is that all the security bugs get ironed out. In case you noticed, WP 2.8 was followed by 2.8.1 up to 2.8.4 pretty quickly.</p>
<p>I finally upgraded at 2.8.4 and all the plugins seem to be working flawlessly and I haven&#8217;t even updated all of them as yet so that is step number two.</p>
<p><strong>Now for the new features:</strong><br />
<span id="more-501"></span></p>
<h2>More Screen Options</h2>
<p>Starting with your dashboard, you will find new screen options including choosing the number of columns you want on the page (this is pretty neat btw). The screen options have been enhanced for every section.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2009/08/2.8-1.jpg" alt="2.8-1" title="2.8-1" width="500" height="144" class="alignnone size-full wp-image-502" tyle="border:1px solid #000000;" /></p>
<h2>Manage Your Themes</h2>
<p>What a relief! You can now not only activate but preview and delete the theme right from your theme management page. It was great to have this functionality with plugins. It is just as good to see it come to life with the themes.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2009/08/2.8-2.gif" alt="Managing Themes" title="Managing Themes" width="301" height="324" class="alignnone size-full wp-image-503" /></p>
<h2>Install New Themes</h2>
<p>And if you think managing themes is a breeze, wait till you check out the new install theme option. You can directly upload a theme in zip format or choose from the zillion free ones available.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2009/08/2.8-3.gif" alt="Installing New Themes" title="Installing New Themes" width="500" height="366" class="alignnone size-full wp-image-504"  /></p>
<h2>Theme Editor</h2>
<p>One very nice change in the editor is the new function name lookup option.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2009/08/2.8-5.gif" alt="Theme Editor" title="Theme Editor" width="500" height="327" class="alignnone size-full wp-image-511" /></p>
<h2>Managing Widgets</h2>
<p>If there was ever a section in urgent need of improvement, it was the widgets. And that is exactly what it got. This section has had a page lift and dragging and adding widgets to your sidebars has never been easier. One widget you will love is the text/html widget. You can now add it multiple times to your sidebar to add any text/html you may want to in between all  the other widgets. Pretty useful!</p>
<p>There is also an inactive widgets section. That is if you want to deactivate a widget but not remove its settings. </p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2009/08/2.8-4.gif" alt="Widget Management" title="Widget Management" width="500" height="246" class="alignnone size-full wp-image-507"  /></p>
<h2>Comment Management Made easy</h2>
<p>In the edit post area, there is a new section for every post. And this is the comments section. Here you can view, edit, delete and perform any function related to comments for that post. Yes you can add your own replies, too. </p>
<h2>Adding Tags</h2>
<p>Not only can you add tags, tag slugs, you can also add tag descriptions if you so wish. Find this under Posts &#8211; Post Tags.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2009/08/2.8-6.gif" alt="Adding Tags" title="Adding Tags" width="383" height="494" class="alignnone size-full wp-image-512" /></p>
<h2>TimeZones</h2>
<p>This can be found under Settings &#8211; General. It allows you to choose  a city in  the same time zone as you. Daylight savings is also taken into account with this new change.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2009/08/2.8-7.gif" alt="Time Zones" title="Time Zones" width="500" height="213" class="alignnone size-full wp-image-514" /></p>
<p>A worthwhile upgrade from WP 2.7. Now time to see what 2.9 will bring.</p>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/501/whats-new-in-wordpress-2-8-x">What&#8217;s New in Wordpress 2.8.x?</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/501/whats-new-in-wordpress-2-8-x/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Is Your Comment Author Link All Messed Up?</title>
		<link>http://www.erummunir.com/491/is-your-comment-author-link-all-messed-up</link>
		<comments>http://www.erummunir.com/491/is-your-comment-author-link-all-messed-up#comments</comments>
		<pubDate>Tue, 13 Jan 2009 12:21:46 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>
		<category><![CDATA[Analyticator]]></category>
		<category><![CDATA[Comments]]></category>
		<category><![CDATA[Wordpress Upgrade Issues]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=491</guid>
		<description><![CDATA[Did you recently upgrade to WP 2.7 and noticed that your comment author link is a bit messed up?
If you are also using the Semiologic do-follow plugin, you might also have noticed that it is no longer working.
SOLUTION
Look in your plugins to see if you have a Google Analyticator plugin. Just deactivate it and everything [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/491/is-your-comment-author-link-all-messed-up">Is Your Comment Author Link All Messed Up?</a></p>



Related posts:<ol><li><a href='http://www.erummunir.com/27/no-follow-do-follow-what-is-all-this-business' rel='bookmark' title='Permanent Link: No Follow &#8230; Do Follow &#8230; What Is All This Business?'>No Follow &#8230; Do Follow &#8230; What Is All This Business?</a> <small>Wordpress, by default adds a no-follow tag to links in...</small></li><li><a href='http://www.erummunir.com/154/cforms-ii-more-on-using-as-a-comment-form' rel='bookmark' title='Permanent Link: CForms II &#8211; More on Using as a Comment Form'>CForms II &#8211; More on Using as a Comment Form</a> <small>Good news! There is a new version of CForms that...</small></li><li><a href='http://www.erummunir.com/111/explode-and-increase-comments-using-these-wordpress-plugins' rel='bookmark' title='Permanent Link: Explode and Increase Comments Using These Wordpress Plugins'>Explode and Increase Comments Using These Wordpress Plugins</a> <small>I have already discussed a few techniques and plugins you...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Did you recently upgrade to WP 2.7 and noticed that your comment author link is a bit messed up?</p>
<p>If you are also using the Semiologic do-follow plugin, you might also have noticed that it is no longer working.</p>
<p><strong>SOLUTION</strong><br />
Look in your plugins to see if you have a Google Analyticator plugin. Just deactivate it and everything will be back to normal.</p>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/491/is-your-comment-author-link-all-messed-up">Is Your Comment Author Link All Messed Up?</a></p>


<p>Related posts:<ol><li><a href='http://www.erummunir.com/27/no-follow-do-follow-what-is-all-this-business' rel='bookmark' title='Permanent Link: No Follow &#8230; Do Follow &#8230; What Is All This Business?'>No Follow &#8230; Do Follow &#8230; What Is All This Business?</a> <small>Wordpress, by default adds a no-follow tag to links in...</small></li><li><a href='http://www.erummunir.com/154/cforms-ii-more-on-using-as-a-comment-form' rel='bookmark' title='Permanent Link: CForms II &#8211; More on Using as a Comment Form'>CForms II &#8211; More on Using as a Comment Form</a> <small>Good news! There is a new version of CForms that...</small></li><li><a href='http://www.erummunir.com/111/explode-and-increase-comments-using-these-wordpress-plugins' rel='bookmark' title='Permanent Link: Explode and Increase Comments Using These Wordpress Plugins'>Explode and Increase Comments Using These Wordpress Plugins</a> <small>I have already discussed a few techniques and plugins you...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/491/is-your-comment-author-link-all-messed-up/feed</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Upgrading to Wordpress 2.7</title>
		<link>http://www.erummunir.com/460/upgrading-to-wordpress-27</link>
		<comments>http://www.erummunir.com/460/upgrading-to-wordpress-27#comments</comments>
		<pubDate>Wed, 24 Dec 2008 12:17:22 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>
		<category><![CDATA[Upgrading Wordpress]]></category>
		<category><![CDATA[Wordpress 2.7]]></category>
		<category><![CDATA[WP 2.7 Changes]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=460</guid>
		<description><![CDATA[It seems like there is a new Wordpress version every few months. This is great from one perspective i.e. we get great new features and it just keeps getting better. However, seeing from the other end of the spectrum it also means that we have to upgrade and make changes to our theme and make [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/460/upgrading-to-wordpress-27">Upgrading to Wordpress 2.7</a></p>



Related posts:<ol><li><a href='http://www.erummunir.com/44/upgrading-to-wordpress-26' rel='bookmark' title='Permanent Link: Upgrading to Wordpress 2.6'>Upgrading to Wordpress 2.6</a> <small>I finally upgraded to Wordpress 2.6. I first installed it...</small></li><li><a href='http://www.erummunir.com/12/wordpress-updated' rel='bookmark' title='Permanent Link: Wordpress Updated'>Wordpress Updated</a> <small>I finally took the plunge and upgraded this blog to...</small></li><li><a href='http://www.erummunir.com/21/wordpress-26-has-been-released' rel='bookmark' title='Permanent Link: Wordpress 2.6 Has Been Released'>Wordpress 2.6 Has Been Released</a> <small>While I was busy designing his blog, my friend Rob...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>It seems like there is a new Wordpress version every few months. This is great from one perspective i.e. we get great new features and it just keeps getting better. However, seeing from the other end of the spectrum it also means that we have to upgrade and make changes to our theme and make sure there are no broken plugins.</p>
<p>My last version was WP 2.5.1 and I finally upgraded to 2.7 last night. It was more or less a painless task since all of my plugins still work with 2.7. At most I had to update them via the one-click plugin update (it is more like 2 clicks but who&#8217;s counting <img src='http://www.erummunir.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ).</p>
<p>However, it did require some changes in my theme. I could have lived without these changes as my theme did not break &#8230; I just wanted some of the new features to work.</p>
<p>So here&#8217;s the low down on some of the main changes in Wordpress 2.7 and how to deal with them:</p>
<p class="padding-bottom:0px;"><span id="more-460"></span></p>
<h2>Admin Interface</h2>
<p>This has to be the biggest and best change yet. The admin interface has improved threefold. It is so much easier to get to the section you want to open. It is just faster and easier to use not to mention it looks great.</p>
<h2>Dashboard Changes</h2>
<p>Personally I always thought the dashboard real estate was always wasted. Not anymore. It now displays a hoard of important info including recent comments, drafts, statistics, etc and also lets you add a quick post directly from the dashboard.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2008/12/dash1.gif" alt="dash1" title="dash1" width="500" height="347" class="alignnone size-full wp-image-471" /></p>
<h2>Write/Edit Posts and Pages</h2>
<p>You can now choose the boxes you want displayed on these pages as well as drag them around to suit your preference.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2008/12/editpost2.gif" alt="editpost2" title="editpost2" width="500" height="346" class="alignnone size-full wp-image-472" /></p>
<h2>Posts Index</h2>
<p>You can choose which columns to display. Mouse over a post to display menu options like Edit, Quick Edit, Delete, View.</p>
<p>Quick Edit brings up some basic editing options for the post. Among other things you can change categories, add tags, edit the title, slug, etc as well as make a sticky post.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2008/12/postindex.gif" alt="postindex" title="postindex" width="500" height="301" class="alignnone size-full wp-image-474" /></p>
<h2>Sticky Posts</h2>
<p>As mentioned above, the quick edit option lets you mark a post as sticky so it stays at the top of your blog. However, one small change needs to be made to your theme regarding this.</p>
<p>Find your post loop in index.php, archive.php, category.php. Look for the starting div &#8230; something like this:</p>
<p class="box"><code>&lt;div id="post-&lt;?php the_ID(); ?&gt;" class="post"&gt;</code></p>
<p>Change this to:</p>
<p class="box"><code>&lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt;</code></p>
<p>You can also add one or multiple classes to this as follows:</p>
<p class="box"><code>&lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class('class1 class2'); ?&gt;&gt;</code></p>
<p>The classes need to be separated by a space.</p>
<h2>Better Comment Management</h2>
<p>There are a lot of improvements related to comments. Not only can you perform bulk actions like marking as spam, deleting, etc, but you can finally reply to comments from within the WP admin interface. About time this feature got added. The only thing I miss is a threaded reply feature here.</p>
<p>A menu pops up when you mouse over a comment giving you the option to reply, edit, delete, etc.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2008/12/comment.gif" alt="comment" title="comment" width="500" height="146" class="alignnone size-full wp-image-466" /></p>
<h2>Threaded Comments and Comment Pagination</h2>
<p>These two much needed features have been added to the core WP installation. No need for plugins to do either.</p>
<p>Go to settings and then discussion. Here you will find the option to set pagination and threading on along with the settings. You can choose the number of comments to display as well as how deep the threading should go.</p>
<p>Now for the harder part. These two features require a change in your comments.php file. This is all you need to display your comments:</p>
<pre><code>&lt;div class="navigation"&gt;
&lt;div class="alignleft"&gt;&lt;?php previous_comments_link() ?&gt;&lt;/div&gt;
&lt;div class="alignright"&gt;&lt;?php next_comments_link() ?&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;ol id="commentlist"&gt;
&lt;?php wp_list_comments('type=comment'); ?&gt;
&lt;/ol&gt;

&lt;div class="navigation"&gt;
&lt;div class="alignleft"&gt;&lt;?php previous_comments_link() ?&gt;&lt;/div&gt;
&lt;div class="alignright"&gt;&lt;?php next_comments_link() ?&gt;&lt;/div&gt;
&lt;/div&gt;</code></pre>
<p>You also need to add this line to your header.php file:</p>
<p class="box"><code>&lt;?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?&gt;</code></p>
<p>This is just the basic comment code which works with pagination and threading. You can style the basic code or add a call back function for extreme styling or in other words your own custom comment design. </p>
<p>I will try and cover that in another post.</p>
<h2>Logout</h2>
<p>If you  have a logout option in your theme, make sure to replace the logut url with:</p>
<p class="box"><code>&lt;?php echo wp_logout_url(get_permalink()); ?&gt;</code></p>
<h2>So these are&#8230;</h2>
<p>&#8230;some of the changes in WP2.7. The goods news is that your old theme from WP 2.6 and 2.5 will still work as will most of the plugins. You only need to make the changes if you want to add the new comment features.</p>
<p><a href="http://wordpress.org/download/" target="_blank">You can get WP 2.7 here.</a></p>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/460/upgrading-to-wordpress-27">Upgrading to Wordpress 2.7</a></p>


<p>Related posts:<ol><li><a href='http://www.erummunir.com/44/upgrading-to-wordpress-26' rel='bookmark' title='Permanent Link: Upgrading to Wordpress 2.6'>Upgrading to Wordpress 2.6</a> <small>I finally upgraded to Wordpress 2.6. I first installed it...</small></li><li><a href='http://www.erummunir.com/12/wordpress-updated' rel='bookmark' title='Permanent Link: Wordpress Updated'>Wordpress Updated</a> <small>I finally took the plunge and upgraded this blog to...</small></li><li><a href='http://www.erummunir.com/21/wordpress-26-has-been-released' rel='bookmark' title='Permanent Link: Wordpress 2.6 Has Been Released'>Wordpress 2.6 Has Been Released</a> <small>While I was busy designing his blog, my friend Rob...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/460/upgrading-to-wordpress-27/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>WordPress 2.6.2</title>
		<link>http://www.erummunir.com/219/wordpress-262</link>
		<comments>http://www.erummunir.com/219/wordpress-262#comments</comments>
		<pubDate>Thu, 11 Sep 2008 07:28:57 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>
		<category><![CDATA[Upgrading Wordpress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress 2.6.2]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=219</guid>
		<description><![CDATA[I&#8217;ve had that annoying yellow bar telling me to upgrade to WP 2.6.1 for a while. Today I finally decided to give it a go and just in time, too. Now the bar reads download WordPress 2.6.2. Wow! These guys are fast.
Saved from two upgrades. Phew!
Here&#8217;s the lowdown on why you should upgrade to 2.6.2
It [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/219/wordpress-262">WordPress 2.6.2</a></p>



Related posts:<ol><li><a href='http://www.erummunir.com/531/wordpress-blog-hacked' rel='bookmark' title='Permanent Link: Wordpress Blog Hacked!'>Wordpress Blog Hacked!</a> <small>In one sentence &#8211; Upgrade to Wordpress 2.8.4 right now!!...</small></li><li><a href='http://www.erummunir.com/460/upgrading-to-wordpress-27' rel='bookmark' title='Permanent Link: Upgrading to Wordpress 2.7'>Upgrading to Wordpress 2.7</a> <small>It seems like there is a new Wordpress version every...</small></li><li><a href='http://www.erummunir.com/44/upgrading-to-wordpress-26' rel='bookmark' title='Permanent Link: Upgrading to Wordpress 2.6'>Upgrading to Wordpress 2.6</a> <small>I finally upgraded to Wordpress 2.6. I first installed it...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had that annoying yellow bar telling me to upgrade to WP 2.6.1 for a while. Today I finally decided to give it a go and just in time, too. Now the bar reads download WordPress 2.6.2. Wow! These guys are fast.</p>
<p>Saved from two upgrades. Phew!</p>
<p><a href="http://wordpress.org/development/2008/09/wordpress-262/" target="_blank">Here&#8217;s the lowdown on why you should upgrade to 2.6.2</a></p>
<p>It is most important for those of you who allow open registrations on your blogs. Of course there are some bug fixes, too. So best to upgrade.</p>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/219/wordpress-262">WordPress 2.6.2</a></p>


<p>Related posts:<ol><li><a href='http://www.erummunir.com/531/wordpress-blog-hacked' rel='bookmark' title='Permanent Link: Wordpress Blog Hacked!'>Wordpress Blog Hacked!</a> <small>In one sentence &#8211; Upgrade to Wordpress 2.8.4 right now!!...</small></li><li><a href='http://www.erummunir.com/460/upgrading-to-wordpress-27' rel='bookmark' title='Permanent Link: Upgrading to Wordpress 2.7'>Upgrading to Wordpress 2.7</a> <small>It seems like there is a new Wordpress version every...</small></li><li><a href='http://www.erummunir.com/44/upgrading-to-wordpress-26' rel='bookmark' title='Permanent Link: Upgrading to Wordpress 2.6'>Upgrading to Wordpress 2.6</a> <small>I finally upgraded to Wordpress 2.6. I first installed it...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/219/wordpress-262/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CForms II &#8211; More on Using as a Comment Form</title>
		<link>http://www.erummunir.com/154/cforms-ii-more-on-using-as-a-comment-form</link>
		<comments>http://www.erummunir.com/154/cforms-ii-more-on-using-as-a-comment-form#comments</comments>
		<pubDate>Tue, 19 Aug 2008 08:26:13 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[CForms]]></category>
		<category><![CDATA[CommentLuv]]></category>
		<category><![CDATA[Comments]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Subscribe To Comments]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=154</guid>
		<description><![CDATA[Good news! There is a new version of CForms that is out and has got great features. The best thing about it is it has got most of the features on my wish list  
So here goes&#8230;
Plugin Compatibility
CForms is now completely compatible with three of the most used comment plugins. 

Subscribe To Comments
CommentLuv
WP AJAX [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/154/cforms-ii-more-on-using-as-a-comment-form">CForms II &#8211; More on Using as a Comment Form</a></p>



Related posts:<ol><li><a href='http://www.erummunir.com/76/cforms-ii-the-all-in-one-contact-form-solution' rel='bookmark' title='Permanent Link: CForms II &#8211; The All In One Contact Form Solution'>CForms II &#8211; The All In One Contact Form Solution</a> <small>Cforms II is a Wordpress plugin which makes it easy...</small></li><li><a href='http://www.erummunir.com/491/is-your-comment-author-link-all-messed-up' rel='bookmark' title='Permanent Link: Is Your Comment Author Link All Messed Up?'>Is Your Comment Author Link All Messed Up?</a> <small>Did you recently upgrade to WP 2.7 and noticed that...</small></li><li><a href='http://www.erummunir.com/111/explode-and-increase-comments-using-these-wordpress-plugins' rel='bookmark' title='Permanent Link: Explode and Increase Comments Using These Wordpress Plugins'>Explode and Increase Comments Using These Wordpress Plugins</a> <small>I have already discussed a few techniques and plugins you...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Good news! There is a new version of CForms that is out and has got great features. The best thing about it is it has got most of the features on my wish list <img src='http://www.erummunir.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So here goes&#8230;</p>
<h2>Plugin Compatibility</h2>
<p>CForms is now completely compatible with three of the most used comment plugins. </p>
<ul class="space">
<li><a href="http://txfx.net/code/wordpress/subscribe-to-comments/" target="_blank">Subscribe To Comments</a></li>
<li><a href="http://www.fiddyp.co.uk/commentluv-wordpress-plugin/" target="_blank">CommentLuv</a></li>
<li><a href="http://www.raproject.com/ajax-edit-comments-20/" target="_blank">WP AJAX Edit Comments</a></li>
</ul>
<p><strong>First Step</strong> is to install the above mentioned plugins and activate them.</p>
<p><strong>Next&#8230; adding Subscribe To Comments and CommentLuv</strong> </p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2008/08/1a.jpg" alt="" title="Plugin Compatibility" width="500" height="100" class="alignnone size-full wp-image-155" /></p>
<p style="padding-bottom:0px;"><span id="more-154"></span></p>
<p>When you add the comment form you will notice two extra fields: Subscribe To Comments and CommentLuv. Adding these will make sure that the two plugins now work seamlessly with CForms. Yes it  really is that simple!</p>
<p><strong>And &#8230; WP AJAX Edit Comments</strong><br />
This is the simplest one to work with as all you need to do is upgrade to the latest version of this plugin. The plugin authors of both CFORMS and WP AJAX Edit Comments have worked together to make sure the plugins are compatible. So hats off to them.</p>
<h2>Comment Template</h2>
<p>When you post a comment using the CForms comment form, you might not get to see the comment posted until you refresh the page. This is because there is one last setting that needs to be adjusted.</p>
<p><img src="http://www.erummunir.com/wp-content/uploads/2008/08/1b1.jpg" alt="" title="WP Comment Feature Settings" width="500" height="654" /></p>
<ol>
<li>Click global settings.</li>
<li>Next select &#8216;WP Comment Feature Settings&#8217;</li>
<li>The most important setting here is &#8216;Parent Comment Container&#8217;. Your comments are wrapped in an ol tag. Whatever id is set for that must be added to this field. Example:
<p class="box"><code>&lt;ol id="commentlist"&gt;</code></p>
<p>In this case the &#8216;Parent Comment Container&#8217; will be &#8216;commentlist&#8217;</li>
<li>Next we design the look of the comment template to match the one in comments.php. This can be done under &#8216;New comment HTML template&#8217;. If you click on Supported Variables you will see a list of all that you can use. The good news is that  there is now a gravatar option. Also if you use the Default Template as the starting point, it also has the option of alternating the class.
<p class="box"><code>&lt;li class="alt" id="comment-{id}"&gt;</code></p>
</li>
<li>Lastly you can also set the gravatar size to your liking.</li>
</ol>
<p>You should now be able to preview your comment without re-loading te page plud have the option of editing it if yo are using the WP AJAX Edit Comments plugin.</p>
<h2>Troubleshooting</h2>
<p>There are some problems you might run into.</p>
<ol>
<li>You might note that your first comment needs refreshing while the follow-up comments can be easily viewed without a reload.</p>
<p>There is a reason. Your most probably have your comment code like this:</p>
<pre><code>If Comment {
&lt;ol id="commentlist"&gt;
&lt;li&gt;
Comment Here
&lt;/li&gt;
&lt;/ol&gt;
}</code></pre>
<p>Note that the ol tag is only displayed if there is a comment. Your blog doesn&#8217;t know there is a first comment until the page is re-loaded. Since the ol tags are not used, CForms cannot show the comment. If you have them outside the &#8216;if comment&#8217; and the ol tag is rendered regardless of whether there is a comment or not then Cforms can work its magic.</li>
<li>You might find that you can no longer access your Wordpress admin or that pages go blank after you save settings. Check to make sure that cforms.php in your plugins/cforms folder does not have any empty spaces at the end. If the problem persists, then it can be a PHP memory issue. This can be set in your php.ini file if you run your own server or you can ask your host to increase PHP memory to say 32 or 64.</li>
</ol>
<p>Enjoy the new version of CForms &#8230; I&#8217;m sure this plugin will continue to improve. In which case there will be a part 3 to this tutorial someday.</p>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/154/cforms-ii-more-on-using-as-a-comment-form">CForms II &#8211; More on Using as a Comment Form</a></p>


<p>Related posts:<ol><li><a href='http://www.erummunir.com/76/cforms-ii-the-all-in-one-contact-form-solution' rel='bookmark' title='Permanent Link: CForms II &#8211; The All In One Contact Form Solution'>CForms II &#8211; The All In One Contact Form Solution</a> <small>Cforms II is a Wordpress plugin which makes it easy...</small></li><li><a href='http://www.erummunir.com/491/is-your-comment-author-link-all-messed-up' rel='bookmark' title='Permanent Link: Is Your Comment Author Link All Messed Up?'>Is Your Comment Author Link All Messed Up?</a> <small>Did you recently upgrade to WP 2.7 and noticed that...</small></li><li><a href='http://www.erummunir.com/111/explode-and-increase-comments-using-these-wordpress-plugins' rel='bookmark' title='Permanent Link: Explode and Increase Comments Using These Wordpress Plugins'>Explode and Increase Comments Using These Wordpress Plugins</a> <small>I have already discussed a few techniques and plugins you...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/154/cforms-ii-more-on-using-as-a-comment-form/feed</wfw:commentRss>
		<slash:comments>70</slash:comments>
		</item>
		<item>
		<title>Wordpress 2.6 Uploading Broken Images &#8211; Fix</title>
		<link>http://www.erummunir.com/150/wordpress-26-uploading-broken-images-fix</link>
		<comments>http://www.erummunir.com/150/wordpress-26-uploading-broken-images-fix#comments</comments>
		<pubDate>Fri, 08 Aug 2008 09:31:31 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>
		<category><![CDATA[Broken Images]]></category>
		<category><![CDATA[Upload Image Problem]]></category>
		<category><![CDATA[Wordpress 2.6]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=150</guid>
		<description><![CDATA[If you have just upgraded to Wordpress 2.6 you might notice one slight problem. You are no longer able to upload your images. They show up as broken images. It doesn&#8217;t matter whether you use the AJAX option or not, the result is the same.
Surprisingly not everyone is facing this problem. 
A client of mine [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/150/wordpress-26-uploading-broken-images-fix">Wordpress 2.6 Uploading Broken Images &#8211; Fix</a></p>



Related posts:<ol><li><a href='http://www.erummunir.com/44/upgrading-to-wordpress-26' rel='bookmark' title='Permanent Link: Upgrading to Wordpress 2.6'>Upgrading to Wordpress 2.6</a> <small>I finally upgraded to Wordpress 2.6. I first installed it...</small></li><li><a href='http://www.erummunir.com/21/wordpress-26-has-been-released' rel='bookmark' title='Permanent Link: Wordpress 2.6 Has Been Released'>Wordpress 2.6 Has Been Released</a> <small>While I was busy designing his blog, my friend Rob...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If you have just upgraded to Wordpress 2.6 you might notice one slight problem. You are no longer able to upload your images. They show up as broken images. It doesn&#8217;t matter whether you use the AJAX option or not, the result is the same.</p>
<p>Surprisingly not everyone is facing this problem. </p>
<p>A client of mine has the exact same configuration on his blog (give or take a couple of plugins) as mine. However, he faced the broken image problem while I did not. Of course we have blogs on different servers so that might have something to do with it.</p>
<p style="padding-bottom:0px;"><span id="more-150"></span></p>
<h2>The Fix</h2>
<p>The fix is pretty simple. It&#8217;s just finding it that takes time <img src='http://www.erummunir.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ol>
<li>Browse to your Wordpress admin settings.</li>
<li>Click on Miscellaneous</li>
<li>The first field there is &#8216;Store uploads in this folder&#8217; and most probably contains the folder wp-content/uploads. The second field &#8216;Full URL path to files (optional)&#8217; is most likely blank. It is this field which you need to fill up. Add the full path to your uploads folder as follows (assuming your upload folder is wp-content/uploads).
<p class="box"><code>http://www.yourdomain.com/wp-content/uploads</code></p>
<p>Your images should now upload without a problem.
</li>
</ol>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/150/wordpress-26-uploading-broken-images-fix">Wordpress 2.6 Uploading Broken Images &#8211; Fix</a></p>


<p>Related posts:<ol><li><a href='http://www.erummunir.com/44/upgrading-to-wordpress-26' rel='bookmark' title='Permanent Link: Upgrading to Wordpress 2.6'>Upgrading to Wordpress 2.6</a> <small>I finally upgraded to Wordpress 2.6. I first installed it...</small></li><li><a href='http://www.erummunir.com/21/wordpress-26-has-been-released' rel='bookmark' title='Permanent Link: Wordpress 2.6 Has Been Released'>Wordpress 2.6 Has Been Released</a> <small>While I was busy designing his blog, my friend Rob...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/150/wordpress-26-uploading-broken-images-fix/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Separate Your Trackbacks From Your Comments</title>
		<link>http://www.erummunir.com/126/separate-your-trackbacks-from-your-comments</link>
		<comments>http://www.erummunir.com/126/separate-your-trackbacks-from-your-comments#comments</comments>
		<pubDate>Thu, 07 Aug 2008 18:37:46 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Comments]]></category>
		<category><![CDATA[Pingbacks]]></category>
		<category><![CDATA[Trackbacks]]></category>
		<category><![CDATA[Wordpress Theme]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=126</guid>
		<description><![CDATA[It is amazing how many blogs do not do this. They have the messiest comments section with a zillion comments, trackbacks and pingbacks all jumbled up. And it is almost impossible to make some sense of out of the entire mess. Want to follow the conversation? Try evading the trackbacks and pingbacks along the way.
What&#8217;s [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/126/separate-your-trackbacks-from-your-comments">Separate Your Trackbacks From Your Comments</a></p>



Related posts:<ol><li><a href='http://www.erummunir.com/118/adding-live-preview-for-comments' rel='bookmark' title='Permanent Link: Adding Live Preview For Comments'>Adding Live Preview For Comments</a> <small>If you scroll down you will see a live preview...</small></li><li><a href='http://www.erummunir.com/76/cforms-ii-the-all-in-one-contact-form-solution' rel='bookmark' title='Permanent Link: CForms II &#8211; The All In One Contact Form Solution'>CForms II &#8211; The All In One Contact Form Solution</a> <small>Cforms II is a Wordpress plugin which makes it easy...</small></li><li><a href='http://www.erummunir.com/111/explode-and-increase-comments-using-these-wordpress-plugins' rel='bookmark' title='Permanent Link: Explode and Increase Comments Using These Wordpress Plugins'>Explode and Increase Comments Using These Wordpress Plugins</a> <small>I have already discussed a few techniques and plugins you...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>It is amazing how many blogs do not do this. They have the messiest comments section with a zillion comments, trackbacks and pingbacks all jumbled up. And it is almost impossible to make some sense of out of the entire mess. Want to follow the conversation? Try evading the trackbacks and pingbacks along the way.</p>
<h2>What&#8217;s the solution?</h2>
<p>Separate the two, of course.</p>
<p><strong>But How?</strong></p>
<p>That&#8217;s a good question. You will find plugins that do this but if you can manage something in the theme design, it is best to do so rather than install plugin upon plugin. Plugins are best used where you cannot achieve your objective without touching the core Wordpress files.</p>
<p style="padding-bottom:0px;"><span id="more-126"></span></p>
<p>In this case all you need to work with is your theme&#8217;s comments.php file.</p>
<h2>Step One &#8211; Counting Comments and Trackbacks</h2>
<p>Since the normal comment count includes both the comments and trackbacks, we first need to get a separate count for each.</p>
<p>Find this line in comments.php</p>
<p class="box"><code>&lt;!-- You can start editing here. --&gt;</code></p>
<p>Add the following code under it</p>
<pre><code>&lt;?php
$numTrackBacks = 0;
$numComments = 0;

foreach ($comments as $comment) {
$comment_type = get_comment_type(); 
if ($comment_type != 'comment') { $numTrackBacks++; }
else { $numComments++; }
}
?&gt;</code></pre>
<p><strong>Basic gist: </strong><br />
First we set $numTrackBacks and $numComments as 0. We then check the database and loop thru the comments and trackbacks. If the record retrieved is not a comment then a number is added to the trackback count otherwise the comment count is increased.</p>
<h2>Step Two &#8211; Showing the Comment Count</h2>
<p>Next we need to show the comment count before we display the comments.</p>
<p>Find this line</p>
<p class="box"><code>&lt;?php if ($comments) : ?&gt;</code></p>
<p>and add this code after it:</p>
<pre><code>&lt;?php echo $numComments;?&gt; 
&lt;? if ($numComments = 1) :?&gt;
Response
&lt;? else : ?&gt;
Responses
&lt;? endif; ?&gt;
to &amp;#8220;&lt;?php the_title(); ?&gt;&amp;#8221;</code></pre>
<p>This will spit out the comment count in this format:<br />
1 Response for &#8216;Post Title&#8217;<br />
5 Responses for &#8216;Post Title&#8217;</p>
<h2>Step Three &#8211; Displaying The Comments</h2>
<p>Next we have to display comments. Look for this line:</p>
<p class="box"><code>&lt;?php foreach ($comments as $comment) : ?&gt;</code></p>
<p>And add these two lines after it:</p>
<pre><code>&lt;?php $comment_type = get_comment_type(); ?&gt;
&lt;?php if($comment_type == 'comment') { ?&gt;</code></pre>
<p>What we are doing here is checking to see if the record retrieved is a comment.<br />
If so then we display it.</p>
<p>Since we have opened a loop, we also need to close it.</p>
<p>Find the line</p>
<p class="box"><code>&lt;?php endforeach; /* end for each comment */ ?&gt;</code></p>
<p>and replace it with:</p>
<pre><code>&lt;?php } /* End of is_comment statement */ ?&gt;
&lt;?php endforeach; /* end for each comment */ ?&gt;</code></pre>
<p>We have successfully displayed our comments without any trackbacks or pingbacks.</p>
<h2>Step Four &#8211; Displaying Trackbacks and Pingbacks</h2>
<p>Time to display our trackbacks and pingbacks.</p>
<p>Add this code right after you finish displaying the comments (in most themes it would be after the /ol tag):</p>
<pre>
<code>&lt;? if ($numTrackBacks != 0) :?&gt;
&lt;br /&gt;
&lt;h3&gt;Trackbacks and Pings 
(&lt;? echo $numTrackBacks; ?&gt;)&lt;/h3&gt;
&lt;? endif; ?&gt;
&lt;ol&gt;
&lt;?php foreach ($comments as $comment) : ?&gt;
&lt;?php $comment_type = get_comment_type(); ?&gt;
&lt;?php if($comment_type != 'comment') { ?&gt;
&lt;li&gt;&lt;?php comment_author_link() ?&gt;&lt;/li&gt;
&lt;?php } ?&gt;
&lt;?php endforeach; ?&gt;
&lt;/ol&gt;</code>
</pre>
<p>You can change the styling and format to suit your site. However, this basic code will show your trackbacks and pingbacks separated from your comments.</p>
<p>&#8211;</p>
<p>Now there is no excuse to not clean up your blog and organize your comments.</p>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/126/separate-your-trackbacks-from-your-comments">Separate Your Trackbacks From Your Comments</a></p>


<p>Related posts:<ol><li><a href='http://www.erummunir.com/118/adding-live-preview-for-comments' rel='bookmark' title='Permanent Link: Adding Live Preview For Comments'>Adding Live Preview For Comments</a> <small>If you scroll down you will see a live preview...</small></li><li><a href='http://www.erummunir.com/76/cforms-ii-the-all-in-one-contact-form-solution' rel='bookmark' title='Permanent Link: CForms II &#8211; The All In One Contact Form Solution'>CForms II &#8211; The All In One Contact Form Solution</a> <small>Cforms II is a Wordpress plugin which makes it easy...</small></li><li><a href='http://www.erummunir.com/111/explode-and-increase-comments-using-these-wordpress-plugins' rel='bookmark' title='Permanent Link: Explode and Increase Comments Using These Wordpress Plugins'>Explode and Increase Comments Using These Wordpress Plugins</a> <small>I have already discussed a few techniques and plugins you...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/126/separate-your-trackbacks-from-your-comments/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Live Preview For Comments</title>
		<link>http://www.erummunir.com/118/adding-live-preview-for-comments</link>
		<comments>http://www.erummunir.com/118/adding-live-preview-for-comments#comments</comments>
		<pubDate>Wed, 06 Aug 2008 10:38:35 +0000</pubDate>
		<dc:creator>Erum Munir</dc:creator>
				<category><![CDATA[All Things Wordpress]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Comments]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.erummunir.com/?p=118</guid>
		<description><![CDATA[If you scroll down you will see a live preview option for comments. Just try it out by typing in a comment. Pretty cool, huh!?
A friend asked me why this was useful and why anyone will want to see their comment twice? 
My answer:  If your comment is pretty long, the textarea will start [...]<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/118/adding-live-preview-for-comments">Adding Live Preview For Comments</a></p>



Related posts:<ol><li><a href='http://www.erummunir.com/126/separate-your-trackbacks-from-your-comments' rel='bookmark' title='Permanent Link: Separate Your Trackbacks From Your Comments'>Separate Your Trackbacks From Your Comments</a> <small>It is amazing how many blogs do not do this....</small></li><li><a href='http://www.erummunir.com/76/cforms-ii-the-all-in-one-contact-form-solution' rel='bookmark' title='Permanent Link: CForms II &#8211; The All In One Contact Form Solution'>CForms II &#8211; The All In One Contact Form Solution</a> <small>Cforms II is a Wordpress plugin which makes it easy...</small></li><li><a href='http://www.erummunir.com/16/adding-code-to-your-wordpress-post' rel='bookmark' title='Permanent Link: Adding Code To Your Wordpress Post'>Adding Code To Your Wordpress Post</a> <small>Trying to add code to your wordpress post can be...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If you scroll down you will see a live preview option for comments. Just try it out by typing in a comment. Pretty cool, huh!?</p>
<p>A friend asked me why this was useful and why anyone will want to see their comment twice? </p>
<p>My answer:  If your comment is pretty long, the textarea will start to scroll and you won&#8217;t be able to look at your entire comment in on go. The preview on the other hand shows the comment in its entirety. This way you can see how it looks and proof read with ease before you post.</p>
<p style="padding-bottom:0px;"><span id="more-118"></span></p>
<p>I have gotten this technique from the <a href="http://www.rockatee.com/blog/creating-a-simple-comment-live-preview-to-use-with-expressionengine/" target="_blank">Rockatee Blog</a>. So a big thank you to Maleika.</p>
<ol>
<li>First things first. You need to <a href="http://www.jquery.com" target="_blank">download jQuery</a>. Lets just name it jquery.js and place it in  your theme folder. </li>
<li>Next download <a href="http://www.erummunir.com/wp-content/themes/em/preview.js">this file</a> and place it in your theme folder.</li>
<li>Now open header.php from your theme and add these lines in the head area:
<p class="box"><code>&lt;script type="text/javascript" src="&lt;?php bloginfo('template_directory'); ?&gt;/jquery.js"&gt;&lt;/script&gt; 
&lt;script type="text/javascript" src="&lt;?php bloginfo('template_directory'); ?&gt;/preview.js"&gt;&lt;/script&gt;</code></p>
</li>
<li>Last step is to add the following code to you comments.php file wherever you want the live preview to show up.
<p class="box"><code>&lt;div class="comment-preview"&gt; 
&lt;h3&gt;My Comment Preview&lt;/h3&gt; 
&lt;p class="live-preview"&gt;Add some instructions - this text will get replaced by the comment preview.&lt;/p&gt; 
&lt;/div&gt;</code></p>
</li>
<li>You can use the class p.live-preview to style the live comment preview.
</ol>
<p>See that was simple and you have your own comment live preview.</p>
<p>-----<br />
Post from: <a href="http://www.erummunir.com">ErumMunir.com</a>.<br />
Don't forget to leave a comment at:<br /></p>
<p><a href="http://www.erummunir.com/118/adding-live-preview-for-comments">Adding Live Preview For Comments</a></p>


<p>Related posts:<ol><li><a href='http://www.erummunir.com/126/separate-your-trackbacks-from-your-comments' rel='bookmark' title='Permanent Link: Separate Your Trackbacks From Your Comments'>Separate Your Trackbacks From Your Comments</a> <small>It is amazing how many blogs do not do this....</small></li><li><a href='http://www.erummunir.com/76/cforms-ii-the-all-in-one-contact-form-solution' rel='bookmark' title='Permanent Link: CForms II &#8211; The All In One Contact Form Solution'>CForms II &#8211; The All In One Contact Form Solution</a> <small>Cforms II is a Wordpress plugin which makes it easy...</small></li><li><a href='http://www.erummunir.com/16/adding-code-to-your-wordpress-post' rel='bookmark' title='Permanent Link: Adding Code To Your Wordpress Post'>Adding Code To Your Wordpress Post</a> <small>Trying to add code to your wordpress post can be...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.erummunir.com/118/adding-live-preview-for-comments/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
