<?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 api</title>
	<atom:link href="http://wordpressapi.com/category/wordpress/wordpress-api/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>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>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>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>Send email through wp_mail in html format with wordpress</title>
		<link>http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/</link>
		<comments>http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 09:59:54 +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[code]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6986</guid>
		<description><![CDATA[http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/In wordpress we use the wp_mail function for sending email. Following parameters we use for wp_mail Parameters Simple example: We can use this code for contact form or in functions.php file For html format email from wordpress. we just need &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/<p>In wordpress we use the wp_mail function for sending email. Following parameters we use for wp_mail</p>
<p><!--?php wp_mail( $to, $subject, $message, $headers, $attachments ); ?--><br />
Parameters</p>
<pre class="brush: php; title: ; notranslate">
$to
    (string or array) (required) The intended recipient(s). Multiple recipients may be specified using an array or a comma-separated string.

$subject
    (string) (required) The subject of the message.

$message
    (string) (required) Message content.

$headers
    (string or array) (optional) Mail headers to send with the message. (advanced)

$attachments
    (string or array) (optional) Files to attach: a single filename, an array of filenames, or a newline-delimited string list of multiple filenames. (advanced)
</pre>
<p>Simple example:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
   $attachments = array(WP_CONTENT_DIR . '/uploads/file_to_attach.zip');
   $headers = 'From: My Name &lt;myname@mydomain.com&gt;' . &quot;\r\n&quot;;
   wp_mail('test@test.com', 'subject', 'message', $headers, $attachments);
?&gt;
</pre>
<div id="attachment_6987" class="wp-caption alignnone<a href="http://wordpressapi.com/?attachment_id=6987" rel="attachment wp-att-6987"><img class="size-medium wp-image-6987" title="Send email through wp_mail in html format with wordpress" src="http://images.wordpressapi.com/wordpress-html-email-300x179.jpg" alt="Send email through wp_mail in html format with wordpress" width="300" height="179" /></a><p class="wp-caption-text">Send email through wp_mail in html format with wordpress</p></div>
<p>We can use this code for contact form or in functions.php file</p>
<p>For html format email from wordpress. we just need to add following line in functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
add_filter('wp_mail_content_type',create_function('', 'return &quot;text/html&quot;;'));
</pre>
<p>Sending HTML email has risks. It could be caught in spam filters. The client may not support HTML formatting (although that&#8217;s rare). The client may disable email HTML from using javascript, CSS or grabbing remote assets like images.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="wp_mail tutorial">wp_mail tutorial</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="wp_mail examples">wp_mail examples</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="how to send html email wp_mail">how to send html email wp_mail</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="wp_mail send pdf file">wp_mail send pdf file</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="wp_mail link &lt;a href">wp_mail link &lt;a href</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="wp_mail html format">wp_mail html format</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="wp_mail header wordpress">wp_mail header wordpress</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="wp_mail example">wp_mail example</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="wordpress send mail format">wordpress send mail format</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="send mail with wp_mail">send mail with wp_mail</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="send form wordpress wp_mail without plugin">send form wordpress wp_mail without plugin</a></li><li><a href="http://wordpressapi.com/2012/01/06/send-email-through-wp_mail-in-html-format-with-wordpress/" title="wp_mail with html header">wp_mail with html header</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/06/send-email-through-wp_mail-in-html-format-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>how to integrate the wordpress with php or html</title>
		<link>http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/</link>
		<comments>http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 17:10: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[html]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6974</guid>
		<description><![CDATA[http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/WordPress is very easy to work on. you can very easily integrate the wordpress with php or html site. There may be only a few features of WordPress you want to use when integrating it with your site, or you &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/<p>WordPress is very easy to work on. you can very easily integrate the wordpress with php or html site. There may be only a few features of WordPress you want to use when integrating it with your site, or you may want your entire site run with WordPress. This tutorial will guide you through making your WordPress site look like your current design.</p>
<p>How to start?<br />
First you need to disable the wordpress theme. using following code.</p>
<p>open your header.php file from your wordpress theme and put following code in that file.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/* Short and sweet */
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');
?&gt;
</pre>
<p>Create any php file and put following code in that file.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
require('/the/path/to/your/wp-blog-header.php');
?&gt;
</pre>
<p>In the event you want to show ten posts sorted alphabetically in ascending order on your web page, you could do the following to grab the posted date, title and excerpt:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
require('/the/path/to/your/wp-blog-header.php');
?&gt;

&lt;?php
$posts = get_posts('numberposts=10&amp;order=ASC&amp;orderby=post_title');
foreach ($posts as $post) : start_wp(); ?&gt;
&lt;?php the_date(); echo &quot;&lt;br /&gt;&quot;; ?&gt;
&lt;?php the_title(); ?&gt;
&lt;?php the_excerpt(); ?&gt;
&lt;?php
endforeach;
?&gt;
</pre>
<div id="attachment_6975" class="wp-caption alignnone<a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/convert-html-to-wordpress/" rel="attachment wp-att-6975"><img class="size-medium wp-image-6975" title="how to integrate the wordpress with php or html" src="http://images.wordpressapi.com/Convert-HTML-to-Wordpress-300x214.jpg" alt="how to integrate the wordpress with php or html" width="300" height="214" /></a><p class="wp-caption-text">how to integrate the wordpress with php or html</p></div>
<p>For more information you can write to me.</p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to add the custom post type with associated tags and category</title>
		<link>http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/</link>
		<comments>http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 18:03:09 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[custom post type]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6948</guid>
		<description><![CDATA[http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/Many times we use the custom post type in wordpress. Some times we need to category and tags for custom post type which are only associated. you can use the following code in funcations.php file. Please consult with your developer. &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/<p>Many times we use the custom post type in wordpress. Some times we need to category and tags for custom post type which are only associated.</p>
<p>you can use the following code in funcations.php file.</p>
<pre class="brush: php; title: ; notranslate">
// === CUSTOM POST TYPES === //
function create_my_post_types() {
	register_post_type( 'Services',
		array(
			'labels' =&gt; array(
				'name' =&gt; __( 'Services' ),
				'singular_name' =&gt; __( 'Services' ),
				'add_new_item' =&gt; 'Add New Services',
				'edit_item' =&gt; 'Edit Services',
				'new_item' =&gt; 'New Services',
				'search_items' =&gt; 'Search Services',
				'not_found' =&gt; 'No Services found',
				'not_found_in_trash' =&gt; 'No Services found in trash',
			),
			'_builtin' =&gt; false,
			'public' =&gt; true,
			'hierarchical' =&gt; false,
			'taxonomies' =&gt; array( 'website_type', 'service'),
			'supports' =&gt; array(
				'title',
				'editor',
				'excerpt',
                                'thumbnail'
			),
			'rewrite' =&gt; array( 'slug' =&gt; 'services', 'with_front' =&gt; false ),

		)
	);
}
add_action( 'init', 'create_my_post_types' );

// === CUSTOM TAXONOMIES === //
function my_custom_taxonomies() {
	register_taxonomy(
		'website_type',		// internal name = machine-readable taxonomy name
		'Services',		// object type = post, page, link, or custom post-type
		array(
			'hierarchical' =&gt; true,
			'label' =&gt; 'Website Types',	// the human-readable taxonomy name
			'query_var' =&gt; true,	// enable taxonomy-specific querying
			'rewrite' =&gt; array( 'slug' =&gt; 'website_type' ),	// pretty permalinks for your taxonomy?
		)
	);
	register_taxonomy(
		'service',
		'post',
		array(
			'hierarchical' =&gt; false,
			'label' =&gt; 'Service',
			'query_var' =&gt; true,
			'rewrite' =&gt; array( 'slug' =&gt; 'service' ),
		)
	);

}
add_action('init', 'my_custom_taxonomies', 0);
</pre>
<p>Please consult with your developer.</p>
<div id="attachment_6968" class="wp-caption alignnone<a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/custom-post-type-wordpress1-2/" rel="attachment wp-att-6968"><img class="size-full wp-image-6968" title="How to add the custom post type with associated tags and category" src="http://images.wordpressapi.com/custom-post-type-wordpress11.gif" alt="How to add the custom post type with associated tags and category" width="300" height="250" /></a><p class="wp-caption-text">How to add the custom post type with associated tags and category</p></div>
<p>&nbsp;</p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="wordpress custom post type tags">wordpress custom post type tags</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="add category slug to custom post type">add category slug to custom post type</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="how category is associated with post in wordpress">how category is associated with post in wordpress</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/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>change permalinks as per your choice in wordpress using post_link filter</title>
		<link>http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/</link>
		<comments>http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 17:12:54 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6951</guid>
		<description><![CDATA[http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/WordPress publishing URL you can change to anything using following function. Following wordpress hook is very important. You can publish article with different URL or domain also. Using your blog you can publish your article to another URL also. You &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/<p>WordPress publishing URL you can change to anything using following function. Following wordpress hook is very important. You can publish article with different URL or domain also. Using your blog you can publish your article to another URL also.</p>
<p>You just need to open your functions.php file and put following function in that file.</p>
<p><span class="Apple-style-span" style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<pre class="brush: php; title: ; notranslate">&lt;/span&gt;
&lt;pre&gt;&lt;pre&gt;
add_filter('post_link', 'fitsmi_post_link');
function fitsmi_post_link($permalink) {
	global $post;
        $permalink = str_replace(&quot;wordpress/&quot;, &quot;&quot;, $permalink);
        return $permalink;
	if (!isset($post))
		return $permalink;
	else
		return 'http://hack.by.wordpressapi/';
}
</pre>
<div id="attachment_6964" class="wp-caption alignnone<a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/wordpress-custom-url/" rel="attachment wp-att-6964"><img class="size-medium wp-image-6964" title="change permalinks as per your choice in wordpress using post_link filter" src="http://images.wordpressapi.com/wordpress-custom-url-300x199.jpg" alt="change permalinks as per your choice in wordpress using post_link filter" width="300" height="199" /></a><p class="wp-caption-text">change permalinks as per your choice in wordpress using post_link filter</p></div>
<p>&nbsp;</p>
<pre>With following function you need to be very careful.</pre>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="fedora wordpress change permalinks">fedora wordpress change permalinks</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="wordpress hook change permalink before display post">wordpress hook change permalink before display post</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="wordpress api to edit permilinks">wordpress api to edit permilinks</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="ruby wordpress api edit">ruby wordpress api edit</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="post_link wordpress">post_link wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="post_link hook">post_link hook</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="permalink=str_replace">permalink=str_replace</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="function Replace post_link wordpress">function Replace post_link wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="function replace post_link">function replace post_link</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="wordpress post_link filter">wordpress post_link filter</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/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: wordpressapi.com @ 2012-05-23 18:50:55 by W3 Total Cache -->
