<?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>Jaymin Patel &#187; Wordpress</title>
	<atom:link href="http://www.jayminkapish.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jayminkapish.com</link>
	<description>Wordpress Developer, New York</description>
	<lastBuildDate>Wed, 09 Nov 2011 15:33:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
		<item>
		<title>WordPress Instant Search Plugin</title>
		<link>http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/</link>
		<comments>http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 20:09:58 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Instant Search Plugin]]></category>

		<guid isPermaLink="false">http://www.jayminkapish.com/?p=294</guid>
		<description><![CDATA[Wordpress Instant Search Plugin looks for matched tags and categories on your blog and suggest to readers which improves search experiece.]]></description>
			<content:encoded><![CDATA[<div class="inline-block right"><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=187682461287759&amp;xfbml=1"></script><fb:like href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" send="false" layout="box_count" width="50" show_faces="false" font=""></fb:like>
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="tall"></g:plusone>
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="jayminkapish">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><br />
<hr /><a href="http://wordpress.org/extend/plugins/wp-instant-search/" title="Download WordPress Instant Search Plugin">Download from WordPress.org</a><br />
<hr /><a href="http://www.maangchi.com/#s" title="Wordpress Instant Search Plugin Demo">See it live in action (Demo)</a></div>
<p>WordPress Instant Search Plugin looks for matched tags and categories on your blog and offers suggestions to readers which improves search experiece. Since WordPress searches into tags and categories for entered text, this plugin will let readers choose correct tag or category that match what they are looking for on your blog and WordPress will return very accurate results.</p>
<h5>Requirements</h5>
<ol>
<li>WordPress 2.9.2 Minimum</li>
<li>Search Template in your theme with input element id &#8220;s&#8221;. Example: &lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;s&quot; id=&quot;s&quot;&gt;</li>
<li>Make sure wp_head action hook is added within the &lt;head&gt;&lt;/head&gt; section of your active theme header.php template. If does not exist, add it right before &lt;/head&gt; in your active theme header.php template. Should look like this</li>
</ol>
<p><code>&lt;?php wp_head(); ?&gt;</code></p>
<h5>How Plugin Works</h5>
<ol>
<li>&lt;?php wp_head(); ?&gt; in your active theme header.php template will load required JavaScript files.</li>
<li>Plugin hooks in jQuery, jQuery Suggest and Instant Search JavaScript files within the &lt;head&gt;&lt;/head&gt; section of your active theme header.php template</li>
<li>As reader starts typing into Search box, jQuery triggers AJAX call to plugin</li>
<li>Plugin suggests tags and categories starting with entered text</li>
<li>Reader can select the suggested terms (tags and categories) to fill out the search box and hit Enter key</li>
</ol>
<h5>What&#8217;s coming next</h5>
<ol>
<li>Configuration Screen with option to load jQuery or not. You might already have jQuery loaded from Google or somewhere else, so you can check this option off if you do not want two jQuery loaded on the page.</li>
<li>Input boxes on Configuration Screen to change CSS (including properties like color, bgcolor of selected text or classes itself)</li>
<li>Options to expand auto suggest to Pages &#038; Posts Titles and Custom Taxonomies</li>
</ol>
<h5>Tweets</h5>
<ol>
<li>WP Instant Search &#8211; A plugin developed by New York Times blogs developer, <a href="http://twitter.com/jayminkapish">@jayminkapish</a> <a href="http://bit.ly/aasA1H">http://bit.ly/aasA1H</a> &#8212; <a href="http://twitter.com/silencematters">Jeremy Zilar</a> <em>(Blogs Specialist at The New York Times)</em></li>
<li>New WordPress plugin by <a href="http://twitter.com/nytimes">@nytimes</a> developer <a href="http://twitter.com/jayminkapish">@jayminkapish</a>: WP Instant Search <a href="http://db.ly/vy">http://db.ly/vy</a> &#8212; <a href="http://twitter.com/danielbachhuber">Daniel Bachhuber</a></li>
</ol>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/" title="Parent Child Theme &#8211; Easiest Way!">Parent Child Theme &#8211; Easiest Way! (0)</a></li><li><a href="http://www.jayminkapish.com/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (9)</a></li><li><a href="http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/" title="Comments Pagination &#8211; Wordpress &#8211; Bug Fixed!">Comments Pagination &#8211; Wordpress &#8211; Bug Fixed! (22)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Secure Your WordPress Installation</title>
		<link>http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/</link>
		<comments>http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 21:50:28 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[securing-wordpress]]></category>

		<guid isPermaLink="false">http://www.jayminkapish.com/?p=199</guid>
		<description><![CDATA[How you can secure your wordpress installation]]></description>
			<content:encoded><![CDATA[<p>Very nice presentation @ Wordcamp NYC this year on WordPress Security.</p>
<p>Slides: <a href="http://www.slideshare.net/williamsba/wordpress-security-updated">http://www.slideshare.net/williamsba/wordpress-security-updated</a></p>
<p>Video on Vimeo: <a href="http://www.vimeo.com/7685380">http://www.vimeo.com/7685380</a></p>
<p>Also upgrade your blog as soon as new version comes out.</p>
<p>Can we say now <strong>&#8220;Hack it if you can!&#8221;</strong>?</p>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" title="Wordpress Instant Search Plugin">Wordpress Instant Search Plugin (1)</a></li><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/" title="Parent Child Theme &#8211; Easiest Way!">Parent Child Theme &#8211; Easiest Way! (0)</a></li><li><a href="http://www.jayminkapish.com/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (9)</a></li><li><a href="http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/" title="Comments Pagination &#8211; Wordpress &#8211; Bug Fixed!">Comments Pagination &#8211; Wordpress &#8211; Bug Fixed! (22)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it</title>
		<link>http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/</link>
		<comments>http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 19:37:40 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress MU 2.8.4]]></category>
		<category><![CDATA[Wordpress MU 2.8.4a]]></category>
		<category><![CDATA[Wordpress MU Site Upgrade]]></category>
		<category><![CDATA[wordpress-mu]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=180</guid>
		<description><![CDATA[Wordpress MU - Site Upgrade dies with message "Your server may not be able to connect to blogs running on it. Error message: 200: Operation timed out after 3 seconds with 0 bytes received"]]></description>
			<content:encoded><![CDATA[<p>I was upgrading mu site to 2.8.4. I went to Site Admin -> Upgrade and hit <strong>Upgrade Site</strong> button. It worked for first 25 &#8211; 30 blogs and then died with message</p>
<div class="phpcode"><code>Warning! Problem upgrading . Your server may not be able to connect to blogs running on it.<br />
Error message: 200: Operation timed out after 3 seconds with 0 bytes received<br />
</code></div>
<p><strong>This is what I did to fix my problem</strong></p>
<p>I opened wp-admin/wpmu-upgrade-site.php and wp-includes/http.php</p>
<div class="phpcode"><code>function &#038;_getTransport( $args = array() ) {</code></div>
<p>on line number 94 of wp-includes/http.php, wordpress tests different http request methods exist on your server during upgrade.</p>
<p>1st test was the culprit on my server which uses http_request method built into PHP. I guess this method was taking long time to resolve DNS and so it was timing out.</p>
<div class="phpcode"><code>if ( true === WP_Http_ExtHttp::test($args) ) {<br />
				$working_transport['exthttp'] = new WP_Http_ExtHttp();<br />
				$blocking_transport[] = &#038;$working_transport['exthttp'];<br />
			}</code></div>
<p>I did comment out this test and let WordPress start with next one.</p>
<div class="phpcode"><code>if ( true === WP_Http_Curl::test($args) ) {<br />
				$working_transport['curl'] = new WP_Http_Curl();<br />
				$blocking_transport[] = &#038;$working_transport['curl'];<br />
			}</code></div>
<p>And guess what? All 150 blogs were updated in a few minutes without any problem.</p>
<p><em>If even curl does not work for you, you can comment it out and move on to the next until WP upgrade site works for you.</em></p>
<p>Good Luck!</p>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/" title="Comments Pagination &#8211; Wordpress &#8211; Bug Fixed!">Comments Pagination &#8211; Wordpress &#8211; Bug Fixed! (22)</a></li><li><a href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" title="Wordpress Instant Search Plugin">Wordpress Instant Search Plugin (1)</a></li><li><a href="http://www.jayminkapish.com/2009/12/11/wordpress-mu-get-posts-pages-from-different-blogs-under-same-installation/" title="Wordpress MU: get posts/pages from different blogs under same installation">Wordpress MU: get posts/pages from different blogs under same installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/" title="Parent Child Theme &#8211; Easiest Way!">Parent Child Theme &#8211; Easiest Way! (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Parent Child Theme &#8211; Easiest Way!</title>
		<link>http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/</link>
		<comments>http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 01:46:10 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[inherited themes]]></category>
		<category><![CDATA[parent child themes]]></category>
		<category><![CDATA[Wordpress MU 2.6.5]]></category>
		<category><![CDATA[wordpress parent child theme]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=114</guid>
		<description><![CDATA[This solution will work for you if you want your child theme have fewer templates and if any template is missing, it should not break your blog but should go to parent theme and load it.]]></description>
			<content:encoded><![CDATA[<p>This solution will work for you if you want your child theme have fewer templates and if any template is missing, it should not break your blog but should go to parent theme and load it.</p>
<p>And a few important things to set,<br />
1) parent theme folder name<br />
2) child theme folder name<br />
3) Template set in child theme style.css must match parent theme folder name</p>
<p>Because child theme name and Template set in child theme style.css are stored in options table.<br />
<span id="more-114"></span><br />
So I started looking into wordpress core files</p>
<div class="phpcode"><code> wp-includes/template-loader.php<br />
wp-includes/theme.php<br />
</code></div>
<p>These files load templates from active theme on your blog.</p>
<p><strong>What parent theme must have</strong><br />
Your parent theme must have all template files necessary for any typical wordpress theme and parent <strong>style.css</strong> must have these lines</p>
<div class="phpcode"><code>/*<br />
Theme Name: Parent Theme<br />
Theme URI: Your Blog URL<br />
Description: My Parent Theme<br />
Version: 0.1<br />
Author: Your Name<br />
Author URI: mailto:your_email_goes_here<br />
*/<br />
</code></div>
<p><strong>What child theme must have</strong></p>
<p><strong>style.css</strong> must have these lines where <strong>my_child_theme</strong> must be the name of child theme folder and <strong>my_parent_theme</strong> must be the name of parent theme folder.</p>
<div class="phpcode"><code>/*<br />
Theme Name: my_child_theme<br />
Theme URI: Your Blog URL<br />
Description: My Child Theme<br />
Version: 0.1<br />
Author: Your Name<br />
Author URI: mailto:your_email_goes_here<br />
Template: my_parent_theme<br />
*/<br />
</code></div>
<p>and <strong>screenshot.png</strong> and <strong>functions.php</strong></p>
<p>functions.php should add_filter to &#8216;home_template&#8217;</p>
<div class="phpcode"><code>add_filter('home_template', 'load_child_home_template');<br />
</code></div>
<p>I am going to take home/index template as an example here. Lets say child theme is having these files. What does this mean? This means you want index.php/home.php loaded from child theme and everything else should come from parent theme.<br />
1) style.css<br />
2) screenshot.png<br />
3) index.php or home.php<br />
4) functions.php</p>
<p>wp-includes/theme.php has</p>
<div class="phpcode"><code>function get_home_template() {<br />
$template = '';<br />
if ( file_exists(TEMPLATEPATH . "/home.php") )<br />
$template = TEMPLATEPATH . "/home.php";<br />
elseif ( file_exists(TEMPLATEPATH . "/index.php") )<br />
$template = TEMPLATEPATH . "/index.php";<br />
return apply_filters('home_template', $template);<br />
}</p>
<p></code></div>
<p>WordPress applies filters at the end and we are going to take advantage of it.</p>
<p>child theme functions.php must have this function as well</p>
<div class="phpcode"><code>function load_child_home_template($template) {<br />
if(empty($template)) {<br />
$template = 'index.php'; /* if you have home.php, replace index.php with home.php */<br />
}<br />
return check_child_template($template);<br />
}<br />
function check_child_template($template) {<br />
$template_file_name = basename($template);<br />
$template_option = get_option('template'); /* has 'my_parent_theme' */<br />
$current_theme_option = get_option('current_theme'); /* has 'my_child_theme' */<br />
$theme_root = get_theme_root();<br />
$child_template_root = $theme_root . '/' . $current_theme_option;<br />
$child_template = $child_template_root . '/' . $template_file_name;<br />
$parent_template_root = $theme_root . '/' . $template_option;<br />
$parent_template = $parent_template_root . '/' . $template_file_name;<br />
if(file_exists($child_template)) {<br />
return $child_template; /* if child theme has index.php/home.php, load it */<br />
}<br />
else if(file_exists($parent_template)) { /* if child is missing index.php/home.php, load index.php/home.php from parent */<br />
return $parent_template;<br />
}<br />
return $template;<br />
}</p>
<p></code></div>
<p>You may want to put some html comments in parent theme index.php/home.php and child theme index.php/home.php to debug which theme is serving home page by looking into source code.</p>
<p>More on themes on <a href="http://codex.wordpress.org/Using_Themes#Creating_Themes">WordPress Codex</a></p>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" title="Wordpress Instant Search Plugin">Wordpress Instant Search Plugin (1)</a></li><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (9)</a></li><li><a href="http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/" title="Comments Pagination &#8211; Wordpress &#8211; Bug Fixed!">Comments Pagination &#8211; Wordpress &#8211; Bug Fixed! (22)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSON and WordPress</title>
		<link>http://www.jayminkapish.com/2009/03/17/json-and-wordpress/</link>
		<comments>http://www.jayminkapish.com/2009/03/17/json-and-wordpress/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 20:54:46 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[decode-json-wordpress]]></category>
		<category><![CDATA[encode-json-wordpress]]></category>
		<category><![CDATA[json-wordpress]]></category>
		<category><![CDATA[wo]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=52</guid>
		<description><![CDATA[encode and decode JSON within wordpress using wordpress.]]></description>
			<content:encoded><![CDATA[<p>If you want to encode/decode JSON within/using wordpress, you can take a look at
<div class="inline-block right"><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=187682461287759&amp;xfbml=1"></script><fb:like href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" send="false" layout="box_count" width="50" show_faces="false" font=""></fb:like>
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="tall"></g:plusone>
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="jayminkapish">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<p>/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php</p>
<p>This file has Moxiecode_JSON class which can do that for you.<br />
<span id="more-52"></span></p>
<p><strong>Sample code</strong></p>
<div class="phpcode">
<code>require_once(ABSPATH."/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php");<br />
$json_obj = new Moxiecode_JSON();<br />
/* encode */<br />
$json = $json_obj-&gt;encode(array("key1"=&gt;"value1","key2"=&gt;"value2"));<br />
//$json should have {"key1":"value1","key2":"value2"}<br />
/* decode */<br />
$json_array = $json_obj-&gt;decode($json);<br />
//$json_array will be an array("key1"=&gt;"value1","key2"=&gt;"value2")<br />
</code></div>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" title="Wordpress Instant Search Plugin">Wordpress Instant Search Plugin (1)</a></li><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/" title="Parent Child Theme &#8211; Easiest Way!">Parent Child Theme &#8211; Easiest Way! (0)</a></li><li><a href="http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/" title="Comments Pagination &#8211; Wordpress &#8211; Bug Fixed!">Comments Pagination &#8211; Wordpress &#8211; Bug Fixed! (22)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/03/17/json-and-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Comments Pagination &#8211; WordPress &#8211; Bug Fixed!</title>
		<link>http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/</link>
		<comments>http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 20:09:09 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code-snippet]]></category>
		<category><![CDATA[comments-pagination]]></category>
		<category><![CDATA[wordpress 2.3]]></category>
		<category><![CDATA[wordpress blog]]></category>
		<category><![CDATA[wordpress-2.5]]></category>
		<category><![CDATA[wordpress-mu]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=28</guid>
		<description><![CDATA[Comment pagination for wordpress 2.5 or MU. You can grab the code and create a plugin if you want to. Share your feedback via comments.]]></description>
			<content:encoded><![CDATA[<p>Actually, I did not create a plugin but I wrote a code snippet that did this job for me.</p>
<p><strong><em>Add these lines to comments.php in your active theme folder.</em></strong></p>
<div class="phpcode">
<code>$comments_per_page = 5;<br />
global $post;<br />
$total = $post->comment_count;<br />
if($total &gt; 0) {<br />
$apage=isset($_GET['apage']) ? intval($_GET['apage']) : 1;<br />
$comments=array_slice($comments, intval(($apage-1)*$comments_per_page),intval($comments_per_page));<br />
}<br />
</code>
</div>
<p><strong><em>Insert this code right after <code>if ($comments) </code>statement</em></strong></p>
<div class="phpcode">
<code>$commentCounter = (($apage-1)*$comments_per_page);<br />
$from_page = $commentCounter+1;<br />
if($apage == 1) {<br />
$to_page = $comments_per_page;<br />
if($total &lt; $to_page) {<br />
$to_page = $total;<br />
}<br />
}<br />
else {<br />
$to_page = $from_page + $comments_per_page - 1;<br />
if($to_page &gt; $total) {<br />
$to_page = $total;<br />
}<br />
}<br />
</code>
</div>
<p><strong><em>Insert this line where you want page links to appear in comments.php.</em></strong></p>
<div class="phpcode">
<code>&lt;?php echo paginate_links( array(<br />
'base' =&gt; add_query_arg( 'apage', '%#%#comments' ),<br />
'format' =&gt; '',<br />
'total' =&gt; ceil($total / intval($comments_per_page)),<br />
'current' =&gt; $apage<br />
));<br />
</code>
</div>
<p>I think this is it. It should work. Give it a try and share your feedback via comments.</p>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2008/02/07/migrate-from-utw-tags-to-wordpress-23-terms/" title="Migrate Tags from UTW Tags to Wordpress 2.3 Terms">Migrate Tags from UTW Tags to Wordpress 2.3 Terms (9)</a></li><li><a href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" title="Wordpress Instant Search Plugin">Wordpress Instant Search Plugin (1)</a></li><li><a href="http://www.jayminkapish.com/2009/12/11/wordpress-mu-get-posts-pages-from-different-blogs-under-same-installation/" title="Wordpress MU: get posts/pages from different blogs under same installation">Wordpress MU: get posts/pages from different blogs under same installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Google Shared Items in post using shortcode</title>
		<link>http://www.jayminkapish.com/2008/04/16/google-shared-items-in-posts/</link>
		<comments>http://www.jayminkapish.com/2008/04/16/google-shared-items-in-posts/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 20:07:58 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google-reader-shared-items]]></category>
		<category><![CDATA[shortcodes-api]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress-shortcodes]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=25</guid>
		<description><![CDATA[Shortcodes API in wordpress is worth to use for any kind of HTML code in your content to make post content clean and manageable. This is an example of showing google reader items in your post content.]]></description>
			<content:encoded><![CDATA[<p>New in WordPress 2.5 is the Shortcode API, a simple set of functions for creating macro codes for use in post content. I thought let me see how it works! I am showing <a title="Google Reader Shared Items" href="http://www.google.com/reader/shared/02261225337776740758" target="_blank">my google reader shared items</a> within a post using shortcode.</p>
<div id="google-shared-feed"><p><div class="textwidget"><a href="http://feedproxy.google.com/~r/Xhtml-lab/~3/fMr4SZSa6YE/introduction-to-psd-to-html-conversion" title="Introduction to PSD to HTML Conversion">Introduction to PSD to HTML Conversion</a><br /><em>From: XHTML-Lab</em></div></p><p><div class="textwidget"><a href="http://wpengineer.com/2233/remove-menu-item-in-wordpress-admin-panel/" title="Remove Menu Item in WordPress Admin Panel">Remove Menu Item in WordPress Admin Panel</a><br /><em>From: WP Engineer</em></div></p><p><div class="textwidget"><a href="http://feedproxy.google.com/~r/JustinTadlock/~3/RI0z-4dqSdY/pro-wp-plugin-development-review-by-wpbeginner" title="Pro WP Plugin Development review by WPBeginner">Pro WP Plugin Development review by WPBeginner</a><br /><em>From: Justin Tadlock</em></div></p><p><div class="textwidget"><a href="http://feedproxy.google.com/~r/greepit/~3/6jiu1370IYQ/" title="Free eCommerce Plugin for WordPress: Jigoshop">Free eCommerce Plugin for WordPress: Jigoshop</a><br /><em>From: Greepit</em></div></p><p><div class="textwidget"><a href="http://feedproxy.google.com/~r/dougal/posts/~3/2-wJhhfyCaU/" title="Fill Any PDF Form">Fill Any PDF Form</a><br /><em>From: Dougal Campbell&#39;s geek ramblings | Posts</em></div></p></div>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2008/04/23/flickr-photos-in-post-using-shortcode/" title="Flickr photos in post using shortcode">Flickr photos in post using shortcode (1)</a></li><li><a href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" title="Wordpress Instant Search Plugin">Wordpress Instant Search Plugin (1)</a></li><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/" title="Parent Child Theme &#8211; Easiest Way!">Parent Child Theme &#8211; Easiest Way! (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2008/04/16/google-shared-items-in-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.5 RC1</title>
		<link>http://www.jayminkapish.com/2008/03/20/wordpress-25-rc1/</link>
		<comments>http://www.jayminkapish.com/2008/03/20/wordpress-25-rc1/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 20:38:03 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=24</guid>
		<description><![CDATA[Trying a WP 2.5 stable version (2.5-RC1). It's awesome!]]></description>
			<content:encoded><![CDATA[<p>Trying a WP 2.5 stable version (2.5-RC1). It&#8217;s awesome!</p>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" title="Wordpress Instant Search Plugin">Wordpress Instant Search Plugin (1)</a></li><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/" title="Parent Child Theme &#8211; Easiest Way!">Parent Child Theme &#8211; Easiest Way! (0)</a></li><li><a href="http://www.jayminkapish.com/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (9)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2008/03/20/wordpress-25-rc1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla or WordPress?</title>
		<link>http://www.jayminkapish.com/2008/03/06/joomla-or-wordpress/</link>
		<comments>http://www.jayminkapish.com/2008/03/06/joomla-or-wordpress/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 16:55:38 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[asides]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[open-source-software]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/2008/03/06/joomla-or-wordpress/</guid>
		<description><![CDATA[Joomla is primed to be the next favorite Open Source Software or you think Wordpress can be?]]></description>
			<content:encoded><![CDATA[<p>Joomla is primed to be the next favorite <span id="lw_1204822668_0" class="yshortcuts">Open Source Software</span>, or that it already is? <a href="http://wordpressgarage.com/news-views/google-trends-wordpress-movable-type-joomla/">More on WordPressGarage.com</a></p>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" title="Wordpress Instant Search Plugin">Wordpress Instant Search Plugin (1)</a></li><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/" title="Parent Child Theme &#8211; Easiest Way!">Parent Child Theme &#8211; Easiest Way! (0)</a></li><li><a href="http://www.jayminkapish.com/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (9)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2008/03/06/joomla-or-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrate Tags from UTW Tags to WordPress 2.3 Terms</title>
		<link>http://www.jayminkapish.com/2008/02/07/migrate-from-utw-tags-to-wordpress-23-terms/</link>
		<comments>http://www.jayminkapish.com/2008/02/07/migrate-from-utw-tags-to-wordpress-23-terms/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 16:45:36 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[php code]]></category>
		<category><![CDATA[slug]]></category>
		<category><![CDATA[ultimate tag warrior plugin]]></category>
		<category><![CDATA[ultimate tag warrior tags tables]]></category>
		<category><![CDATA[ultimate warrior]]></category>
		<category><![CDATA[UTW]]></category>
		<category><![CDATA[wordpress 2.3]]></category>
		<category><![CDATA[wordpress tags]]></category>
		<category><![CDATA[wordpress terms tables]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/2008/02/07/migrate-from-utw-tags-to-wordpress-23-terms/</guid>
		<description><![CDATA[Migrating tags from Ultimate Tag Warrior or UTW plugin to Wordpress Terms.]]></description>
			<content:encoded><![CDATA[<p>I was running wordpress 2.0.5 since 2 years and did not get time to upgrade to <span id="lw_1202402549_0" class="yshortcuts">WordPress</span> 2.3.</p>
<p>So I decided last week to upgrade to WordPress 2.3 and I did. I upgrade the same way how wordpress advice us <a href="http://codex.wordpress.org/Upgrading_WordPress">here</a>.</p>
<p>After installation, I did notice it has migrated my categories tables to wordpress 2.3 Terms tables but nothing migrated from Tags tables. I was surprised! Did I make any mistake? Then it comes into my mind, it is Ultimate Tag Warrior plugin, which has created those tables for me not WordPress.</p>
<p>Now I had to migrate those tags from Tags table to Terms tables. So I wrote a script that does that job for me. I thought let me make that available to you, if someone would like to extend the script and build a smart plugin! <span id="more-22"></span></p>
<p>I would like you to read this before you use this script:</p>
<ol>
<li>Take backup of your database. It is not going to delete anything in the database though.</li>
<li>Make sure you have Tags tables from Ultimate Tag Warrior in your database.</li>
<li>Since Unique index created on slug column in Terms table, this script will add &#8217;2&#8242; add the end of tag if any duplicate key/slug found in the Terms table.</li>
<li>Set MySQL Connection parameters in this file.</li>
<li>Upload it to your server and run it. Just run it once!</li>
<li>Do no forget to share your feedback via comments!</li>
</ol>
<p>If you would like to look at it and review/install, <a href="http://blog.kapish.co.in/wp-content/uploads/2008/02/post2tagTotaxonomy.zip">please download PHP Code here</a>.</p>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/" title="Comments Pagination &#8211; Wordpress &#8211; Bug Fixed!">Comments Pagination &#8211; Wordpress &#8211; Bug Fixed! (22)</a></li><li><a href="http://www.jayminkapish.com/2010/09/30/wordpress-instant-search-plugin/" title="Wordpress Instant Search Plugin">Wordpress Instant Search Plugin (1)</a></li><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (0)</a></li><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/" title="Parent Child Theme &#8211; Easiest Way!">Parent Child Theme &#8211; Easiest Way! (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2008/02/07/migrate-from-utw-tags-to-wordpress-23-terms/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.jayminkapish.com @ 2012-02-06 04:03:01 by W3 Total Cache -->
