<?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>Mon, 06 Feb 2012 18:17:21 +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>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. Follow us on &#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>
<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>0</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>
<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="html form using wp_mail">html form using 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 not sending">wp_mail not sending</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>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/" title="including wp-blog-header php wordpress 3 3">including wp-blog-header php wordpress 3 3</a></li><li><a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/" title="integrating wordpress in site html">integrating wordpress in site html</a></li><li><a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/" title="how to integrate api for wordpress">how to integrate api for wordpress</a></li><li><a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/" title="how to integrate wp in to phpbb design">how to integrate wp in to phpbb design</a></li><li><a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/" title="html to php for wordpress">html to php for wordpress</a></li><li><a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/" title="integrate wordpress terms in php">integrate wordpress terms in php</a></li><li><a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/" title="qtranslate sort custom post alphabetical">qtranslate sort custom post alphabetical</a></li><li><a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/" title="tutorials for integrating wordpress in iphone">tutorials for integrating wordpress in iphone</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/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="how to add qtranslate slug into custom post">how to add qtranslate slug into custom post</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="wordpress custom rewrite slug for taxonomy without plugin">wordpress custom rewrite slug for taxonomy without plugin</a></li><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 types category tags">wordpress custom post types category 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="wordpress 3 3 custom post type rewrite taxonomy">wordpress 3 3 custom post type rewrite taxonomy</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="rails blog post type design">rails blog post type design</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="qtranslate slug custom taxonomy">qtranslate slug custom taxonomy</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="proudly powered by wordpress tags posted categories">proudly powered by wordpress tags posted categories</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="html slug to wordpress custom post types">html slug to wordpress custom post types</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 tag to wordpress bookmarker">add tag to wordpress bookmarker</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="custom post type hierarchical howto">custom post type hierarchical howto</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="custom post type and category slug">custom post type and category slug</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="category php custom post type">category php 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="category name custom post type">category name 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="assciated tag for amazon de">assciated tag for amazon de</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="adding tags to custom post types">adding tags to custom post types</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 tags to custom post types">add tags to custom post types</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 tags to custom post">add tags to custom post</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="wordpress query_posts append post type">wordpress query_posts append 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/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="post_link filter arguments wordpress">post_link filter arguments wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="change permalink post_link">change permalink post_link</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="post_link">post_link</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="cars themes filter wordpress">cars themes filter wordpress</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><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="wordpress filter post_link">wordpress filter post_link</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="wordpress filter permalink">wordpress filter permalink</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="post_link filter">post_link filter</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="filter permalink wordpress">filter permalink wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="drupal permalink hack">drupal permalink hack</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="wordpress::api replace image">wordpress::api replace image</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>
		<item>
		<title>solved: pagination for Custom post type not working</title>
		<link>http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/</link>
		<comments>http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 15:06:26 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[custom post type]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6940</guid>
		<description><![CDATA[http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/Some people asked me about pagination of custom post type. That is very easy. For showing the custom post type we always use the query_post method. Just use the following code in your template or theme file. Have fun! Incoming &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/<pre>Some people asked me about pagination of custom post type. That is very easy.</pre>
<p>For showing the custom post type we always use the query_post method.</p>
<p>Just use the following code in your template or theme file.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php get_header(); ?&gt;

            &lt;?php  query_posts( 'post_type=custom-post-type&amp;paged='.$paged );
                                    if (have_posts()) : while (have_posts()) : the_post(); ?&gt;

loop here

              			&lt;?php endwhile; ?&gt;
				  &lt;div id=&quot;nav-below&quot; class=&quot;navigation&quot;&gt;
					&lt;div class=&quot;nav-previous&quot;&gt;&lt;?php next_posts_link( __( '&lt;span class=&quot;meta-nav&quot;&gt;&amp;larr;&lt;/span&gt; Older posts', 'twentyten' ) ); ?&gt;&lt;/div&gt;
					&lt;div class=&quot;nav-next&quot;&gt;&lt;?php previous_posts_link( __( 'Newer posts &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' ) ); ?&gt;&lt;/div&gt;
				  &lt;/div&gt;&lt;!-- #nav-below --&gt;
				  &lt;?php endif; wp_reset_query(); ?&gt;

&lt;?php get_footer(); ?&gt;
</pre>
<div id="attachment_6941" class="wp-caption aligncenter<a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/custom-post-type-wordpress1/" rel="attachment wp-att-6941"><img class="size-full wp-image-6941 " title="solved: pagination for Custom post type not working" src="http://images.wordpressapi.com/custom-post-type-wordpress1.gif" alt="solved: pagination for Custom post type not working" width="300" height="250" /></a><p class="wp-caption-text">solved: pagination for Custom post type not working</p></div>
<p>Have fun!</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="custom post type ui archive pagination">custom post type ui archive pagination</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="custom post type archives wordpress 3 3">custom post type archives wordpress 3 3</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="next article in custom post type">next article in custom post type</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="custom paging for custom post type ajax">custom paging for custom post type ajax</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="qtranslate previous_posts_link">qtranslate previous_posts_link</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="query_posts and pagination not working with custom taxonomy posts wordpress">query_posts and pagination not working with custom taxonomy posts wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="wordpress 3 3 pagination on custom query">wordpress 3 3 pagination on custom query</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="wordpress 3 3 pagination problem">wordpress 3 3 pagination problem</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="wordpress 3 3 paging">wordpress 3 3 paging</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="wordpress custom post type pagination not showing">wordpress custom post type pagination not showing</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="wordpress custom post type pagination not working">wordpress custom post type pagination not working</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="wordpress custom post type previous_post_link">wordpress custom post type previous_post_link</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="wordpress javascript pagination">wordpress javascript pagination</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="qtranslate next_post_link">qtranslate next_post_link</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="qtranslate custom slug">qtranslate custom slug</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="custom post type archive with pagination">custom post type archive with pagination</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="custom post type pagination not showing">custom post type pagination not showing</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="custom post type pagination post nav link ?">custom post type pagination post nav link ?</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="custom post type ui qtranslate">custom post type ui qtranslate</a></li><li><a href="http://wordpressapi.com/2011/11/17/solved-pagination-for-custom-post-type-not-working/" title="custom taxonomy wordpress pagination is not working">custom taxonomy wordpress pagination is not working</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/17/solved-pagination-for-custom-post-type-not-working/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>wordpress pagination with query_posts</title>
		<link>http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/</link>
		<comments>http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 15:44:14 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6925</guid>
		<description><![CDATA[http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/Mostly people use the query_posts function for fetching the specific posts. But most of all people face issue with pagination. Just use following code for pagination. It is simple and easy. Incoming search terms:wordpress 3 3 query_postsquery_posts paginationsimple php codes &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/<p>Mostly people use the query_posts function for fetching the specific posts. But most of all people face issue with pagination.</p>
<p>Just use following code for pagination. It is simple and easy.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts( 'post_type=documents&amp;paged='.$paged );
query_posts( 'post_type=post&amp;paged='.$paged );
if (have_posts()) : while (have_posts()) : the_post(); ?&gt;

&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
&lt;?php the_excerpt();  ?&gt;

 &lt;?php endwhile; ?&gt;
&lt;div id=&quot;nav-below&quot; class=&quot;navigation&quot;&gt;
                                        &lt;div class=&quot;nav-previous&quot;&gt;&lt;?php next_posts_link( __( '&lt;span class=&quot;meta-nav&quot;&gt;&amp;larr;&lt;/span&gt; Older posts', 'twentyten' ) ); ?&gt;&lt;/div&gt;
                                        &lt;div class=&quot;nav-next&quot;&gt;&lt;?php previous_posts_link( __( 'Newer posts &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' ) ); ?&gt;&lt;/div&gt;
                                &lt;/div&gt;&lt;!-- #nav-below --&gt;
                                  &lt;?php endif; wp_reset_query(); ?&gt;
</pre>
<div id="attachment_6926" class="wp-caption alignnone<a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/wordpress-pag/" rel="attachment wp-att-6926"><img class="size-full wp-image-6926" title="wordpress pagination with query_posts" src="http://images.wordpressapi.com/wordpress-pag.jpg" alt="wordpress pagination with query_posts" width="550" height="200" /></a><p class="wp-caption-text">wordpress pagination with query_posts</p></div>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="wordpress 3 3 query_posts">wordpress 3 3 query_posts</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="query_posts pagination">query_posts pagination</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="simple php codes for pagination">simple php codes for pagination</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="query_posts pagination remove">query_posts pagination remove</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="wordpress older newer post paging plugin with ajax">wordpress older newer post paging plugin with ajax</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="custom pagination with get_posts in wordpress">custom pagination with get_posts in wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="twenty ten query_posts">twenty ten query_posts</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="wordpress 3 query post">wordpress 3 query post</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="wordpress query_posts ajax">wordpress query_posts ajax</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="wordpress query_posts home disable pagination">wordpress query_posts home disable pagination</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="wordpress seo plugin query_posts">wordpress seo plugin query_posts</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="wordpress wp_query post meta search">wordpress wp_query post meta search</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="query_posts() next post">query_posts() next post</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="query_posts пагинация">query_posts пагинация</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="get_posts qtranslate">get_posts qtranslate</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="pagination wordpress archive query_post">pagination wordpress archive query_post</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="previous and next with query posts wordpress">previous and next with query posts wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="qtranslate and query_posts">qtranslate and query_posts</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="qtranslate pagination broken">qtranslate pagination broken</a></li><li><a href="http://wordpressapi.com/2011/11/15/wordpress-pagination-with-query_posts/" title="query_posts ajax pagination">query_posts ajax pagination</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/15/wordpress-pagination-with-query_posts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Limit excerpt length by characters in wordpress</title>
		<link>http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/</link>
		<comments>http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 18:46:59 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[free wp theme]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6911</guid>
		<description><![CDATA[http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/I already written about this in following article. But some people need the more advanced excerpt. http://wordpressapi.com/2010/08/11/set-wordpress-post-excerpt-length-limited-characters/ First open your functions.php file and put following code in that file. Use this function if you&#8217;re planning on using it more than &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/<p>I already written about this in following article. But some people need the more advanced excerpt.</p>
<p><a href="http://wordpressapi.com/2010/08/11/set-wordpress-post-excerpt-length-limited-characters/">http://wordpressapi.com/2010/08/11/set-wordpress-post-excerpt-length-limited-characters/</a></p>
<p>First open your functions.php file and put following code in that file.</p>
<pre class="brush: php; title: ; notranslate">
function get_excerpt($count){
  $permalink = get_permalink($post-&gt;ID);
  $excerpt = get_the_content();
  $excerpt = strip_tags($excerpt);
  $excerpt = substr($excerpt, 0, $count);
  $excerpt = substr($excerpt, 0, strripos($excerpt, &quot; &quot;));
  $excerpt = $excerpt.'... &lt;a href=&quot;'.$permalink.'&quot;&gt;more&lt;/a&gt;';
  return $excerpt;
}
</pre>
<p>Use this function if you&#8217;re planning on using it more than once with a different amount of characters.</p>
<p>Call the function plus the amount of characters -</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php echo get_excerpt(125); ?&gt;
</pre>
<div id="attachment_6912" class="wp-caption alignnone<a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/wordpress-excerpt-short/" rel="attachment wp-att-6912"><img class="size-full wp-image-6912" title="Limit excerpt length by characters in wordpress" src="http://images.wordpressapi.com/wordpress-excerpt-short.jpg" alt="Limit excerpt length by characters in wordpress" width="190" height="220" /></a><p class="wp-caption-text">Limit excerpt length by characters in wordpress</p></div>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress excerpt length">wordpress excerpt length</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="excerpt by character length">excerpt by character length</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="Limit Posts Options excerpt length">Limit Posts Options excerpt length</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress limit excerpt characters">wordpress limit excerpt characters</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="limit excerpt length wordpress">limit excerpt length wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress content limit character">wordpress content limit character</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress content limit to words code">wordpress content limit to words code</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress custom excerpt characters">wordpress custom excerpt characters</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress excerpt">wordpress excerpt</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="character limit excerpt wordpress">character limit excerpt wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress excerpt length characters">wordpress excerpt length characters</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress limit word into comment">wordpress limit word into comment</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress recent comments word limit">wordpress recent comments word limit</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress set excerpt size japanese content">wordpress set excerpt size japanese content</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="wordpress the_excerpt character limit">wordpress the_excerpt character limit</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="the_news_excerpt character">the_news_excerpt character</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="show facebook rss in wordpress limit characters">show facebook rss in wordpress limit characters</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="comment excerpt limit">comment excerpt limit</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="excerpt legnt wordpress 3 3">excerpt legnt wordpress 3 3</a></li><li><a href="http://wordpressapi.com/2011/11/04/limit-excerpt-length-by-characters-in-wordpress/" title="excerpt limit wordpress without plugin for 3 0">excerpt limit wordpress without plugin for 3 0</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/04/limit-excerpt-length-by-characters-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create the breadcrumbs in wordpress</title>
		<link>http://wordpressapi.com/2011/11/02/how-to-create-the-breadcrumbs-in-wordpress/</link>
		<comments>http://wordpressapi.com/2011/11/02/how-to-create-the-breadcrumbs-in-wordpress/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 18:05:14 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[breadcrumbs]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6905</guid>
		<description><![CDATA[http://wordpressapi.com/2011/11/02/how-to-create-the-breadcrumbs-in-wordpress/In many sits we need to show the breadcrumbs in site. For pages and category we can create the breadcrumbs. We need to put following code in functions.php file. After that put following code in header.php file. After putting above &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2011/11/02/how-to-create-the-breadcrumbs-in-wordpress/<p>In many sits we need to show the breadcrumbs in site. For pages and category we can create the breadcrumbs.<br />
We need to put following code in functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
function wordpress_breadcrumbs() {

  $delimiter = '&amp;raquo;';
  $name = 'Home'; //text for the 'Home' link
  $currentBefore = '&lt;span class=&quot;current&quot;&gt;';
  $currentAfter = '&lt;/span&gt;';

  if ( !is_home() &amp;&amp; !is_front_page() || is_paged() ) {

    echo '&lt;div id=&quot;crumbs&quot;&gt;';

    global $post;
    $home = get_bloginfo('url');
    echo '&lt;a href=&quot;' . $home . '&quot;&gt;' . $name . '&lt;/a&gt; ' . $delimiter . ' ';

    if ( is_category() ) {
      global $wp_query;
      $cat_obj = $wp_query-&gt;get_queried_object();
      $thisCat = $cat_obj-&gt;term_id;
      $thisCat = get_category($thisCat);
      $parentCat = get_category($thisCat-&gt;parent);
      if ($thisCat-&gt;parent != 0) echo(get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' '));
      echo $currentBefore . 'Archive by category &amp;#39;';
      single_cat_title();
      echo '&amp;#39;' . $currentAfter;

    } elseif ( is_day() ) {
      echo '&lt;a href=&quot;' . get_year_link(get_the_time('Y')) . '&quot;&gt;' . get_the_time('Y') . '&lt;/a&gt; ' . $delimiter . ' ';
      echo '&lt;a href=&quot;' . get_month_link(get_the_time('Y'),get_the_time('m')) . '&quot;&gt;' . get_the_time('F') . '&lt;/a&gt; ' . $delimiter . ' ';
      echo $currentBefore . get_the_time('d') . $currentAfter;

    } elseif ( is_month() ) {
      echo '&lt;a href=&quot;' . get_year_link(get_the_time('Y')) . '&quot;&gt;' . get_the_time('Y') . '&lt;/a&gt; ' . $delimiter . ' ';
      echo $currentBefore . get_the_time('F') . $currentAfter;

    } elseif ( is_year() ) {
      echo $currentBefore . get_the_time('Y') . $currentAfter;

    } elseif ( is_single() ) {
      $cat = get_the_category(); $cat = $cat[0];
      echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
      echo $currentBefore;
      the_title();
      echo $currentAfter;

    } elseif ( is_page() &amp;&amp; !$post-&gt;post_parent ) {
      echo $currentBefore;
      the_title();
      echo $currentAfter;

    } elseif ( is_page() &amp;&amp; $post-&gt;post_parent ) {
      $parent_id  = $post-&gt;post_parent;
      $breadcrumbs = array();
      while ($parent_id) {
        $page = get_page($parent_id);
        $breadcrumbs[] = '&lt;a href=&quot;' . get_permalink($page-&gt;ID) . '&quot;&gt;' . get_the_title($page-&gt;ID) . '&lt;/a&gt;';
        $parent_id  = $page-&gt;post_parent;
      }
      $breadcrumbs = array_reverse($breadcrumbs);
      foreach ($breadcrumbs as $crumb) echo $crumb . ' ' . $delimiter . ' ';
      echo $currentBefore;
      the_title();
      echo $currentAfter;

    } elseif ( is_search() ) {
      echo $currentBefore . 'Search results for &amp;#39;' . get_search_query() . '&amp;#39;' . $currentAfter;

    } elseif ( is_tag() ) {
      echo $currentBefore . 'Posts tagged &amp;#39;';
      single_tag_title();
      echo '&amp;#39;' . $currentAfter;

    } elseif ( is_author() ) {
       global $author;
      $userdata = get_userdata($author);
      echo $currentBefore . 'Articles posted by ' . $userdata-&gt;display_name . $currentAfter;

    } elseif ( is_404() ) {
      echo $currentBefore . 'Error 404' . $currentAfter;
    }

    if ( get_query_var('paged') ) {
      if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' (';
      echo __('Page') . ' ' . get_query_var('paged');
      if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')';
    }

    echo '&lt;/div&gt;';

  }
}
?&gt;
</pre>
<p>After that put following code in header.php file.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php if (function_exists('wordpress_breadcrumbs')) wordpress_breadcrumbs(); ?&gt;
</pre>
<p>After putting above code we can see the breadcrumbs as following;</p>
<p>Home » Parent Page » Sub Page1 » Sub Page2</p>
<p>Home » Category » Subcategory » Post Name</p>
<div id="attachment_6907" class="wp-caption alignnone<a href="http://wordpressapi.com/2011/11/02/how-to-create-the-breadcrumbs-in-wordpress/breadcrumbs_frontend/" rel="attachment wp-att-6907"><img class="size-full wp-image-6907" title="How to create the breadcrumbs in wordpress" src="http://images.wordpressapi.com/Breadcrumbs_frontend.jpg" alt="How to create the breadcrumbs in wordpress" width="446" height="311" /></a><p class="wp-caption-text">How to create the breadcrumbs in wordpress</p></div>
<p>Code has been taken from above <a title="wordpress breadcrumbs" href="http://www.wavesdream.com/how-to-create-simple-wordpress-breadcrumbs/" target="_blank">Source</a></p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2011/11/02/how-to-create-the-breadcrumbs-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: wordpressapi.com @ 2012-02-10 05:59:31 by W3 Total Cache -->
