<?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>KAPISH::Blog</title>
	<atom:link href="http://www.jayminkapish.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jayminkapish.com</link>
	<description>About Me and Wordpress</description>
	<lastBuildDate>Tue, 22 Dec 2009 17:54:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress MU: get posts/pages from different blogs under same installation</title>
		<link>http://www.jayminkapish.com/2009/12/11/wordpress-mu-get-posts-pages-from-different-blogs-under-same-installation/</link>
		<comments>http://www.jayminkapish.com/2009/12/11/wordpress-mu-get-posts-pages-from-different-blogs-under-same-installation/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 15:58:43 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Posts/Pages from different blogs]]></category>
		<category><![CDATA[Wordpress Loop]]></category>
		<category><![CDATA[wordpress-mu]]></category>

		<guid isPermaLink="false">http://www.jayminkapish.com/?p=205</guid>
		<description><![CDATA[How can you create a loop to get posts/pages from different blogs under same MU installation?
1) you can use switch_to_blog function
http://codex.wordpress.org/WPMU_Functions/switch_to_blog
2) create wordpress loop (this will get posts from the blog you just switched)
3) do whatever you want with data
4) restore current blog you are on so everything runs after this code go to the [...]]]></description>
			<content:encoded><![CDATA[<p>How can you create a loop to get posts/pages from different blogs under same MU installation?</p>
<p>1) you can use switch_to_blog function<br />
<a href="http://codex.wordpress.org/WPMU_Functions/switch_to_blog">http://codex.wordpress.org/WPMU_Functions/switch_to_blog</a></p>
<p>2) create wordpress loop (this will get posts from the blog you just switched)</p>
<p>3) do whatever you want with data</p>
<p>4) restore current blog you are on so everything runs after this code go to the blog it supposed to<br />
<a href="http://codex.wordpress.org/WPMU_Functions/restore_current_blog">http://codex.wordpress.org/WPMU_Functions/restore_current_blog</a></p>
<div class="phpcode"><code>switch_to_blog(1); // we are switching to blog id # 1<br />
query_posts('showposts=5'); //this would get top 5 posts from blog id # 1. you can change the loop to the get posts from x category<br />
if (have_posts()) :<br />
while (have_posts()) : the_post();<br />
//do whatever you want with data here...<br />
endwhile;<br />
endif;<br />
restore_current_blog();<br />
</code></div>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F11%2Fwordpress-mu-get-posts-pages-from-different-blogs-under-same-installation%2F&amp;linkname=Wordpress%20MU%3A%20get%20posts%2Fpages%20from%20different%20blogs%20under%20same%20installation">Share/Save</a><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 (1)</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! (17)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/12/11/wordpress-mu-get-posts-pages-from-different-blogs-under-same-installation/feed/</wfw:commentRss>
		<slash:comments>0</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>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F12%2F08%2Fsecure-your-wordpress-installation%2F&amp;linkname=Secure%20Your%20Wordpress%20Installation">Share/Save</a><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 (1)</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 (4)</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! (17)</a></li><li><a href="http://www.jayminkapish.com/2008/04/16/google-shared-items-in-posts/" title="Google Shared Items in post using shortcode">Google Shared Items in post using shortcode (0)</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>I&#039;m attending WordCampNYC!</title>
		<link>http://www.jayminkapish.com/2009/11/03/im-attending-wordcampnyc/</link>
		<comments>http://www.jayminkapish.com/2009/11/03/im-attending-wordcampnyc/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 18:44:50 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=192</guid>
		<description><![CDATA[I'm attending WordCampNYC!]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://2009.newyork.wordcamp.org"  title="WordCampNYC – Nov 14-15"><img alt="WordCampNYC – Nov 14-15" src="http://2009.newyork.wordcamp.org/files/2009/10/wcnyc-attending-250.jpg" /></a></center></p>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F11%2F03%2Fim-attending-wordcampnyc%2F&amp;linkname=I%26%23039%3Bm%20attending%20WordCampNYC%21">Share/Save</a><h3>Most Commented 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! (17)</a></li><li><a href="http://www.jayminkapish.com/2009/06/16/date-archive-for-a-category/" title="Date archive for a category">Date archive for a category (10)</a></li><li><a href="http://www.jayminkapish.com/2008/01/18/wordpress-database-schema/" title="Wordpress Database Schema">Wordpress Database Schema (9)</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/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (4)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/11/03/im-attending-wordcampnyc/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>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F10%2F08%2Fwordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it%2F&amp;linkname=Wordpress%20MU%20Site%20Upgrade%20Bug%3A%20Your%20server%20may%20not%20be%20able%20to%20connect%20to%20blogs%20running%20on%20it">Share/Save</a><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! (17)</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><li><a href="http://www.jayminkapish.com/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (4)</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>1</slash:comments>
		</item>
		<item>
		<title>Wordpress: Calculate font-size in Tag Cloud</title>
		<link>http://www.jayminkapish.com/2009/08/25/wordpress-calculate-font-size-in-tag-cloud/</link>
		<comments>http://www.jayminkapish.com/2009/08/25/wordpress-calculate-font-size-in-tag-cloud/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 14:38:49 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Tag Cloud]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=152</guid>
		<description><![CDATA[How to: calculate font-size in tag cloud]]></description>
			<content:encoded><![CDATA[<div class="phpcode"><code>$fontSizeUnits = "px";<br />
$fontSizeMin = 15;<br />
$fontSizeMax = 50;<br />
$maxValue = 12;<br />
$minValue = 1;<br />
</code></div>
<p>where <strong>$results</strong> is MySQL result set.</p>
<div class="phpcode"><code>foreach ($results as $result) {<br />
$tag = $result->name;<br />
$tagURI = get_option('home') . '/' . $result->taxonomy . '/' . $result->slug . '/';<br />
$count = $result->count;<br />
$weight = ( $count - $minValue ) / ( $maxValue - $minValue );<br />
$fontSize = $fontSizeMin + round( ($fontSizeMax - $fontSizeMin) * $weight );<br />
echo "&lt;li style='display: inline-block; font-size:". $fontSize. $fontSizeUnits."'&gt;&lt;a href=".$tagURI." title='(".$count." posts)'&gt;".$tag."&lt;/a&gt;&lt;/li&gt;";<br />
}<br />
</code></div>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F25%2Fwordpress-calculate-font-size-in-tag-cloud%2F&amp;linkname=Wordpress%3A%20Calculate%20font-size%20in%20Tag%20Cloud">Share/Save</a><h3>Most Commented 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! (17)</a></li><li><a href="http://www.jayminkapish.com/2009/06/16/date-archive-for-a-category/" title="Date archive for a category">Date archive for a category (10)</a></li><li><a href="http://www.jayminkapish.com/2008/01/18/wordpress-database-schema/" title="Wordpress Database Schema">Wordpress Database Schema (9)</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/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (4)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/08/25/wordpress-calculate-font-size-in-tag-cloud/feed/</wfw:commentRss>
		<slash:comments>0</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>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F08%2F07%2Fparent-child-theme-easiest-way%2F&amp;linkname=Parent%20Child%20Theme%20%26%238211%3B%20Easiest%20Way%21">Share/Save</a><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 (1)</a></li><li><a href="http://www.jayminkapish.com/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (4)</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! (17)</a></li><li><a href="http://www.jayminkapish.com/2008/04/16/google-shared-items-in-posts/" title="Google Shared Items in post using shortcode">Google Shared Items in post using shortcode (0)</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>Date archive for a category</title>
		<link>http://www.jayminkapish.com/2009/06/16/date-archive-for-a-category/</link>
		<comments>http://www.jayminkapish.com/2009/06/16/date-archive-for-a-category/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 16:52:53 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[Date archive for a category]]></category>
		<category><![CDATA[wordpress archives for category]]></category>
		<category><![CDATA[wordpress-category-date-archive]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=78</guid>
		<description><![CDATA[How to build date archive for a category in wordpress.]]></description>
			<content:encoded><![CDATA[<p>There are a few ideas out there <strong>How to build date archive for a category</strong>. I am joining the race now.</p>
<p>Some of us, wordpress developers, may think this is hacky but I bet a few will like it this way because <strong>this works!</strong>.<br />
<span id="more-78"></span><br />
This idea would end up in url like this</p>
<div class="phpcode"><code>/archives/category/{category-slug}/yyyy/mm/</code></div>
<p>Lets get started and you can <a href="/wp-content/uploads/2009/06/date_archive_for_category.zip" title="Download php code - Date Archive for a category - wordpress">Download code here</a> and you can put that in your active theme&#8217;s functions.php file.</p>
<p>I am going to use <strong>init</strong> hook.</p>
<div class="phpcode">
<code>add_action('init','my_date_archive_for_category');</code>
</div>
<p>We can check if incoming request contains <strong>/archives/category/</strong> inside my_date_archive_for_category function. If it does, this is our category/date archive page.</p>
<p>Now breakup incoming request, and check every part of the request. We need category slug, year and month in place.</p>
<div class="phpcode">
<code>$request_parts = explode('/', $request);</code>
</div>
<p>Parts of request</p>
<div class="phpcode">
<code>Array ( [0] => [1] => archives [2] => category [3] => category-slug [4] => yyyy [5] => mm [6] => )</code>
</div>
<p>Here, we need to validate a few parts of the request like category slug, yyyy and mm.</p>
<div class="phpcode">
<code>$category_array = get_term_by('slug', $request_parts["3"], "category", ARRAY_A);</code>
</div>
<p>Now time to query wordpress.</p>
<div class="phpcode">
<code>query_posts(array('cat'=>$category_array["term_id"], 'year'=>$request_parts["4"], 'monthnum'=>$request_parts["5"]));</code>
</div>
<p>If we have posts, display them otherwise set a flag which we can use later to show 404 so visitors do not get confused.</p>
<div class="phpcode">
<code><br />
if ( have_posts() ) : while ( have_posts() ) : the_post();<br />
........<br />
endwhile;<br />
else:<br />
$is404 = true; /* set the flag so we know no posts found and display 404. */<br />
endif;<br />
</code>
</div>
<p><strong>DO NOT FORGET</strong> to put</p>
<div class="phpcode">
<code>exit;</code>
</div>
<p>at the end.</p>
<p>Putting <strong>exit</strong> at the end will end further PHP execution on your blog.</p>
<p>Do not forget to let me know how this works on your blog.</p>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F06%2F16%2Fdate-archive-for-a-category%2F&amp;linkname=Date%20archive%20for%20a%20category">Share/Save</a><h3>Most Commented 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! (17)</a></li><li><a href="http://www.jayminkapish.com/2009/06/16/date-archive-for-a-category/" title="Date archive for a category">Date archive for a category (10)</a></li><li><a href="http://www.jayminkapish.com/2008/01/18/wordpress-database-schema/" title="Wordpress Database Schema">Wordpress Database Schema (9)</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/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (4)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/06/16/date-archive-for-a-category/feed/</wfw:commentRss>
		<slash:comments>10</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</p>
<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>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F03%2F17%2Fjson-and-wordpress%2F&amp;linkname=JSON%20and%20Wordpress">Share/Save</a><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 (1)</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! (17)</a></li><li><a href="http://www.jayminkapish.com/2008/04/16/google-shared-items-in-posts/" title="Google Shared Items in post using shortcode">Google Shared Items in post using shortcode (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/03/17/json-and-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Back in USA</title>
		<link>http://www.jayminkapish.com/2009/02/04/back-in-usa/</link>
		<comments>http://www.jayminkapish.com/2009/02/04/back-in-usa/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 21:26:25 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[India]]></category>
		<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[USA]]></category>
		<category><![CDATA[Vacation]]></category>
		<category><![CDATA[india trip]]></category>
		<category><![CDATA[kite fastival]]></category>
		<category><![CDATA[makarsakranti]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=39</guid>
		<description><![CDATA[Hi Everyone. I&#8217;m back in the business!
I decided I will write about my trip the same day I was landed in USA but I was caught up checking 1,000 emails and work load.
It&#8217;s always great going back home and meeting your people. I enjoyed a lot this time in India. Hanging out with friends, family [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Everyone. I&#8217;m back in the business!</p>
<p>I decided I will write about my trip the same day I was landed in USA but I was caught up checking 1,000 emails and work load.</p>
<p>It&#8217;s always great going back home and meeting your people. I enjoyed a lot this time in India. Hanging out with friends, family regroup, my grandmother and a lot! This year I relaxed a bit as well and some days were so busy. Kite Fastival, Uttarayana or Makarsakranti was too good. I fly kites after 2 years.<br />
<span id="more-39"></span><br />
Still transfering pictures from my camera and an iPhone to my new MacBook. I&#8217;ll upload them to Flickr sometime today. There are 900 pictures. WOW!</p>
<p>I remember I was not quite happy coming back in Dec 2007. But this time, I&#8217;m happy. Jasmin and Jay stayed there so missing them a lot but it&#8217;s a matter of 8 weeks only. Since I was away for 3 weeks, first 3 days just passed but missing them a lot today. Do not know how these 8 weeks will go.</p>
<p>Jasmin was asking me this morning &#8220;Are you coming here on Valentine Day?&#8221;. I said &#8220;I want to but there is no chance&#8221;. I wish, I could.</p>
<p>I&#8217;ll have to update Jay&#8217;s blog as well. I did not write to his blog for last 4 months. That&#8217;s a big project!</p>
<p>So.. back to work now! Trying to keep myself a lot busy!!</p>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2009%2F02%2F04%2Fback-in-usa%2F&amp;linkname=Back%20in%20USA">Share/Save</a><h3>Most Commented 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! (17)</a></li><li><a href="http://www.jayminkapish.com/2009/06/16/date-archive-for-a-category/" title="Date archive for a category">Date archive for a category (10)</a></li><li><a href="http://www.jayminkapish.com/2008/01/18/wordpress-database-schema/" title="Wordpress Database Schema">Wordpress Database Schema (9)</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/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (4)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/02/04/back-in-usa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically adjust for daylight saving time</title>
		<link>http://www.jayminkapish.com/2008/11/12/automatically-adjust-for-daylight-saving-time/</link>
		<comments>http://www.jayminkapish.com/2008/11/12/automatically-adjust-for-daylight-saving-time/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 17:55:36 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[daylight saving time]]></category>
		<category><![CDATA[daylight saving time and wordpress]]></category>
		<category><![CDATA[daylight saving time wordpress plugin]]></category>
		<category><![CDATA[wordpress and daylight saving time]]></category>
		<category><![CDATA[wordpress timezone settings]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=29</guid>
		<description><![CDATA[PHP Code/Wordpress Plugin to adjust daylight saving time automatically.]]></description>
			<content:encoded><![CDATA[<p>I have been googling for this and again come up with my own solution.</p>
<div class="phpcode">
<code><br />
function my_set_gmt_offset($offset) {<br />
      $timezone = date("T");<br />
      if($timezone == 'EDT') {<br />
           $offset = '-4';<br />
      }<br />
      else if($timezone == 'EST') {<br />
           $offset = '-5';<br />
      }<br />
      return $offset;<br />
}<br />
if(function_exists('add_filter')) {<br />
      add_filter('option_gmt_offset', 'my_set_gmt_offset');<br />
}<br />
</code>
</div>
<p>Share your feedback via comments.</p>
<a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="Digg" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="Mixx" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="MySpace" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://www.jayminkapish.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.jayminkapish.com%2F2008%2F11%2F12%2Fautomatically-adjust-for-daylight-saving-time%2F&amp;linkname=Automatically%20adjust%20for%20daylight%20saving%20time">Share/Save</a><h3>Most Commented 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! (17)</a></li><li><a href="http://www.jayminkapish.com/2009/06/16/date-archive-for-a-category/" title="Date archive for a category">Date archive for a category (10)</a></li><li><a href="http://www.jayminkapish.com/2008/01/18/wordpress-database-schema/" title="Wordpress Database Schema">Wordpress Database Schema (9)</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/2009/03/17/json-and-wordpress/" title="JSON and Wordpress">JSON and Wordpress (4)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2008/11/12/automatically-adjust-for-daylight-saving-time/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
