<?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>Kavoir &#187; WordPress How To</title>
	<atom:link href="http://www.kavoir.com/category/3rd-party-scripts-and-softwares/wordpress-howto/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kavoir.com</link>
	<description>Just another dumbass webmaster, goofing around...</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:59:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress: Display Ads in Post Content and Only Display Ads in Old Posts</title>
		<link>http://www.kavoir.com/2012/01/wordpress-display-ads-in-post-content-and-only-display-ads-in-old-posts.html</link>
		<comments>http://www.kavoir.com/2012/01/wordpress-display-ads-in-post-content-and-only-display-ads-in-old-posts.html#comments</comments>
		<pubDate>Wed, 25 Jan 2012 04:57:02 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[Make Money Online]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/?p=2666</guid>
		<description><![CDATA[The title pretty much says it all. It’s 2 of the most useful AdSense ads tips for bloggers in my opinion. Obtrusive ads have the unnecessary effect of driving away readers after they have found what they needed. Unless you have amazingly great content, the chance of them becoming a loyal reader is rather low [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The title pretty much says it all. It’s 2 of the most useful AdSense ads tips for bloggers in my opinion. Obtrusive ads have the unnecessary effect of driving away readers after they have found what they needed. Unless you have amazingly great content, the chance of them becoming a loyal reader is rather low when you have ads splashing into their faces – this is not something you want to do to your subscribed readers. On the other hand, you’d want to maximize your AdSense earnings by putting up ads on as many posts as possible. </p>

<h2>Ad Injection (WP plugin)</h2>
<p>This tiny little plugin, <a href="http://wordpress.org/extend/plugins/ad-injection/">Ad Injection</a>, gets it all. Very useful plugin for you to insert AdSense ads in your blog posts AND set a specific age threshold for the posts to display ads, so freshly published articles won’t have ads to drive your subscribers away. See detailed introduction here: <a href="http://www.reviewmylife.co.uk/blog/2010/12/06/ad-injection-plugin-wordpress/">Ad Injection for WordPress</a>.</p>
<p>Just install it from the inventory (upload or install from within your WP administrator panel) and activate it. Go to <strong>Settings</strong> &gt; <strong>Ad Injection</strong> &gt; “<strong>Random ad (inserted randomly between paragraphs)</strong>” and insert your AdSense code there. Depending on how aggressive you are, you can use a variety of ad formats from Google. I used a 468&#215;15 links banner on <a href="http://www.healthnot.com/what-is-brights-disease~374">Health Not</a>. Check out the screenshot below:</p>
<p><a href="http://www.healthnot.com/what-is-brights-disease~374"><img class="frame" title="insert ads in wordpress posts" alt="insert ads in wordpress posts" src="http://www.kavoir.com/wp-content/uploads/2012/01/ad-injection-adsense.png" width="485" height="500" /></a></p>
<p>By default, Ad Injection inserts a maximum of 2 instances of the <strong>Random ad</strong> per post. This way, the ads are well blended in the content. What works a few years back with the 336 square ad format on top of the content is gradually dying out in CTR thus click revenues. You should try something new such as this.</p>
<p>Another useful option of the plugin is to set “<strong>Only show normal ads on pages older than xx (days) &#8211; only for single posts and pages</strong>”. This would prove very useful if you want a good balance between ad performance / earnings and user experiences. Only displaying ads on older posts are a pretty good idea for creating a good first impression to those who stumble upon your site.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/02/wordpress-show-recent-posts-on-homepage-or-in-sidebar.html" rel="bookmark" title="February 27, 2009">WordPress: Show Recent Posts on Homepage or in Sidebar</a></li>
<li><a href="http://www.kavoir.com/2010/09/auto-generated-content-by-user-searches.html" rel="bookmark" title="September 29, 2010">Auto-generated content by user searches</a></li>
<li><a href="http://www.kavoir.com/2012/01/aweber-mailchimp-alternative-free-email-autoresponder-subscription.html" rel="bookmark" title="January 12, 2012">Aweber, Mailchimp Alternative &#8211; Free Email Autoresponder Subscription</a></li>
<li><a href="http://www.kavoir.com/2009/05/mysql-insert-if-doesnt-exist-otherwise-update-the-existing-row.html" rel="bookmark" title="May 2, 2009">MySQL: Insert if doesn&rsquo;t exist otherwise update the existing row</a></li>
<li><a href="http://www.kavoir.com/2010/07/my-online-income-report-june-2010.html" rel="bookmark" title="July 23, 2010">My online income report &ndash; June, 2010</a></li>
</ul>
<p><!-- Similar Posts took 4.092 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2012/01/wordpress-display-ads-in-post-content-and-only-display-ads-in-old-posts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customize WordPress Post Editor CSS Styles</title>
		<link>http://www.kavoir.com/2012/01/customize-wordpress-post-editor-css-styles.html</link>
		<comments>http://www.kavoir.com/2012/01/customize-wordpress-post-editor-css-styles.html#comments</comments>
		<pubDate>Thu, 19 Jan 2012 14:16:39 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/?p=2652</guid>
		<description><![CDATA[Do you know you can actually change the CSS styles of the entire editing area / editor where you create the post content in WordPress? It doesn&#8217;t have to be the default styles and since version 3.0, people can freely style the TinyMCE rich text editor shipped with WordPress however they want to by a few [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Do you know you can actually change the CSS styles of the entire editing area / editor where you create the post content in WordPress? It doesn&#8217;t have to be the default styles and since version 3.0, people can freely style the <a href="http://www.tinymce.com/">TinyMCE</a> rich text editor shipped with <a href="http://www.wordpress.org/">WordPress</a> however they want to by a few simple changes to the theme files.<span id="more-2652"></span></p>
<h2>Step 1</h2>
<p>Open the <strong>functions.php</strong> file in your theme folder (create it if it doesn&#8217;t exist) and add this line anywhere in the PHP tags &lt;?php &#8230; ?&gt;:</p>
<pre>add_editor_style();</pre>
<h2>Step 2</h2>
<p>Create a css file named <strong>editor-style.css</strong> and put it in the theme root, namely the same folder where functions.php is in. To start with, you may want to copy the CSS styles from that of the <a href="http://www.kavoir.com/wp-content/themes/twentyeleven/editor-style.css">Twenty Eleven theme</a> into yours.</p>
<p>Now you can freely change those styles (such as rich text font, size or color, etc.) to have your own customized WordPress editor styles. The default editor styles coming with Twenty Eleven are very nice that make me long to write. So I&#8217;m now using them for my editor in the current theme, <a href="http://www.kavoir.com/2010/04/dont-just-create-good-products-but-irresistable-ones-thesis-theme-1-7-review.html">Thesis</a>. You should too, if you find it more inspiring than the default styles.<br />
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/01/update-your-theme-to-wordpress-27-with-comments-threading-and-paging.html" rel="bookmark" title="January 15, 2009">Update your theme to WordPress 2.7 with Comments Threading and Paging</a></li>
<li><a href="http://www.kavoir.com/2011/03/vbulletin-change-default-height-of-quick-reply-box-and-enlarge-it.html" rel="bookmark" title="March 26, 2011">vBulletin: Change default height of editor and quick reply box</a></li>
<li><a href="http://www.kavoir.com/2009/06/html-change-text-and-font-colors.html" rel="bookmark" title="June 16, 2009">HTML: Change Text and Font Colors</a></li>
<li><a href="http://www.kavoir.com/2009/01/css-selectorhover-hack-for-ie6.html" rel="bookmark" title="January 19, 2009">CSS selector:hover Hack for IE6</a></li>
<li><a href="http://www.kavoir.com/2010/03/how-to-define-multiple-css-rules-properties-in-jquery.html" rel="bookmark" title="March 3, 2010">How to define multiple CSS rules / properties in jQuery?</a></li>
</ul>
<p><!-- Similar Posts took 5.428 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2012/01/customize-wordpress-post-editor-css-styles.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect 404 Error to Home Page</title>
		<link>http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html</link>
		<comments>http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html#comments</comments>
		<pubDate>Sun, 25 Dec 2011 03:15:19 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>
		<category><![CDATA[HTTP Tips & Tutorials]]></category>
		<category><![CDATA[PHP Tips & Tutorials]]></category>
		<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html</guid>
		<description><![CDATA[Other than making your 404 error page user friendly, you can redirect it to your index pages such as the homepage, sitemap, or search page, to make it useful for the users. Instead of relying on them to correct the error themselves, you offer the new orientation. How to redirect a 404 error page to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Other than making your <a href="http://www.smashingmagazine.com/2007/08/17/404-error-pages-reloaded/">404 error page</a> <a href="http://www.alistapart.com/articles/perfect404/">user friendly</a>, you can redirect it to your index pages such as the homepage, sitemap, or search page, to make it useful for the users. Instead of relying on them to correct the error themselves, you offer the new orientation.</p>

<h2>How to redirect a 404 error page to the home page?</h2>
<p>There are essentially 3 ways to do this depending on the technology your site is built on.</p>
<h3>The .htaccess and HTML solution</h3>
<p>This works across all sites that are served by the Apache web server with .htaccess enabled. Add this line in the .htaccess file in the root directory of your domain:</p>
<pre><code>ErrorDocument 404 /404.html</code></pre>
<p>And in 404.html, add a meta tag in the HTML head section: </p>
<pre><code>&lt;meta http-equiv=&quot;Refresh&quot; content=&quot;1; URL=http://www.example.com/&quot;&gt;</code></pre>
<p>So when there’s an 404 Not Found error the user would be first redirected to /404.html and in turn, he or she would be redirected to the homepage http://www.example.com/ (or whatever you change it to) by the meta <strong>Refresh</strong> actions.</p>
<h3>The PHP solution</h3>
<p>If you are using PHP to code your site, chances are you know this solution. You can always use the previous solution (The .htaccess and HTML solution) to redirect 404 error page to your home page on a PHP site, but you can also try the pure PHP approach instead.</p>
<p>Whenever a user types in a URL request that you do not recognize, render this:</p>
<pre><code>header(&quot;HTTP/1.1 404 Not Found&quot;);
header(&quot;Location: /&quot;);
exit();</code></pre>
<p>Which would redirect the user who has hit a 404 error to the homepage / or any other page URL you specify there.</p>
<h3>The WordPress solution</h3>
<p>If you are using WordPress for your site, make a 404.php file in your theme directory with the following content:</p>
<pre><code>&lt;?php
header(&quot;HTTP/1.1 301 Moved Permanently&quot;);
header(&quot;Location: &quot;.get_bloginfo('url'));
exit();</code></pre>
<p>WordPress would automatically use 404.php as the default 404 Not Found error page and when a user hits that page, he or she would then be taken to the home page your WordPress blog.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/09/how-to-redirect-the-visitor-to-another-page-or-website.html" rel="bookmark" title="September 3, 2009">How to redirect the visitor to another page or website?</a></li>
<li><a href="http://www.kavoir.com/2009/08/javascript-stop-and-prevent-others-from-framing-your-site-and-page.html" rel="bookmark" title="August 30, 2009">PHP, JavaScript: Stop and prevent others from framing your site or web page</a></li>
<li><a href="http://www.kavoir.com/2011/08/html-make-a-page-refresh-every-xx-seconds.html" rel="bookmark" title="August 28, 2011">HTML: Make a Page Refresh Every xx Seconds</a></li>
<li><a href="http://www.kavoir.com/2009/06/javascript-open-or-redirect-to-another-page-site-location.html" rel="bookmark" title="June 16, 2009">JavaScript: Open or Redirect to Another Page / Site / Location</a></li>
<li><a href="http://www.kavoir.com/2009/09/best-way-to-hide-and-cloak-your-affiliate-links.html" rel="bookmark" title="September 19, 2009">Best way to hide and cloak your affiliate links?</a></li>
</ul>
<p><!-- Similar Posts took 2.715 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thesis Theme Review &#8211; Don&#8217;t just create good products but irresistable ones.</title>
		<link>http://www.kavoir.com/2010/04/dont-just-create-good-products-but-irresistable-ones-thesis-theme-1-7-review.html</link>
		<comments>http://www.kavoir.com/2010/04/dont-just-create-good-products-but-irresistable-ones-thesis-theme-1-7-review.html#comments</comments>
		<pubDate>Thu, 01 Apr 2010 02:10:37 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[Business and Marketing]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/?p=1895</guid>
		<description><![CDATA[Merely good product is far from enough. To rake in profits in the magnitude vast majority of us can only dream of, you need an irresistible product &#8211; just like Thesis Theme. Think of something you&#8217;ve purchased that&#8217;s been insanely useful, beautiful and user friendly and then double it. iPhone has proved it all. It converts massive numbers [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Merely good product is far from enough. To rake in profits in the magnitude vast majority of us can only dream of, you need an <strong>irresistible</strong> product &#8211; just like <a href="http://www.kavoir.com/go/thesis/">Thesis Theme</a>. Think of something you&#8217;ve purchased that&#8217;s been insanely useful, beautiful and user friendly and then double it.</p>

<p>iPhone has proved it all. It converts massive numbers of mobile users and introduces a grand new era of mobile computing. The best part is that it easily compels all the users who now desire more to put everything Apple releases in future on their must-buy list. I can&#8217;t think of anything else in the IT world in the past decades that has come up even close. The products have not been released nor announced yet. However, that&#8217;s the kind of appeal irresistible products create.<br />
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2010/09/free-php-business-directory-script.html" rel="bookmark" title="September 29, 2010">Free PHP Business Directory Script</a></li>
<li><a href="http://www.kavoir.com/2007/05/html5-adopted-by-w3c.html" rel="bookmark" title="May 11, 2007">HTML5 adopted by W3C</a></li>
<li><a href="http://www.kavoir.com/2011/04/a-few-amazon-affiliate-tips-and-my-earnings-of-mar-2011.html" rel="bookmark" title="April 2, 2011">A few Amazon affiliate tips and my earnings of Mar. 2011</a></li>
<li><a href="http://www.kavoir.com/2010/02/php-display-current-year-to-automatically-update-copyright-years.html" rel="bookmark" title="February 23, 2010">PHP: Display Current Year to Automatically Update Copyright Years</a></li>
<li><a href="http://www.kavoir.com/2009/11/firefox-2-download-the-latest-version-of-firefox-2-because-firefox-3-sucks-big-time.html" rel="bookmark" title="November 12, 2009">Firefox 2 Download: The Latest Version of Firefox 2 &ndash; Because Firefox 3 Sucks Big Time!</a></li>
</ul>
<p><!-- Similar Posts took 2.706 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2010/04/dont-just-create-good-products-but-irresistable-ones-thesis-theme-1-7-review.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress blog goes blank after editing and updating the theme files</title>
		<link>http://www.kavoir.com/2009/07/wordpress-blog-goes-blank-after-editing-and-updating-the-theme-files.html</link>
		<comments>http://www.kavoir.com/2009/07/wordpress-blog-goes-blank-after-editing-and-updating-the-theme-files.html#comments</comments>
		<pubDate>Tue, 21 Jul 2009 01:44:47 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/07/wordpress-blog-goes-blank-after-editing-and-updating-the-theme-files.html</guid>
		<description><![CDATA[Really weird but not unexpected at all. After trying to edit and update a theme file functions.php to override a native function of WordPress, get_search_form, inserting these lines at the end of functions.php of my theme: function get_search_form() { ?&#62;test&#60;?php } To see if the native get_search_form() function can be overriden. Turns out it can&#8217;t. [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Really weird but not unexpected at all. After trying to edit and update a theme file <strong>functions.php</strong> to override a native function of WordPress, get_search_form, inserting these lines at the end of functions.php of my theme:</p>

<pre><code>function get_search_form() {
?&gt;test&lt;?php
}</code></pre>
<p>To see if the native get_search_form() function can be overriden. Turns out it can&#8217;t. Not only that but my WordPress blog refuses to load anything other than a blank white page. I have to get on FTP to revert those changes. </p>
<p>And it recovers from the strike.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/06/best-damn-premium-wordpress-theme-for-professional-bloggers-thesis.html" rel="bookmark" title="June 15, 2009">Best Damn Premium WordPress Theme for Professional Blogs: THESIS</a></li>
<li><a href="http://www.kavoir.com/2012/01/customize-wordpress-post-editor-css-styles.html" rel="bookmark" title="January 19, 2012">Customize WordPress Post Editor CSS Styles</a></li>
<li><a href="http://www.kavoir.com/2009/01/update-your-theme-to-wordpress-27-with-comments-threading-and-paging.html" rel="bookmark" title="January 15, 2009">Update your theme to WordPress 2.7 with Comments Threading and Paging</a></li>
<li><a href="http://www.kavoir.com/2009/02/wordpress-show-recent-posts-on-homepage-or-in-sidebar.html" rel="bookmark" title="February 27, 2009">WordPress: Show Recent Posts on Homepage or in Sidebar</a></li>
<li><a href="http://www.kavoir.com/2011/12/cheap-psd-to-wordpress-theme-and-custom-plugins.html" rel="bookmark" title="December 23, 2011">Cheap PSD to WordPress Theme and Custom Plugins</a></li>
</ul>
<p><!-- Similar Posts took 2.830 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/07/wordpress-blog-goes-blank-after-editing-and-updating-the-theme-files.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Damn Premium WordPress Theme for Professional Blogs: THESIS</title>
		<link>http://www.kavoir.com/2009/06/best-damn-premium-wordpress-theme-for-professional-bloggers-thesis.html</link>
		<comments>http://www.kavoir.com/2009/06/best-damn-premium-wordpress-theme-for-professional-bloggers-thesis.html#comments</comments>
		<pubDate>Mon, 15 Jun 2009 09:02:41 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[Free WordPress Themes]]></category>
		<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/06/best-damn-premium-wordpress-theme-for-professional-bloggers-thesis.html</guid>
		<description><![CDATA[Imagine the best WordPress theme you have ever used and then triple the pleasure you enjoyed with it &#8211; that&#8217;s what Thesis can give you. Whatever your niche is, if you are ever after a powerful, beautiful WordPress premium theme well balanced between functionality and customizability with best support from the author, this is the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.kavoir.com/go/thesis" target="_blank"><img title="Most powerful premium wordpress theme for professional blogs" class="alignright" height="119" alt="Best and most powerful premium wordpress theme for professional blogging" src="http://www.kavoir.com/wp-content/uploads/2009/06/thesis260x125.png" width="254" /></a> Imagine the best WordPress theme you have ever used and then triple the pleasure you enjoyed with it &#8211; that&#8217;s what <strong><a href="http://www.kavoir.com/go/thesis">Thesis</a></strong> can give you. </p>

<p>Whatever your niche is, if you are ever after a powerful, beautiful WordPress premium theme well balanced between functionality and customizability with best support from the author, this is the deal.</p>
<h3><strong>Epic WordPress Theme for Heroic Bloggers</strong></h3>
<p>Let&#8217;s sum up a list of what an epic WordPress theme should accomplish:</p>
<ol>
<li><strong><em>The design</em></strong> &#8211; of course, what more can we expect from a theme than the exterior beauty itself. If simplicity is the ultimate aesthetic sophistication, <strong><a href="http://www.kavoir.com/go/thesis">Thesis</a></strong> is the ultimate simplicity. </li>
<li><strong><em>The function</em></strong> &#8211; <strong><a href="http://www.kavoir.com/go/thesis">Thesis</a></strong> has all the built-in functions and little gimmicks you have seen across all WordPress themes combined. No more nor less, they are just what you need when you need them. </li>
<li><strong><em>The code</em></strong> &#8211; Forget it, you won&#8217;t need a single touch of the theme code to make any customization any more. <strong><a href="http://www.kavoir.com/go/thesis">Thesis</a></strong> comes with its own full-fledged magic panel that&#8217;s so powerful and so intuitive to use, your blog instantly becomes <strong>WordPress 4.0</strong> while the rest are still using the newly released <u>WP 2.8</u>. </li>
<li><strong><em>The support</em></strong> &#8211; Every theme buyer / owner will have his or her own login details at the official site to access the control panel and support desk as well as tools to resell the theme to their clients at a much discounted price. </li>
<li><strong><em>The audience</em></strong> &#8211; As undoubtedly the <strong>One WordPress Theme</strong>, <strong><a href="http://www.kavoir.com/go/thesis">Thesis</a></strong> has been adopted by hundreds of pioneer bloggers that are admired by tens of millions of readers and visitors per month. Looking for more? </li>
<li><strong><em>WordPress 2.8</em></strong>? &#8211; No, it&#8217;s <strong><a href="http://www.kavoir.com/go/thesis">WordPress Thesis</a></strong>. </li>
</ol>
<p>I&#8217;m personally a user of Thesis and have been extremely happy with it on a bunch of my blogs: <a href="http://www.vassis.com/">Virtual Assistants</a>, <a href="http://www.scrapingweb.com/press/">Database Press</a> and <a href="http://www.inductionheater.info/">Induction Heaters</a>.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2011/12/premium-magento-theme-avalanche-review.html" rel="bookmark" title="December 30, 2011">Premium Magento Theme &#8211; Avalanche (Review)</a></li>
<li><a href="http://www.kavoir.com/2009/02/wordpress-show-recent-posts-on-homepage-or-in-sidebar.html" rel="bookmark" title="February 27, 2009">WordPress: Show Recent Posts on Homepage or in Sidebar</a></li>
<li><a href="http://www.kavoir.com/2009/01/update-your-theme-to-wordpress-27-with-comments-threading-and-paging.html" rel="bookmark" title="January 15, 2009">Update your theme to WordPress 2.7 with Comments Threading and Paging</a></li>
<li><a href="http://www.kavoir.com/2011/12/cheap-psd-to-wordpress-theme-and-custom-plugins.html" rel="bookmark" title="December 23, 2011">Cheap PSD to WordPress Theme and Custom Plugins</a></li>
<li><a href="http://www.kavoir.com/2012/01/customize-wordpress-post-editor-css-styles.html" rel="bookmark" title="January 19, 2012">Customize WordPress Post Editor CSS Styles</a></li>
</ul>
<p><!-- Similar Posts took 3.068 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/06/best-damn-premium-wordpress-theme-for-professional-bloggers-thesis.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Transfer / Move WordPress Blog from One Domain to Another</title>
		<link>http://www.kavoir.com/2009/06/how-to-transfer-move-wordpress-blog-from-one-domain-to-another.html</link>
		<comments>http://www.kavoir.com/2009/06/how-to-transfer-move-wordpress-blog-from-one-domain-to-another.html#comments</comments>
		<pubDate>Mon, 15 Jun 2009 05:13:34 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[Domains]]></category>
		<category><![CDATA[SQL / MySQL Tips and Tutorials]]></category>
		<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/06/how-to-transfer-move-wordpress-blog-from-one-domain-to-another.html</guid>
		<description><![CDATA[Basically, the root URL of your blog which is your domain or subdomain is changing here. Though this doesn&#8217;t seem like a sane decision considering the huge SEO impact that might fall upon your site but with HTTP 301 permanent redirection, this can still make sense in some situations. Assume you won&#8217;t change the details [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Basically, the root URL of your blog which is your domain or subdomain is changing here. Though this doesn&#8217;t seem like a sane decision considering the huge SEO impact that might fall upon your site but with HTTP 301 permanent redirection, this can still make sense in some situations.</p>

<p>Assume you won&#8217;t change the details of the WordPress database connection, then there&#8217;d be no need to change or modify any PHP files at all. Just the database tables and related values concerning the URLs.</p>
<p>The idea is to find all table field values containing the string &#8216;<strong>olddomain.com</strong>&#8216; which is your old domain and change it to the new domain &#8216;<strong>newdomain.com</strong>&#8216;. Follow me:</p>
<ol>
<li>Copy all the WordPress PHP program files from the old directory to the new one which the new domain is pointed at. </li>
<li>Connect to WordPress database by phpMyAdmin or plain mysql command or whatever you are familiar with. But this example will only go with phpMyAdmin. </li>
<li>In phpMyAdmin, at the database level, click &#8216;<strong>Search</strong>&#8216; -&gt; &#8216;<strong>Select All</strong>&#8216; -&gt; Search for &#8216;<strong>olddomain.com</strong>&#8216; -&gt; Click &#8216;<strong>Go</strong>&#8216;. In most cases, there are just 2 tables that need to be modified accordingly: <strong>wp_posts</strong> and <strong>wp_options</strong>. </li>
<li>Click &#8216;Browse&#8217; to look for records with the string &#8216;<strong>olddomain.com</strong>&#8216; in them. </li>
<li>For &#8216;wp_options&#8217;, edit each record and find all occurrences of the old string &#8216;<strong>olddomain.com</strong>&#8216; and modify it to &#8216;<strong>newdomain.com</strong>&#8216;. Click &#8216;<strong>Go</strong>&#8216; to update. </li>
<li>For &#8216;wp_posts&#8217;, you can leave the <em>guid</em> field intact or update it with the new domain string but it doesn&#8217;t matter much. The hard part is to update the post content of all posts and replace all occurrences of the old domain string to the new one. You can get all this done by the following SQL query: <code>UPDATE wp_posts SET post_content = <strong>REPLACE</strong>(post_content, 'olddomain.com', 'newdomain.com')</code> </li>
</ol>
<p>Now you should be set, fire up your browser and navigate to your blog at the new domain and check everything out to see if it&#8217;s working properly.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/06/mysql-string-function-to-replace-substring-and-change-part-of-the-field-value.html" rel="bookmark" title="June 14, 2009">MySQL: String Function to Replace Substring and Change Part of the Field Value</a></li>
<li><a href="http://www.kavoir.com/2009/04/wordpress-503-service-temporarily-unavailable-when-posting-new-posts-or-modifying-existing-posts.html" rel="bookmark" title="April 22, 2009">WordPress: 503 Service Temporarily Unavailable when Posting New Posts or Modifying Existing Posts</a></li>
<li><a href="http://www.kavoir.com/2009/01/update-your-theme-to-wordpress-27-with-comments-threading-and-paging.html" rel="bookmark" title="January 15, 2009">Update your theme to WordPress 2.7 with Comments Threading and Paging</a></li>
<li><a href="http://www.kavoir.com/2009/02/wordpress-show-recent-posts-on-homepage-or-in-sidebar.html" rel="bookmark" title="February 27, 2009">WordPress: Show Recent Posts on Homepage or in Sidebar</a></li>
<li><a href="http://www.kavoir.com/2012/01/wordpress-display-ads-in-post-content-and-only-display-ads-in-old-posts.html" rel="bookmark" title="January 25, 2012">WordPress: Display Ads in Post Content and Only Display Ads in Old Posts</a></li>
</ul>
<p><!-- Similar Posts took 3.045 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/06/how-to-transfer-move-wordpress-blog-from-one-domain-to-another.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>MySQL: String Function to Replace Substring and Change Part of the Field Value</title>
		<link>http://www.kavoir.com/2009/06/mysql-string-function-to-replace-substring-and-change-part-of-the-field-value.html</link>
		<comments>http://www.kavoir.com/2009/06/mysql-string-function-to-replace-substring-and-change-part-of-the-field-value.html#comments</comments>
		<pubDate>Sun, 14 Jun 2009 06:09:44 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[SQL / MySQL Tips and Tutorials]]></category>
		<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/06/mysql-string-function-to-replace-substring-and-change-part-of-the-field-value.html</guid>
		<description><![CDATA[A typical case of replacing a part of the string to another substring in a database table is switching between site domains or URLs, such as when you want to transfer your WordPress blog from one domain to another. You have to change all values containing the original site URL to the new one in [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>A typical case of replacing a part of the string to another substring in a database table is switching between site domains or URLs, such as when you want to transfer your WordPress blog from one domain to another. You have to change all values containing the original site URL to the new one in the <strong>wp_options</strong> and <strong>wp_posts</strong> table.</p>

<p>For example, when you transfer from olddomain.com to newdomain.com, you will better perform the following SQL query in the wordpress table wp_posts:</p>
<p> <code>UPDATE wp_posts SET guid = <strong>REPLACE</strong>(guid, 'olddomain.com', 'newdomain.com')</code>
<p>And the MySQL function <strong>REPLACE</strong>() makes sure all substrings &#8216;olddomain.com&#8217; in the value of the <u>guid</u> field will be replaced by &#8216;newdomain.com&#8217;.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/06/how-to-transfer-move-wordpress-blog-from-one-domain-to-another.html" rel="bookmark" title="June 15, 2009">How to Transfer / Move WordPress Blog from One Domain to Another</a></li>
<li><a href="http://www.kavoir.com/2009/05/mysql-replace-substring-with-another-string-the-mysql-string-replace-function.html" rel="bookmark" title="May 16, 2009">MySQL: Replace Substring with Another String &ndash; the MySQL String Replace Function</a></li>
<li><a href="http://www.kavoir.com/2009/05/mysql-update-multiple-rows-with-one-single-query.html" rel="bookmark" title="May 17, 2009">MySQL: Update Multiple Rows or Records with One Single Query</a></li>
<li><a href="http://www.kavoir.com/2009/04/mysql-add-statistics-column-for-the-number-count-of-records-from-another-table.html" rel="bookmark" title="April 25, 2009">MySQL: Add Statistics Column for the Number Count of Records from Another Table</a></li>
<li><a href="http://www.kavoir.com/2009/05/mysql-insert-if-doesnt-exist-otherwise-update-the-existing-row.html" rel="bookmark" title="May 2, 2009">MySQL: Insert if doesn&rsquo;t exist otherwise update the existing row</a></li>
</ul>
<p><!-- Similar Posts took 2.820 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/06/mysql-string-function-to-replace-substring-and-change-part-of-the-field-value.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: 503 Service Temporarily Unavailable when Posting New Posts or Modifying Existing Posts</title>
		<link>http://www.kavoir.com/2009/04/wordpress-503-service-temporarily-unavailable-when-posting-new-posts-or-modifying-existing-posts.html</link>
		<comments>http://www.kavoir.com/2009/04/wordpress-503-service-temporarily-unavailable-when-posting-new-posts-or-modifying-existing-posts.html#comments</comments>
		<pubDate>Wed, 22 Apr 2009 03:49:03 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[Hilariously Funny or Creepy]]></category>
		<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/04/wordpress-503-service-temporarily-unavailable-when-posting-new-posts-or-modifying-existing-posts.html</guid>
		<description><![CDATA[It’s weird that I encountered this problem that when you post new posts in WordPress, there’s a possibility that it may run into a 503 Service Temporarily Unavailable error without publishing the article at all. I did some split tests and in this post, the string ‘fopen’ which is a php function seems to be [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>It’s weird that I encountered this problem that when you post new posts in WordPress, there’s a possibility that it may run into a 503 Service Temporarily Unavailable error without publishing the article at all.</p>

<p>I did some split tests and in <a href="http://www.kavoir.com/2009/04/php-read-from-keyboard-get-user-input-from-keyboard-console-by-typing.html">this post</a>, the string ‘<span style="text-decoration: underline;">fopen</span>’ which is a php function seems to be the culprit that prevents the post being posted, constantly causing the wordpress to make 503 service temporarily unavailable errors when you hit <strong>Publish</strong> or <strong>Update</strong>.</p>
<p>One workaround is to do the split tests on your posts and see which part of it is causing the problem so that you can change it to something else until WordPress accepts.</p>
<p>Haven’t notified the wordpress team yet, don’t know if they have received other complaints about this bug (or is it) or not, I think I’m just too lazy to send the report. Whatever… as long as you can get things done, doesn’t really matter if there’s a glitch.</p>
<h3>Problem Solved</h3>
<p><strong style="color: #008000;">Update:</strong> Turns out this error is not alone in WordPress and not a bug of it at all. Some of the administration tasks of other CMS software such as posting posts with PHP code in them and uploading stuff would also trigger a module in Apache called <strong>Mod_security</strong> to be over sensitive. The solution is to disable the module (not recommended), or put a simple line into the .htaccess file of the site to tell Mod_security that:</p>
<ol>
<li>All requests from this particular IP address is absolved from being inspected and monitored by Mod_security module -
<pre><code>SetEnvIfNoCase Remote_Addr ^123\.123\.123\.123$ MODSEC_ENABLE=Off</code></pre>
</li>
<li>All requests made to this specific PHP script is absolved of being checked for malicious attempts -
<pre><code>SetEnvIfNoCase Request_URI ^/wp-admin/async-upload\.php$ MODSEC_ENABLE=Off</code></pre>
</li>
</ol>
<p>With WordPress, the potentially problematic scripts I know include:</p>
<ol>
<li>/wp-admin/async-upload.php</li>
<li>/wp-admin/post.php</li>
<li>/xmlrpc.php</li>
</ol>
<p>So depending on the error you are getting from the task you are performing, insert one or two lines into the .htaccess to prevent any unnecessary 503 errors. Read more about this issue at <a href="http://wiki.dreamhost.com/Mod_security">DreamHost wiki</a>.<br />
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2011/12/ifmoduleifmodule-in-htaccess.html" rel="bookmark" title="December 2, 2011">&lt;IfModule&gt;&lt;/IfModule&gt; in .htaccess</a></li>
<li><a href="http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html" rel="bookmark" title="December 25, 2011">Redirect 404 Error to Home Page</a></li>
<li><a href="http://www.kavoir.com/2009/06/how-to-transfer-move-wordpress-blog-from-one-domain-to-another.html" rel="bookmark" title="June 15, 2009">How to Transfer / Move WordPress Blog from One Domain to Another</a></li>
<li><a href="http://www.kavoir.com/2009/04/mysql-add-statistics-column-for-the-number-count-of-records-from-another-table.html" rel="bookmark" title="April 25, 2009">MySQL: Add Statistics Column for the Number Count of Records from Another Table</a></li>
<li><a href="http://www.kavoir.com/2010/02/use-php-to-handle-all-incoming-url-requests-in-a-seo-friendly-manner.html" rel="bookmark" title="February 23, 2010">Use PHP to handle all incoming URL requests in a SEO friendly manner</a></li>
</ul>
<p><!-- Similar Posts took 3.370 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/04/wordpress-503-service-temporarily-unavailable-when-posting-new-posts-or-modifying-existing-posts.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>PHP: Generating Summary Abstract from A Text or HTML String, Limiting by Words or Sentences</title>
		<link>http://www.kavoir.com/2009/02/php-generating-summary-abstract-from-a-text-or-html-string-limiting-by-words-or-sentences.html</link>
		<comments>http://www.kavoir.com/2009/02/php-generating-summary-abstract-from-a-text-or-html-string-limiting-by-words-or-sentences.html#comments</comments>
		<pubDate>Sat, 28 Feb 2009 06:53:38 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[PHP Tips & Tutorials]]></category>
		<category><![CDATA[Regular Expression Tips & Tutorials]]></category>
		<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/02/php-generating-summary-abstract-from-a-text-or-html-string-limiting-by-words-or-sentences.html</guid>
		<description><![CDATA[On index or transitional pages, such as homepage or category pages of WordPress, you don’t want to show the full texts of your deep content pages yet but just a content snippet of the first few sentences or words as a summary with a read more link to the actual article. This is generally good [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>On index or transitional pages, such as homepage or category pages of WordPress, you don’t want to show the full texts of your deep content pages yet but just a content snippet of the first few sentences or words as a summary with a read more link to the actual article.</p>

<p>This is generally good in terms of SEO as it reduces <strong>duplicate content</strong> on your site and increases <strong>page views</strong>. With WordPress you can simply achieve this by using a plugin named <a href="http://www.thunderguy.com/semicolon/wordpress/evermore-wordpress-plugin/">Evermore</a>. However, with a home made CMS to select and display content abstracts, you will have to code a little bit on your own.</p>
<p>While you may be better off doing this with a plain SQL which I’m not an expert in, I’ll let in a little trick of PHP to accomplish the same task here.</p>
<h5>Full HTML Text</h5>
<p> <code>$text = &lt;&lt;&lt;TEXT    <br />I wrote a <strong>&lt;a href=&quot;#&quot;&gt;</strong>blog post<strong>&lt;/a&gt;</strong> yesterday about Chinese web design fonts. What did you think? It appeared that many are very interested. I guess it's the language barriers and cultural differences that make the westerners eager to know more about us. All right then, let me write more about that and maybe start a <strong>&lt;strong&gt;</strong>brand new domain<strong>&lt;/strong&gt;</strong> for it. Stay tuned!     <br />TEXT;</code><br />
<h5>The Problem – select first sentences</h5>
<p>Select and display the <strong>first 3 sentences</strong> (max) of the full HTML text above.</p>
<h5>The Solution</h5>
<pre><code>&lt;?php
preg_match('/^([^.!?]*[\.!?]+){0,<strong>3</strong>}/', <strong>strip_tags</strong>($text), $abstract);
echo $abstract[0];
?&gt;</code></pre>
<p>Output:</p>
<p><code>I wrote a blog post yesterday about Chinese web design fonts. What did you think? It appeared that many are very interested.</code> </p>
<p>Stripping out HTML tags for the summary is to prevent it from producing invalid HTML snippets as it’s possible that the process slices HTML elements in half, leaving just part of the tag or only the beginning tag there. However, you can always preserve tags in the abstract, with a slightly more sophisticated algorithm of course.</p>
<h5>Another Problem – select first words</h5>
<p>You want to distill an abstract of the <strong>first 30 words</strong> instead of sentences concluded by period punctuations such as ‘.’, ‘!’ and ‘?’.</p>
<h5>The Solution</h5>
<p>Simply modify the regular expression to:</p>
<p><code>/^([^.!?<strong>\s</strong>]*[\.!?<strong>\s</strong>]+){0,<strong>30</strong>}/</code> </p>
<p>Output:</p>
<p><code>I wrote a blog post yesterday about Chinese web design fonts. What did you think? It appeared that many are very interested. I guess it's the language barriers and cultural</code> </p>
<p>There&#8217;s an incomplete sentence so you may want to add a trailing of &#8216;&#8230;&#8217; at the end to denote the abstract nature.</p>
<p>In regular expressions, \s stands for all sorts of white spaces including <strong>single-byte space</strong>, <strong>tab</strong> and <strong>new line</strong>.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2010/02/php-allow-specific-html-tags-in-text-input-controls-of-html-forms-textarea-input-typetext.html" rel="bookmark" title="February 15, 2010">PHP: Allow Specific HTML Tags in Text Input Controls of HTML Forms, &lt;textarea&gt;, &lt;input type=&rdquo;text&rdquo; /&gt;</a></li>
<li><a href="http://www.kavoir.com/2009/03/css-align-right-make-text-or-image-aligned-right-in-html-page.html" rel="bookmark" title="March 2, 2009">CSS: Align Right – Make text or image aligned right in HTML page</a></li>
<li><a href="http://www.kavoir.com/2007/03/spin-your-first-web-page.html" rel="bookmark" title="March 29, 2007">Create your first web page &#8211; Learn XHTML and Make Web pages</a></li>
<li><a href="http://www.kavoir.com/2009/08/html-tags-design-for-template-theme-creation.html" rel="bookmark" title="August 27, 2009">HTML Tags Design for Template / Theme Creation</a></li>
<li><a href="http://www.kavoir.com/2009/08/how-to-display-html-code-on-a-web-page.html" rel="bookmark" title="August 4, 2009">How to display HTML code on a web page?</a></li>
</ul>
<p><!-- Similar Posts took 3.159 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/02/php-generating-summary-abstract-from-a-text-or-html-string-limiting-by-words-or-sentences.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress: Show Recent Posts on Homepage or in Sidebar</title>
		<link>http://www.kavoir.com/2009/02/wordpress-show-recent-posts-on-homepage-or-in-sidebar.html</link>
		<comments>http://www.kavoir.com/2009/02/wordpress-show-recent-posts-on-homepage-or-in-sidebar.html#comments</comments>
		<pubDate>Fri, 27 Feb 2009 13:44:51 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/02/wordpress-show-recent-posts-on-homepage-or-in-sidebar.html</guid>
		<description><![CDATA[There used to be a plugin to grab and display most recent blog posts from WordPress database. Well, while you still can use it to get recent posts and them shown on homepage or in sidebar, you can now conveniently add a recent post widget from the WordPress control panel =&#62; Appearance =&#62; Widgets if [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>There used to be a plugin to grab and display most recent blog posts from WordPress database. Well, while you still can use it to get recent posts and them shown on homepage or in sidebar, you can now conveniently add a recent post widget from the WordPress control panel =&gt; Appearance =&gt; Widgets if your current theme is widget ready.</p>

<h5>Use a Recent Posts Plugin</h5>
<p>Lots of <a href="http://wordpress.org/extend/plugins/recent-posts/">them</a>!</p>
<h5>Add Recent Posts Widget</h5>
<p>Log in to your WordPress control panel and head to <strong>Appearance</strong> and on to <strong>Widgets</strong>, there’s this <strong>Recent Posts</strong> widget that you can instantly add to your theme. Make sure the theme you are using is enabled for widgets.</p>
<h5>Rely on WordPress Template Tags Function</h5>
<p>What you need is the WP <a href="http://codex.wordpress.org/Template_Tags/wp_get_archives">template function</a> <strong>wp_get_archives()</strong>. For instance, to show the latest 10 posts in sidebar, just insert the following line of PHP somewhere in <u>sidebar.php</u>:</p>
<pre><code>&lt;?php wp_get_archives('type=postbypost&amp;limit=10'); ?&gt;</code></pre>
<p>Or in <a href="http://www.kavoir.com">kavoir.com’s</a> case, I added both the lists of 10 <strong>most recent posts</strong> as well as the 5 <strong>most recent comments</strong> in <u>footer.php</u>:</p>
<pre><code>&lt;ul class=&quot;recent-posts&quot;&gt;
&lt;?php <strong>wp_get_archives</strong>('type=postbypost&amp;limit=10'); ?&gt;
&lt;/ul&gt;
&lt;ul class=&quot;recent-comments&quot;&gt;
&lt;?php if (function_exists('mdv_recent_comments')) {<strong>mdv_recent_comments</strong>(5);} ?&gt;
&lt;/ul&gt;</code></pre>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/01/update-your-theme-to-wordpress-27-with-comments-threading-and-paging.html" rel="bookmark" title="January 15, 2009">Update your theme to WordPress 2.7 with Comments Threading and Paging</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-damn-premium-wordpress-theme-for-professional-bloggers-thesis.html" rel="bookmark" title="June 15, 2009">Best Damn Premium WordPress Theme for Professional Blogs: THESIS</a></li>
<li><a href="http://www.kavoir.com/2009/06/yet-another-free-joomla-template-including-original-psd-html-css-and-fonts.html" rel="bookmark" title="June 16, 2009">Yet Another Joomla Template Including Original PSD, HTML + CSS and Fonts</a></li>
<li><a href="http://www.kavoir.com/2007/04/blogger-wordpress-and-movabletype-compared.html" rel="bookmark" title="April 3, 2007">Blogger, WordPress and Movable Type Compared</a></li>
<li><a href="http://www.kavoir.com/2009/07/wordpress-blog-goes-blank-after-editing-and-updating-the-theme-files.html" rel="bookmark" title="July 21, 2009">WordPress blog goes blank after editing and updating the theme files</a></li>
</ul>
<p><!-- Similar Posts took 4.184 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/02/wordpress-show-recent-posts-on-homepage-or-in-sidebar.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Update your theme to WordPress 2.7 with Comments Threading and Paging</title>
		<link>http://www.kavoir.com/2009/01/update-your-theme-to-wordpress-27-with-comments-threading-and-paging.html</link>
		<comments>http://www.kavoir.com/2009/01/update-your-theme-to-wordpress-27-with-comments-threading-and-paging.html#comments</comments>
		<pubDate>Thu, 15 Jan 2009 09:07:16 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/01/update-your-theme-to-wordpress-27-with-comments-threading-and-paging.html</guid>
		<description><![CDATA[Well dismiss me if I’m a little too late for this but just now I encountered this client who needs to update a wordpress theme, the comments section or comments.php to be precise, to accommodate some of the new features introduced in WordPress 2.7, comments threading and comments paging. The easy way – for new [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Well dismiss me if I’m a little too late for this but just now I encountered this client who needs to update a wordpress theme, the comments section or <strong>comments.php</strong> to be precise, to accommodate some of the new features introduced in <a href="http://www.wordpress.org/latest.zip">WordPress 2.7</a>, <strong>comments threading</strong> and <strong>comments paging</strong>.<span id="more-394"></span></p>
<h4>The easy way – for new themes</h4>
<p>Just go <a href="http://www.wordpress.org/latest.zip">download</a> a distribution of wordpress 2.7, and unzip the package (install it, probably), click your way into wp-content/themes/default (the <strong>Default theme</strong>) and open comments.php with your favorite dev editor.</p>
<p>There’s the code you need to implement comments threading and comments paging in wordpress 2.7 in case you need to create new themes dedicated for version 2.7. Also, you have to explicitly enable threaded comments in wordpress administration panel: <strong>Settings</strong> –&gt; <strong>Discussion</strong> –&gt; <strong>Other comment settings</strong> –&gt; <strong>Enable threaded (nested) comments</strong>. It’s disabled by default.</p>
<h4>Update old themes to accommodate the threading feature</h4>
<p>For old wordpress themes, if yours or your client’s blog has already updated to wordpress 2.7 (has to, because this change may make your theme backward-incompatible), to integrate the comments threading and paging, you need to follow <a href="http://will.ph/wordpress-27-comment-threading-howto/">these steps by Will</a> to edit 2 files in your theme, <strong>header.php</strong> and <strong>comments.php</strong>.</p>
<p>This tiny tutorial is written and human friendly, you won’t be bitten. ;)<br />
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/06/best-damn-premium-wordpress-theme-for-professional-bloggers-thesis.html" rel="bookmark" title="June 15, 2009">Best Damn Premium WordPress Theme for Professional Blogs: THESIS</a></li>
<li><a href="http://www.kavoir.com/2009/02/wordpress-show-recent-posts-on-homepage-or-in-sidebar.html" rel="bookmark" title="February 27, 2009">WordPress: Show Recent Posts on Homepage or in Sidebar</a></li>
<li><a href="http://www.kavoir.com/2011/12/cheap-psd-to-wordpress-theme-and-custom-plugins.html" rel="bookmark" title="December 23, 2011">Cheap PSD to WordPress Theme and Custom Plugins</a></li>
<li><a href="http://www.kavoir.com/2009/07/wordpress-blog-goes-blank-after-editing-and-updating-the-theme-files.html" rel="bookmark" title="July 21, 2009">WordPress blog goes blank after editing and updating the theme files</a></li>
<li><a href="http://www.kavoir.com/2012/01/customize-wordpress-post-editor-css-styles.html" rel="bookmark" title="January 19, 2012">Customize WordPress Post Editor CSS Styles</a></li>
</ul>
<p><!-- Similar Posts took 2.800 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/01/update-your-theme-to-wordpress-27-with-comments-threading-and-paging.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

