<?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 &#187; Wordpress Hacks</title>
	<atom:link href="http://www.bhupendra.info/blog/wordpress/wordpress-hacks/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bhupendra.info/blog</link>
	<description>Re-Writing the Web</description>
	<lastBuildDate>Sat, 17 Jul 2010 06:26:14 +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>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 &#8220;wp-load.php&#8221; in the non-wordpress file before calling any WP functions and then you can run [...]]]></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>WordPress asking for FTP username/password while trying to install plugin from admin panel</title>
		<link>http://www.bhupendra.info/blog/wordpress-asking-for-ftp-usernamepassword-while-trying-to-install-plugin-from-admin-panel</link>
		<comments>http://www.bhupendra.info/blog/wordpress-asking-for-ftp-usernamepassword-while-trying-to-install-plugin-from-admin-panel#comments</comments>
		<pubDate>Mon, 08 Mar 2010 14:13:29 +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=139</guid>
		<description><![CDATA[This is annoying if WordPress asks for FTP username/password everytime you try to install or update plugin from admin panel. Here is the quick hack to this. 1. Open the wp-config.php file (this will be located in the root of your wordpress installation) 2. Add the following line of code just after define(&#8216;NONCE_KEY&#8217;, &#8216;put your [...]]]></description>
			<content:encoded><![CDATA[<p>This is annoying if WordPress asks for FTP username/password everytime you try to install or update plugin from admin panel.</p>
<p>Here is the quick hack to this.</p>
<p>1. Open the wp-config.php file (this will be located in the root of your wordpress installation)</p>
<p>2. Add the following line of code just after define(&#8216;NONCE_KEY&#8217;, &#8216;put your unique phrase here&#8217;);</p>
<pre class="brush:php">/* FTP login settings */
define('FTP_HOST', 'localhost');
define('FTP_USER', 'yourftpusername');
define('FTP_PASS', 'yourftppassword');</pre>
<p><strong>Note: </strong>Be sure to replace yourftpusername to your website&#8217;s FTP user name and yourftppassword to your website&#8217;s FTP password.</p>
<p>3. Upload the updated file. It works!</p>
<img src="http://www.bhupendra.info/blog/?ak_action=api_record_view&id=139&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.bhupendra.info/blog/wordpress-asking-for-ftp-usernamepassword-while-trying-to-install-plugin-from-admin-panel/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
