<?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>Wordpress API &#187; wordpress</title>
	<atom:link href="http://wordpressapi.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpressapi.com</link>
	<description>Wordpress Tutorials, Tips, Code, Hacks, Themes, plugin, Developer Code book -Wordpress Code, Themes, Plugins, Tips, Tutorials, News, Releases, Designs, Hacks, Tricks, Blog</description>
	<lastBuildDate>Tue, 08 May 2012 17:37:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Best of Resources for wordpress theme development</title>
		<link>http://wordpressapi.com/2012/03/19/best-of-resources-for-wordpress-theme-development/</link>
		<comments>http://wordpressapi.com/2012/03/19/best-of-resources-for-wordpress-theme-development/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 18:01:41 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress news]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[Designing]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[General Guidelines]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=7045</guid>
		<description><![CDATA[http://wordpressapi.com/2012/03/19/best-of-resources-for-wordpress-theme-development/Many new designers and developers are searching for resources for wordpress theme development. Where to start and how to start the wordpress development. Many people dont want to use the free themes and they want to develop there own theme. &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/03/19/best-of-resources-for-wordpress-theme-development/<p>Many new designers and developers are searching for resources for wordpress theme development. Where to start and how to start the wordpress development. Many people dont want to use the free themes and they want to develop there own theme.</p>
<p>They want to understand about basic rules and api about wordpress theme development. Here we collected some best of urls which has best practices and guidelines about wordpress theme development.</p>
<p><a href="http://wordpressapi.com/2011/04/07/list-of-free-wordpress-theme-frameworks-for-wordpress-theme-developer/" target="_blank">List of free wordpress theme frameworks for wordpress theme developer</a></p>
<p><a href="http://wordpressapi.com/2010/03/28/how-to-create-wordpress-theme/" target="_blank">How to create wordpress theme</a></p>
<p><a href="http://themetation.com/2008/07/14/how-to-create-wordpress-themes-from-scratch-part-1/" target="_blank">How To Create WordPress Themes From Scratch Part 1</a></p>
<p><a href="http://nettuts.com/site-builds/how-to-create-a-wordpress-theme-from-scratch/" target="_blank">How to Create a WordPress Theme from Scratch</a></p>
<p><a href="http://codex.wordpress.org/Theme_Development" target="_blank">Theme Development</a></p>
<p><a href="http://codex.wordpress.org/Template_Tags" target="_blank">Template Tags for wordpress </a></p>
<p><a href="http://codex.wordpress.org/Blog_Design_and_Layout" target="_blank">Blog design and development</a></p>
<p><a href="http://lorelle.wordpress.com/2005/09/28/designing-a-wordpress-theme-from-scratch/" target="_blank">Designing a WordPress Theme From Scratch</a></p>
<p><a href="http://wordpressapi.com/2011/02/09/future-psd-wordpress-conversion/" target="_blank">Future of PSD to WordPress Conversion</a></p>
<p><a href="http://wordpressapi.com/2010/02/03/time-wordpress-ebooks/" target="_blank">All time Best WordPress Ebooks</a></p>
<p><a href="http://wordpressapi.com/2009/03/05/general-guidelines-when-you-are-developing-the-new-theme/" target="_blank">General Guidelines when you are developing the new Theme</a></p>
<p><a href="http://wordpressapi.com/2008/10/29/how-to-create-simple-wordpress-theme/" target="_blank">How to create simple wordpress theme</a></p>
<p><a href="http://wordpressapi.com/2008/06/13/basic-css-rules-for-development-of-wordpress-themes/" target="_blank">Basic CSS rules for development of WordPress themes</a></p>
<p>I liked one picture which about wordpress theme development. This picture is by Yoast blogger.</p>
<div id="attachment_7046" class="wp-caption alignnone<a href="http://wordpressapi.com/2012/03/19/best-of-resources-for-wordpress-theme-development/g4oxu/" rel="attachment wp-att-7046"><img class="size-full wp-image-7046" title="Best of Resources for wordpress theme-development" src="http://images.wordpressapi.com/g4OXu.jpg" alt="Best of Resources for wordpress theme-development" width="564" height="707" /></a><p class="wp-caption-text">Best of Resources for wordpress theme-development</p></div>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/03/19/best-of-resources-for-wordpress-theme-development/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>install and update the wordpress plugins without providing ftp access</title>
		<link>http://wordpressapi.com/2012/03/12/install-and-update-wordpress-plugins-without-providing-ftp-access/</link>
		<comments>http://wordpressapi.com/2012/03/12/install-and-update-wordpress-plugins-without-providing-ftp-access/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 18:15:50 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[wordpress plugins]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wp hack]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=7038</guid>
		<description><![CDATA[http://wordpressapi.com/2012/03/12/install-and-update-wordpress-plugins-without-providing-ftp-access/I did so much R&#38;D about installing and updating the wordpress plugin without using ftp access. I got very nice trick to solve this issue. First you need to add the following code in your wp-config.php file. But this is &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/03/12/install-and-update-wordpress-plugins-without-providing-ftp-access/<p>I did so much R&amp;D about installing and updating the wordpress plugin without using ftp access. I got very nice trick to solve this issue.</p>
<p>First you need to add the following code in your wp-config.php file.</p>
<pre class="brush: php; title: ; notranslate">
define('FTP_USER', 'username');
define('FTP_PASS', 'mypassword');
define('FTP_HOST', '192.168.2.132');
define('FTP_SSL', false);
</pre>
<p>But this is old idea. If you dont want to add the ftp access in wp-config.php file then Just add the following line wp-config.php file.</p>
<pre class="brush: php; title: ; notranslate">

define('FS_METHOD', 'direct');
</pre>
<p><strong>Note: You need to give 755 permission to wp-content folder. Create the upgrade folder in wp-content folder.</strong></p>
<p>If still you are facing issue then give 777 permission to all wp-content folder.</p>
<p>For permission use following command</p>
<pre class="brush: php; title: ; notranslate">
cd your_wordpress_directory
sudo chown -R www-data wp-content
sudo chmod -R 755 wp-content
</pre>
<p><strong><code>More information:</code></strong></p>
<p>WordPress will try to write a temporary file to your <code>/wp-content</code> directory. If this succeeds, it compares the ownership of the file with it&#8217;s own uid, and if there is a match it will allow you to use the &#8216;direct&#8217; method of installing plugins, themes, or updates.</p>
<p>Now, if for some reason you do not want to rely on the automatic check for which filesystem method to use, you can define a constant, <code>'FS_METHOD'</code> in your <code>wp-config.php</code> file that is either <code>'direct' 'ssh', 'ftpext' or 'ftpsockets'</code> and it will use method. Keep in mind that if you set this to &#8216;direct&#8217; but your web user (the username under which your webs server runs) does not have proper write permissions, you will receive an error.</p>
<div id="attachment_7039" class="wp-caption alignnone<a href="http://wordpressapi.com/2012/03/12/install-and-update-wordpress-plugins-without-providing-ftp-access/install-and-update-the-wordpress-plugins-without-providing-ftp-access/" rel="attachment wp-att-7039"><img class="size-medium wp-image-7039" title="install and update the wordpress plugins without providing ftp access" src="http://images.wordpressapi.com/install-and-update-the-wordpress-plugins-without-providing-ftp-access-300x192.png" alt="install and update the wordpress plugins without providing ftp access" width="300" height="192" /></a><p class="wp-caption-text">install and update the wordpress plugins without providing ftp access</p></div>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/03/12/install-and-update-wordpress-plugins-without-providing-ftp-access/" title="how to install plugin in wordpress without ftp and ssh">how to install plugin in wordpress without ftp and ssh</a></li><li><a href="http://wordpressapi.com/2012/03/12/install-and-update-wordpress-plugins-without-providing-ftp-access/" title="wordpress ec2 site plugin install ftp access error">wordpress ec2 site plugin install ftp access error</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/03/12/install-and-update-wordpress-plugins-without-providing-ftp-access/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>how to add the google plus button code for wordpress without plugin</title>
		<link>http://wordpressapi.com/2012/03/09/how-to-add-google-plus-button-code-wordpress-wihtout-plugin/</link>
		<comments>http://wordpressapi.com/2012/03/09/how-to-add-google-plus-button-code-wordpress-wihtout-plugin/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 15:38:52 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google plus]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=7030</guid>
		<description><![CDATA[http://wordpressapi.com/2012/03/09/how-to-add-google-plus-button-code-wordpress-wihtout-plugin/Many people asking me how to add the google plugin button in wordpress without plugin. You can easily add the google plus button counter to your site. I added the google button code to digcms.com site. You just need to &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/03/09/how-to-add-google-plus-button-code-wordpress-wihtout-plugin/<p>Many people asking me how to add the google plugin button in wordpress without plugin. You can easily add the google plus button counter to your site.</p>
<p>I added the google button code to <a title="digcms" href="digcms.com" target="_blank">digcms.com</a> site.</p>
<p>You just need to add the following code to site.</p>
<pre class="brush: php; title: ; notranslate">

&lt;!-- Place this tag where you want the +1 button to render --&gt;
&lt;g:plusone size=&quot;tall&quot;&gt;&lt;/g:plusone&gt;

&lt;!-- Place this render call where appropriate --&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 (function() {
 var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
 po.src = 'https://apis.google.com/js/plusone.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
 })();
&lt;/script&gt;
</pre>
<p>For getting the different style of google plus button you can go to following site.</p>
<p><a href="http://www.google.com/webmasters/+1/button/">http://www.google.com/webmasters/+1/button/</a></p>
<div id="attachment_7031" class="wp-caption alignnone<a href="http://wordpressapi.com/2012/03/09/how-to-add-google-plus-button-code-wordpress-wihtout-plugin/google-plus-button/" rel="attachment wp-att-7031"><img class="size-full wp-image-7031" title="how to add the google plus button code for wordpress without plugin" src="http://images.wordpressapi.com/google-plus-button.png" alt="how to add the google plus button code for wordpress without plugin" width="739" height="327" /></a><p class="wp-caption-text">how to add the google plus button code for wordpress without plugin</p></div>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/03/09/how-to-add-google-plus-button-code-wordpress-wihtout-plugin/" title="google plus navigation code">google plus navigation code</a></li><li><a href="http://wordpressapi.com/2012/03/09/how-to-add-google-plus-button-code-wordpress-wihtout-plugin/" title="googleplus button code">googleplus button code</a></li><li><a href="http://wordpressapi.com/2012/03/09/how-to-add-google-plus-button-code-wordpress-wihtout-plugin/" title="how to add google plus without plugin">how to add google plus without plugin</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/03/09/how-to-add-google-plus-button-code-wordpress-wihtout-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add Feedburner RSS feed email subscription form in wordpress without plugin</title>
		<link>http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/</link>
		<comments>http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 08:22:14 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[wordpress news]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[subscription]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=7024</guid>
		<description><![CDATA[http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/Many blogger and people want to add the feedburner RSS feed email subscription form in there website. In this post I created very simple tutorial for this. What is RSS? The easiest way to receive latest posts from your favorite &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/<p>Many blogger and people want to add the feedburner RSS feed email subscription form in there website.<br />
In this post I created very simple tutorial for this.</p>
<p><strong>What is RSS?</strong></p>
<p>The easiest way to receive latest posts from your favorite blogs is to subscribe to RSS using feed readers such as Google Reader, Bloglines, NetVibes.<br />
RSS (means Really Simple Syndication) retrieves the latest content from the sites you are interested and pulls them into your feed reader where you can read them all in one location rather than visiting each site separately.</p>
<p><strong>What is FeedBurner?</strong></p>
<p>Most blogs have RSS feed which is detected automatically by commonly used feed readers when the blog URL is added to the reader.</p>
<p>&nbsp;</p>
<h3>Setting Up Your Feedburner Feed</h3>
<p>1.  Go to <a href="http://feedburner.google.com/">Feedburner</a> and sign in to Feedburner with your Google Account (<a href="https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Ffeedburner.google.com%2Ffb%2Fa%2Fmyfeeds&amp;service=feedburner">create a Google Account</a> first if you don’t have one!).</p>
<p>However, if you want to make it more obvious and easier for readers to subscribe using RSS, or want to know exactly how many people subscribe to your blog then the best option is to add a Feedburner RSS feed and email subscription to your blog.</p>
<p>&nbsp;</p>
<p>After creating feedburner account go to</p>
<p>1.  Click on the <strong>Publicize Tab</strong> &gt;<strong> Email Subscription</strong> in your Feedburner account and click on <strong>Activate</strong>.</p>
<p>2.   Copy the HTML code.</p>
<p><a href="http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/wordpress-rss-feed-subscription/" rel="attachment wp-att-7025"><img class="alignnone size-full wp-image-7025" title="wordpress-rss-feed-subscription" src="http://images.wordpressapi.com/wordpress-rss-feed-subscription.png" alt="" width="717" height="637" /></a></p>
<p>&nbsp;</p>
<p>After this go to wordpress admin panel and go to widget section and choose text widget.</p>
<p>Add a text widget to the desired sidebar by dragging it from the <strong>Available Widgets</strong> into the Sidebar area on the right.</p>
<p>The widget will automatically open — just add the HTML code for Feedburner email subscription, click <strong>Save</strong> and then <strong>Close</strong>.</p>
<p>&nbsp;</p>
<p>This widget will look as follows:</p>
<p><a href="http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/wp-email-subscription/" rel="attachment wp-att-7026"><img class="alignnone size-full wp-image-7026" title="wp-email-subscription" src="http://images.wordpressapi.com/wp-email-subscription.png" alt="" width="353" height="202" /></a></p>
<p>If you like this article then please subscribe my blog.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/" title="email subscription and feedburner in one plugin">email subscription and feedburner in one plugin</a></li><li><a href="http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/" title="feedburner email subscribe without plugin">feedburner email subscribe without plugin</a></li><li><a href="http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/" title="feedburner form plugins">feedburner form plugins</a></li><li><a href="http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/" title="rss without feedburner">rss without feedburner</a></li><li><a href="http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/" title="subscribe feedburner form plugin">subscribe feedburner form plugin</a></li><li><a href="http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/" title="wordpress plugin feedburner email subscribe 2012">wordpress plugin feedburner email subscribe 2012</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/03/08/add-feedburner-rss-feed-email-subscription-form-in-wordpress-without-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to add the custom post type in wordpress navigation or menu</title>
		<link>http://wordpressapi.com/2012/03/05/how-to-add-custom-post-type-in-wordpress-navigation-or-menu/</link>
		<comments>http://wordpressapi.com/2012/03/05/how-to-add-custom-post-type-in-wordpress-navigation-or-menu/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 17:18:39 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=7016</guid>
		<description><![CDATA[http://wordpressapi.com/2012/03/05/how-to-add-custom-post-type-in-wordpress-navigation-or-menu/Many people wondering how to add the custom post type in wordpress navigation. Best idea is first create the page with custom post type. For example you created custom post type art then you need to create page name with &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/03/05/how-to-add-custom-post-type-in-wordpress-navigation-or-menu/<p>Many people wondering how to add the custom post type in wordpress navigation. Best idea is first create the page with custom post type. For example you created custom post type art then you need to create page name with art. Then create template with name of art. Add following code in that file.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php /* Template Name: Art */
$loop = new WP_Query( array( 'post_type' =&gt; 'art', 'posts_per_page' =&gt; 10 ) );
while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();
the_title();
the_content();
global $post;
$custom = get_post_custom($post-&gt;ID);
echo '&lt;div&gt;';
the_content();
echo '&lt;/div&gt;';
endwhile;
?&gt;
</pre>
<p>Than open your appearance-Menu and add the Art page in navigation or main menu.</p>
<p>Using this trick you can easily add the custom post type in wordpress navigation. </p>
<p><a href="http://wordpressapi.com/2010/11/01/menu-wordpress-3-0-theme/menus-wordpress/" rel="attachment wp-att-5334"><img src="http://images.wordpressapi.com/Menus-WordPress.png" alt="How to add the custom post type in wordpress navigation or menu" title="How to add the custom post type in wordpress navigation or menu" class="alignnone size-full wp-image-5334" /></a></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/03/05/how-to-add-custom-post-type-in-wordpress-navigation-or-menu/" title="custom terms wordpress nav menu">custom terms wordpress nav menu</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/03/05/how-to-add-custom-post-type-in-wordpress-navigation-or-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to implement the Jquery UI datepicker in wordpress</title>
		<link>http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/</link>
		<comments>http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 18:21:08 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[datepicker]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=7011</guid>
		<description><![CDATA[http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/How can use the Jquery UI in your wordpress theme and plugin using following code. For adding the datepicker in theme you need to just add the following code in functions.php file or plugin. For showing the datepicker control in &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/<p>How can use the Jquery UI in your wordpress theme and plugin using following code. For adding the datepicker in theme you need to just add the following code in functions.php file or plugin.</p>
<pre class="brush: php; title: ; notranslate">

add_action( 'init', 'wpapi_date_picker' );
function wpapi_date_picker() {
    wp_enqueue_script( 'jquery' );
    wp_enqueue_script( 'jquery-ui-core' );
    wp_enqueue_script( 'jquery-datepicker', 'http://jquery-ui.googlecode.com/svn/trunk/ui/jquery.ui.datepicker.js', array('jquery', 'jquery-ui-core' ) );
}

add_action( 'wp_footer', 'wpapi_print_scripts');
function wpapi_print_scripts() {
    ?&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    jQuery(document).ready(function() {
        jQuery('#datepicker').datepicker();
    })
&lt;/script&gt;
    &lt;?php
}
</pre>
<p>For showing the datepicker control in theme or plugin use following code.</p>
<pre class="brush: php; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
jQuery(document).ready(function() {
    jQuery('#datepicker').datepicker({
        dateFormat : 'yy-mm-dd'
    });
});
&lt;/script&gt;
</pre>
<div id="attachment_7012" class="wp-caption alignnone<a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/wordpress-datepicker/" rel="attachment wp-att-7012"><img src="http://images.wordpressapi.com/wordpress-datepicker.jpg" alt="How to implement the Jquery UI datepicker in wordpress" title="How to implement the Jquery UI datepicker in wordpress" width="560" height="272" class="size-full wp-image-7012" /></a><p class="wp-caption-text">How to implement the Jquery UI datepicker in wordpress</p></div>
<p>If you have any issue for adding the datepicker control then please add comment or email me.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="how add datepicker in wordpress theme?">how add datepicker in wordpress theme?</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="wordpress search datepicker">wordpress search datepicker</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="wordpress jquery datepicker as search">wordpress jquery datepicker as search</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="wordpress jquery datepicker">wordpress jquery datepicker</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="use datepicker api in php application">use datepicker api in php application</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="jqueryui wordpress">jqueryui wordpress</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="jquery ui datepicker javascript php code">jquery ui datepicker javascript php code</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="how to protect not to be hidden fields in jquery datepicker javascript adding">how to protect not to be hidden fields in jquery datepicker javascript adding</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="How to implement the JqueryUI in HTML">How to implement the JqueryUI in HTML</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="how to implement jquery datepicker ruby">how to implement jquery datepicker ruby</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="how to implement a datepicker using javascript">how to implement a datepicker using javascript</a></li><li><a href="http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/" title="wordpress ui datepicker js in theme template">wordpress ui datepicker js in theme template</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/02/21/how-to-implement-the-jquery-ui-datepicker-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>add javascript and css files into wordpress theme</title>
		<link>http://wordpressapi.com/2012/02/06/add-javascript-and-css-files-into-wordpress-theme/</link>
		<comments>http://wordpressapi.com/2012/02/06/add-javascript-and-css-files-into-wordpress-theme/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 18:17:20 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=7004</guid>
		<description><![CDATA[http://wordpressapi.com/2012/02/06/add-javascript-and-css-files-into-wordpress-theme/Many developers want to add the javascript and css files into wordpress themes. You just need to add following code into functions.php file. You just need to replace Your theme name and javascript and css file name. Incoming search terms:newsletter &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/02/06/add-javascript-and-css-files-into-wordpress-theme/<p>Many developers want to add the javascript and css files into wordpress themes. You just need to add following code into functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
// Register your javascript for properties
function admin_your_javascript(){
    global $post;
    if($post-&gt;post_type == 'post-type' &amp;&amp; is_admin()) {
        wp_enqueue_script('YOUR-JS', WP_CONTENT_URL . '/themes/YOUR-THEME/js/YOUR-JS.js');

    }
}
add_action('admin_print_scripts', 'admin_your_javascript');

// Register your styles for properties
function admin_your_styles(){
    global $post;
    if($post-&gt;post_type == 'post-type' &amp;&amp; is_admin()) {
        wp_enqueue_style('YOUR-CSS', WP_CONTENT_URL . '/themes/YOUR-THEME/css/YOUR-CSS.css');
    }
}
add_action('admin_print_styles', 'admin_your_styles');
</pre>
<p>You just need to replace Your theme name and javascript and css file name.</p>
<div id="attachment_7005" class="wp-caption alignnone<a href="http://wordpressapi.com/2012/02/06/add-javascript-and-css-files-into-wordpress-theme/wordpressapi-wp-css-js/" rel="attachment wp-att-7005"><img class="size-medium wp-image-7005" title="add javascript and css files into wordpress theme" src="http://images.wordpressapi.com/wordpressapi-wp-css-js-300x179.jpg" alt="add javascript and css files into wordpress theme" width="300" height="179" /></a><p class="wp-caption-text">add javascript and css files into wordpress theme</p></div>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/02/06/add-javascript-and-css-files-into-wordpress-theme/" title="newsletter wordpress plugin css">newsletter wordpress plugin css</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/02/06/add-javascript-and-css-files-into-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Show the comments from custom post type in wordpress</title>
		<link>http://wordpressapi.com/2012/01/25/show-the-comments-from-custom-post-type-in-wordpress/</link>
		<comments>http://wordpressapi.com/2012/01/25/show-the-comments-from-custom-post-type-in-wordpress/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 18:48:14 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=7000</guid>
		<description><![CDATA[http://wordpressapi.com/2012/01/25/show-the-comments-from-custom-post-type-in-wordpress/Some time we shows the posts and there comments in sidebar. But what to do for show the comments for custom post type. It&#8217;s not well documented, but according to the codex, you can pass a &#8216;post_type&#8217; variable in the &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/01/25/show-the-comments-from-custom-post-type-in-wordpress/<p>Some time we shows the posts and there comments in sidebar. But what to do for show the comments for custom post type.</p>
<p>It&#8217;s not well documented, but according to the codex, you can pass a &#8216;post_type&#8217; variable in the get_comments function.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
 $comments = get_comments('number=10&amp;status=approve&amp;post_type=YOUR_POST_TYPE');
foreach($comments as $comment) :

// comment loop code will go here

endforeach;
?&gt;
</pre>
<p>Note: This code only useful after wordpress 3.1 version.</p>
<div id="attachment_6862" class="wp-caption alignnone<a href="http://wordpressapi.com/2011/07/27/add-the-comment-preview-to-comment-box-without-wordpress-plugin/wordpress-comments-preview/" rel="attachment wp-att-6862"><img class="size-medium wp-image-6862" title="Show the comments from custom post type in wordpress" src="http://images.wordpressapi.com/wordpress-comments-preview-300x199.jpg" alt="Show the comments from custom post type in wordpress" width="300" height="199" /></a><p class="wp-caption-text">Show the comments from custom post type in wordpress</p></div>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/01/25/show-the-comments-from-custom-post-type-in-wordpress/" title="amazon wordpress plugin custom post type">amazon wordpress plugin custom post type</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/01/25/show-the-comments-from-custom-post-type-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to include the jquery-ui in wordpress</title>
		<link>http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/</link>
		<comments>http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 16:46:25 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[Wordpress Themes]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wp theme]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6996</guid>
		<description><![CDATA[http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/When you enqueue your script, it enqueues for the whole site including admin panel. If you don&#8217;t want the script in the admin panel, you can only include them for the site in frontend. This following code you need to &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/<p>When you enqueue your script, it enqueues for the whole site including admin panel. If you don&#8217;t want the script in the admin panel, you can only include them for the site in frontend.</p>
<p>This following code you need to add in functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
function my_add_frontend_scripts() {
    if( ! is_admin() ) {
        wp_enqueue_script('jquery');
        wp_enqueue_script('jquery-ui-core');
    }
}
add_action('init', 'my_add_frontend_scripts');
</pre>
<p>Then you are able to see the jquery-ui in your wordpress theme.<a href="http://wordpressapi.com/2011/02/02/jquery-tips-wordpress-theme-developers/add-jquery-wordpress/" rel="attachment wp-att-6081"><img src="http://images.wordpressapi.com/add-jquery-wordpress-300x94.jpg" alt="" title="add-jquery-wordpress" width="300" height="94" class="alignnone size-medium wp-image-6081" /></a></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/" title="how to include jquery ui in wordpress">how to include jquery ui in wordpress</a></li><li><a href="http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/" title="includes jquery ui wordpress">includes jquery ui wordpress</a></li><li><a href="http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/" title="jquery ui grid to pdf using php">jquery ui grid to pdf using php</a></li><li><a href="http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/" title="jquery ui wordpress">jquery ui wordpress</a></li><li><a href="http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/" title="jquery wordpress api">jquery wordpress api</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/01/18/how-to-include-jquery-ui-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change uploaded image name to post slug during upload using variables</title>
		<link>http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/</link>
		<comments>http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 18:09:48 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[wordpress hack]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6993</guid>
		<description><![CDATA[http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/If you want to rename files during upload and set their names to the post slug the files are beeing attached to, plus some random characters (a simple incremental counter will de just fine) to make the filenames different. In &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/<p>If you want to  rename files during upload and set their names to the post slug the files are beeing attached to, plus some random characters (a simple incremental counter will de just fine) to make the filenames different.<br />
<div id="attachment_6994" class="wp-caption alignnone<a href="http://wordpressapi.com/?attachment_id=6994" rel="attachment wp-att-6994"><img src="http://images.wordpressapi.com/change-uploaded-image-name-to-post-slug-during-upload-using-variables-300x192.png" alt="Change uploaded image name to post slug during upload using variables" title="Change uploaded image name to post slug during upload using variables" width="300" height="192" class="size-medium wp-image-6994" /></a><p class="wp-caption-text">Change uploaded image name to post slug during upload using variables</p></div></p>
<p>In other words, if you are uploading/attaching images to the post whose page slug is &#8220;test-page-slug&#8221;, i&#8217;d like for the images to be renamed on the fly to test-page-slug-[C].[original_extension] — test-page-slug-1.jpg, test-page-slug-2.jpg etc (no matter what the original filenames were).</p>
<p>This is very easy. You just need to use following hook in functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
function wp_modify_uploaded_file_names($image_name) {

    // Get the parent post ID, if there is one
    if( isset($_GET['post_id']) ) {
        $post_id = $_GET['post_id'];
    } elseif( isset($_POST['post_id']) ) {
        $post_id = $_POST['post_id'];
    }

    // Only do this if we got the post ID--otherwise they're probably in
    //  the media section rather than uploading an image from a post.
    if(is_numeric($post_id)) {

        // Get the post slug
        $post_obj = get_post($post_id);
        $post_slug = $post_obj-&gt;post_name;

        // If we found a slug
        if($post_slug) {

            $random_number = rand(10000,99999);
            $image_name['name'] = $post_slug . '-' . $random_number . '.jpg';

        }

    }

    return $image_name;

}
add_filter('wp_handle_upload_prefilter', 'wp_modify_uploaded_file_names', 1, 1);
</pre>
<p>This is very easy.<br />
if you have pretty permalinks enabled, so I&#8217;ve added a check to make sure there is a slug before renaming the file. You&#8217;ll also want to consider checking the file type, which I haven&#8217;t done here&#8211;I&#8217;ve just assumed it&#8217;s a jpg.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="change upload image nem wordpress">change upload image nem wordpress</a></li><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="$post_slug = $post_obj-&gt;post_name;">$post_slug = $post_obj-&gt;post_name;</a></li><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="how can we change uploaded image name">how can we change uploaded image name</a></li><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="how to upload and rename image in php">how to upload and rename image in php</a></li><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="jmeter change filename post upload">jmeter change filename post upload</a></li><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="wordpress api chm">wordpress api chm</a></li><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="wordpress api post php 2012">wordpress api post php 2012</a></li><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="wordpress plugin api database">wordpress plugin api database</a></li><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="wordpress upload pictures into folder named by post slug">wordpress upload pictures into folder named by post slug</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: wordpressapi.com @ 2012-05-23 18:50:07 by W3 Total Cache -->
