<?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>Bhupendra Kunwar Blog &#124; Internet Marketing Web Dev Professional</title>
	<atom:link href="http://www.bhupendra.info/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bhupendra.info/blog</link>
	<description>Re-Writing the Web</description>
	<lastBuildDate>Sat, 09 Jul 2011 07:17:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress Pagination Not Working: Solution</title>
		<link>http://www.bhupendra.info/blog/wordpress-pagination-not-working-solution</link>
		<comments>http://www.bhupendra.info/blog/wordpress-pagination-not-working-solution#comments</comments>
		<pubDate>Sat, 09 Jul 2011 07:15:24 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hacks]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=237</guid>
		<description><![CDATA[If you use query_post function on a theme&#8217;s homepage, you might land up messing up with the pagination function of WordPress. Here is the quick fix to wordpress pagination (Next Previous Posts) function: 1. Add up the following line of &#8230; <a href="http://www.bhupendra.info/blog/wordpress-pagination-not-working-solution">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you use query_post function on a theme&#8217;s homepage, you might land up messing up with the pagination function of WordPress.</p>
<p>Here is the quick fix to wordpress pagination (Next Previous Posts) function:</p>
<p>1. Add up the following line of code just BEFORE the query_post() function:</p>
<pre class="brush:php">$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;</pre>
<p>2. Add the variable $paged to your query_post function (notice the extra variable at the end of the query post function):</p>
<pre class="brush:php">query_posts('orderby=date&#038;order=DESC&#038;posts_per_page=5&#038;cat=blog&#038;paged='.$paged);</pre>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=237&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/wordpress-pagination-not-working-solution/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Custom Post Type in WordPress</title>
		<link>http://www.bhupendra.info/blog/creating-a-custom-post-type-in-wordpress</link>
		<comments>http://www.bhupendra.info/blog/creating-a-custom-post-type-in-wordpress#comments</comments>
		<pubDate>Thu, 07 Jul 2011 13:51:38 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hacks]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=232</guid>
		<description><![CDATA[Creating a custom post types in WordPress is very simple. All you need to do is register the custom post type. Copy the function below to your theme&#8217;s function.php file The function below adds a custom post type &#8220;Ideas&#8221; with &#8230; <a href="http://www.bhupendra.info/blog/creating-a-custom-post-type-in-wordpress">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Creating a custom post types in WordPress is very simple. All you need to do is register the custom post type.</p>
<p>Copy the function below to your theme&#8217;s function.php file</p>
<p>The function below adds a custom post type &#8220;Ideas&#8221; with the same columns. </p>
<pre class="brush:php">
register_post_type('ideas', array(
	'label' => __('Ideas'),
	'singular_label' => __('Ideas'),
	'public' => true,
	'show_ui' => true,
	'capability_type' => 'post',
	'hierarchical' => false,
	'rewrite' => false,
	'query_var' => false,
	'supports' => array('title', 'editor', 'author')
));
</pre>
<p>If you want to list the posts posted under the custom post type, you can use the query_posts function:</p>
<pre class="brush:php">
query_posts('post_type=ideas')
</pre>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=232&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/creating-a-custom-post-type-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FaceBook &#8211; Add custom thumbnail and title when someone likes your Website</title>
		<link>http://www.bhupendra.info/blog/facebook-share-custom-thumbnail-title</link>
		<comments>http://www.bhupendra.info/blog/facebook-share-custom-thumbnail-title#comments</comments>
		<pubDate>Fri, 24 Jun 2011 08:04:03 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=220</guid>
		<description><![CDATA[Facebook Link button is now floating on almost every website. By default, when a user clicks on Facebook &#8220;Like&#8221; button on any of your webpage, it will post the image thumbnail, title and description from the same page. Just in &#8230; <a href="http://www.bhupendra.info/blog/facebook-share-custom-thumbnail-title">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Facebook Link button is now floating on almost every website.</p>
<p>By default, when a user clicks on Facebook &#8220;Like&#8221; button on any of your webpage, it will post the image thumbnail, title and description from the same page.</p>
<p>Just in case you want to provide a custom image Thumbnail and/or custom Title, you can do it quickly by adding the following meta tags in your page header.</p>
<p><code></p>
<pre class="brush:html">
<meta property="og:image" content="http://yoursite.com/image.gif"/>
<meta property="og:title" content="Your Website Title"/>
</pre>
<p></code></p>
<p>Click on Facebook like button below to see how it works <img src='http://www.bhupendra.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=220&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/facebook-share-custom-thumbnail-title/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Godaddy Dedicated/ VDS Hosting &#8211; Login as Root</title>
		<link>http://www.bhupendra.info/blog/godaddy-dedicated-vds-hosting-login-as-root</link>
		<comments>http://www.bhupendra.info/blog/godaddy-dedicated-vds-hosting-login-as-root#comments</comments>
		<pubDate>Thu, 16 Jun 2011 08:01:56 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=215</guid>
		<description><![CDATA[Quite sometime you may want to login as root to administer your Dedicated or Virtual Dedicated server. Godaddy doesn&#8217;t allow you to directly login as &#8220;root&#8221;. You can however, easily turn on &#8220;root&#8221; user on your Godaddy server 1. Login &#8230; <a href="http://www.bhupendra.info/blog/godaddy-dedicated-vds-hosting-login-as-root">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Quite sometime you may want to login as root to administer your Dedicated or Virtual Dedicated server. <a href="http://affiliate.godaddy.com/redirect/3FE4A64CAD3332CED25FAFAE34F7CA48A9FAF868EACAEBE6E63C845F8EA7358860F004E84D92BFFD9EAAEA210F3367E88A44B21C4EBEC87E4CBA4C135952CDB6" target="_blank">Godaddy</a> doesn&#8217;t allow you to directly login as &#8220;root&#8221;.</p>
<p>You can however, easily turn on &#8220;root&#8221; user on your <a href="http://affiliate.godaddy.com/redirect/3FE4A64CAD3332CED25FAFAE34F7CA48A9FAF868EACAEBE6E63C845F8EA7358860F004E84D92BFFD9EAAEA210F3367E88A44B21C4EBEC87E4CBA4C135952CDB6" target="_blank">Godaddy</a> server</p>
<p>1. Login into your Dedicated/VDS server using putty or similar software using your account username and password</p>
<p>2. Type the following command (without qutoes) and hit enter key &#8220;command su -&#8221;</p>
<p>3. You will notice that you are now logged in as root user!</p>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=215&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/godaddy-dedicated-vds-hosting-login-as-root/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux : Copy files directly between two remote servers</title>
		<link>http://www.bhupendra.info/blog/linux-copy-files-directly-between-two-remote-servers</link>
		<comments>http://www.bhupendra.info/blog/linux-copy-files-directly-between-two-remote-servers#comments</comments>
		<pubDate>Tue, 26 Apr 2011 13:27:53 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=211</guid>
		<description><![CDATA[Imagine you want to switch to a new dedicated server and your current website size is say 5 GB. It becomes really cumbersome to first download the entire website to your local PC and then upload it to your new &#8230; <a href="http://www.bhupendra.info/blog/linux-copy-files-directly-between-two-remote-servers">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Imagine you want to switch to a new dedicated server and your current website size is say 5 GB. It becomes really cumbersome to first download the entire website to your local PC and then upload it to your new server.</p>
<p>Thanks to Linux SCP command that you can directly copy files/folders between two servers (with SSH access, ofcourse)</p>
<p><strong>This is the Linux scp command syntax to retrieve file or directory <span style="color: #ff0000;">FROM</span> a remote computer:</strong></p>
<p>scp -r login name@ip-address :/path/filename .</p>
<p>the last period (.) tell the shell to copy the files to the current directory</p>
<p><strong>This is the Linux scp command syntax to send file or directory <span style="color: #ff0000;">TO</span> a remote computer:</strong></p>
<p>scp -r /path/filename login_name@ip-address : .</p>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=211&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/linux-copy-files-directly-between-two-remote-servers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Post Comments on the Homepage Twenty Ten</title>
		<link>http://www.bhupendra.info/blog/show-post-comments-on-the-homepage-twenty-ten</link>
		<comments>http://www.bhupendra.info/blog/show-post-comments-on-the-homepage-twenty-ten#comments</comments>
		<pubDate>Fri, 19 Nov 2010 07:21:57 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=191</guid>
		<description><![CDATA[The Twenty Ten theme uses loop function to show posts on the homepage or category pages. The novice users might find it difficult to work with loop.php If you want to show the list of comments &#038; comment form for &#8230; <a href="http://www.bhupendra.info/blog/show-post-comments-on-the-homepage-twenty-ten">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The Twenty Ten theme uses loop function to show posts on the homepage or category pages.</p>
<p>The novice users might find it difficult to work with loop.php</p>
<p>If you want to show the list of comments &#038; comment form for each of the blog posts on the homepage of the blog, just add the following line of code
<pre class="brush:php">global $withcomments; $withcomments = 1;</pre>
<p> just before
<pre class="brush:php">get_template_part( 'loop', 'index' );</pre>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=191&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/show-post-comments-on-the-homepage-twenty-ten/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; Using Shortcodes in Template files</title>
		<link>http://www.bhupendra.info/blog/wordpress-using-shortcodes-in-template-files</link>
		<comments>http://www.bhupendra.info/blog/wordpress-using-shortcodes-in-template-files#comments</comments>
		<pubDate>Sat, 23 Oct 2010 13:00:31 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=186</guid>
		<description><![CDATA[echo do_shortcode('[shortcode]');]]></description>
			<content:encoded><![CDATA[<pre class="brush:php">echo do_shortcode('[shortcode]');</pre>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=186&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/wordpress-using-shortcodes-in-template-files/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to import a compressed mysql file .sql.gz using linux shell?</title>
		<link>http://www.bhupendra.info/blog/how-to-import-a-compressed-mysql-file-sql-gz-using-linux-shell</link>
		<comments>http://www.bhupendra.info/blog/how-to-import-a-compressed-mysql-file-sql-gz-using-linux-shell#comments</comments>
		<pubDate>Fri, 08 Oct 2010 13:29:00 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=182</guid>
		<description><![CDATA[Login into your server using a shell program like putty. Type in the following command on the command line zcat DB_File_Name.sql.gz &#124; mysql -u username -p Target_DB_Name where DB_File_Name.sql.gz = full path of the sql.gz file to be imported username &#8230; <a href="http://www.bhupendra.info/blog/how-to-import-a-compressed-mysql-file-sql-gz-using-linux-shell">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Login into your server using a shell program like putty.</p>
<p>Type in the following command on the command line</p>
<p><strong>zcat DB_File_Name.sql.gz | mysql -u username -p Target_DB_Name</strong></p>
<p>where</p>
<p>DB_File_Name.sql.gz = full path of the sql.gz file to be imported</p>
<p>username = your mysql username</p>
<p>Target_DB_Name = database name where you want to import the database</p>
<p>When you hit enter in the command line, it will prompt for password. Enter your MySQL password.</p>
<p>You are done!</p>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=182&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/how-to-import-a-compressed-mysql-file-sql-gz-using-linux-shell/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running WordPress Queries in Non-WordPress Pages</title>
		<link>http://www.bhupendra.info/blog/running-wordpress-queries-in-non-wordpress-pages</link>
		<comments>http://www.bhupendra.info/blog/running-wordpress-queries-in-non-wordpress-pages#comments</comments>
		<pubDate>Sat, 17 Jul 2010 06:22:57 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hacks]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=176</guid>
		<description><![CDATA[At times you might want to run the WordPress queries or wordpress functions in the page located outside the wordpress templates. Thanks to wordpress for providing a very simple solution to this. You just need to include the file called &#8230; <a href="http://www.bhupendra.info/blog/running-wordpress-queries-in-non-wordpress-pages">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At times you might want to run the WordPress queries or wordpress functions in the page located outside the wordpress templates.</p>
<p>Thanks to wordpress for providing a very simple solution to this.</p>
<p>You just need to <strong>include the file called &#8220;wp-load.php&#8221;</strong> in the non-wordpress file before calling any WP functions and then you can run wordpress queries or call any wordpress function in that page.</p>
<p><strong>wp-load.php is located in the root folder of your wordpress installation.</strong></p>
<p>eg. if you have installed wordpress in your domains root folder, wp-load.php will be there in your public_html or httpdocs folder as applicable.<br />
if you have installed wordpress in a folder say wp in your domain root, the wp-load.php shall be located in public_html/wp/ folder.</p>
<p>Include this file in your non-wordpress file using a require statement at the very beginning of the file.</p>
<pre class="brush:php">require('../wp-load.php');</pre>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=176&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/running-wordpress-queries-in-non-wordpress-pages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canonical URL solution &#8211; redirect non-www to www and index.php to your homepage</title>
		<link>http://www.bhupendra.info/blog/redirect-index-html-and-index-php-to-the-homepage</link>
		<comments>http://www.bhupendra.info/blog/redirect-index-html-and-index-php-to-the-homepage#comments</comments>
		<pubDate>Thu, 08 Jul 2010 06:18:14 +0000</pubDate>
		<dc:creator>Bhupendra</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[URL Rewriting]]></category>
		<category><![CDATA[Webmaster Issues]]></category>

		<guid isPermaLink="false">http://www.bhupendra.info/blog/?p=168</guid>
		<description><![CDATA[Canonical URL issue has always been a headache to the Webmasters and SEOs. But thanks to apache&#8217;s mod_rewrite which provide nice escapes for this problem 1. Rewrite all your urls WITHOUT www to WITH www Options +FollowSymLinks RewriteEngine on RewriteCond &#8230; <a href="http://www.bhupendra.info/blog/redirect-index-html-and-index-php-to-the-homepage">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Canonical URL issue has always been a headache to the Webmasters and SEOs. But thanks to apache&#8217;s mod_rewrite which provide nice escapes for this problem</p>
<p><strong>1. Rewrite all your urls WITHOUT www to WITH www</strong></p>
<pre class="brush:ps">Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^euttaranchal.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
</pre>
<p><strong>2. Redirect all your index.php and index.html files to homepage or directory root</strong></p>
<pre class="brush:ps">Options +FollowSymLinks
RewriteEngine on

#rewrite your index.html to homepage
#eg:  http://www.yourdomain.com/index.html to http://www.yourdomain.com/

RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.yourdomain.com/$1 [R=301,L]

#rewrite your index.php to homepage
#eg: http://www.yourdomain.com/index.php to http://www.yourdomain.com/
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://www.yourdomain.com/$1 [R=301,L]
</pre>
<p>** you can do this for default.html or other pages too depending on your default page name.</p>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=168&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/redirect-index-html-and-index-php-to-the-homepage/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

