<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wordpress API &#187; wordpress</title>
	<atom:link href="http://wordpressapi.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpressapi.com</link>
	<description>Wordpress Tutorials, Tips, Code, Hacks, Themes, plugin, Developer Code book -Wordpress Code, Themes, Plugins, Tips, Tutorials, News, Releases, Designs, Hacks, Tricks, Blog</description>
	<lastBuildDate>Wed, 25 Jan 2012 18:48:14 +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>Show the comments from custom post type in wordpress</title>
		<link>http://wordpressapi.com/2012/01/25/show-the-comments-from-custom-post-type-in-wordpress/</link>
		<comments>http://wordpressapi.com/2012/01/25/show-the-comments-from-custom-post-type-in-wordpress/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 18:48:14 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[wp]]></category>

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

// comment loop code will go here

endforeach;
?&gt;
</pre>
<p>Note: This code only useful after wordpress 3.1 version.</p>
<div id="attachment_6862" class="wp-caption alignnone<a href="http://wordpressapi.com/2011/07/27/add-the-comment-preview-to-comment-box-without-wordpress-plugin/wordpress-comments-preview/" rel="attachment wp-att-6862"><img class="size-medium wp-image-6862" title="Show the comments from custom post type in wordpress" src="http://images.wordpressapi.com/wordpress-comments-preview-300x199.jpg" alt="Show the comments from custom post type in wordpress" width="300" height="199" /></a><p class="wp-caption-text">Show the comments from custom post type in wordpress</p></div>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/01/25/show-the-comments-from-custom-post-type-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>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>Change uploaded image name to post slug during upload using variables</title>
		<link>http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/</link>
		<comments>http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 18:09:48 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[wordpress hack]]></category>
		<category><![CDATA[wp]]></category>

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

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

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

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

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

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

        }

    }

    return $image_name;

}
add_filter('wp_handle_upload_prefilter', 'wp_modify_uploaded_file_names', 1, 1);
</pre>
<p>This is very easy.<br />
if you have pretty permalinks enabled, so I&#8217;ve added a check to make sure there is a slug before renaming the file. You&#8217;ll also want to consider checking the file type, which I haven&#8217;t done here&#8211;I&#8217;ve just assumed it&#8217;s a jpg.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="change wordpress image name">change wordpress image name</a></li><li><a href="http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/" title="wordpress media-upload options page no post_id">wordpress media-upload options page no post_id</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2012/01/11/change-uploaded-image-name-to-post-slug-during-upload-using-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solved: qTranslate slug with Widget not working with pages</title>
		<link>http://wordpressapi.com/2012/01/09/solved-qtranslate-slug-with-widget-not-working-with-pages/</link>
		<comments>http://wordpressapi.com/2012/01/09/solved-qtranslate-slug-with-widget-not-working-with-pages/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 18:12:43 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wp plugin]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6990</guid>
		<description><![CDATA[http://wordpressapi.com/2012/01/09/solved-qtranslate-slug-with-widget-not-working-with-pages/We just saw the issue with qtranslate slug with widget is not working for 0.5 version. URL is showing but URL is not opening and 404 page is opening. The problem was exactly at the function qTranslateSlug_filter_request inside de file &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2012/01/09/solved-qtranslate-slug-with-widget-not-working-with-pages/<p>We just saw the issue with qtranslate slug with widget is not working for 0.5 version. URL is showing but URL is not opening and 404 page is opening.</p>
<div id="attachment_6991" class="wp-caption alignnone<a href="http://wordpressapi.com/?attachment_id=6991" rel="attachment wp-att-6991"><img class="size-medium wp-image-6991" title="Solved: qTranslate slug with Widget not working with pages" src="http://images.wordpressapi.com/wordpress-language-translation-300x225.jpg" alt="Solved: qTranslate slug with Widget not working with pages" width="300" height="225" /></a><p class="wp-caption-text">Solved: qTranslate slug with Widget not working with pages</p></div>
<p>The problem was exactly at the function qTranslateSlug_filter_request inside de file qtranslate-slug-with-widget.php, which is the only one of the plugin, so it’s easy to find.<br />
We must take a look at this part of the code:</p>
<pre class="brush: php; title: ; notranslate">
if (isset($q['name'])) {
    $type = QTS_POST;
    $slug = $q['name'];
    $param = 'p';
    $get_link = 'get_permalink';
    unset($new_q['name']);
} else if (isset($q['pagename'])) {
    //$type = QTS_PAGE;
    //$slug = $q['pagename'];
    //$param = 'page_id';
    $id = qTranslateSlug_get_page_by_path($q['pagename'], $lang);
    if ($id) {
        unset($new_q['pagename']);
        $q = $new_q;
        $q['page_id'] = $id;
        $get_link = 'get_page_link';
    }
} else if (isset($q['category_name'])) {
    $type = QTS_CAT;
    $slug = $q['category_name'];
    $param = 'cat';
    $get_link = 'get_category_link';
    unset($new_q['category_name']);
} else if (isset($q['tag'])) {
    $type = QTS_TAG;
    $slug = $q['tag'];
    $param = 'tag_id';
    $get_link = 'get_tag_link';
    unset($new_q['tag']);
}
</pre>
<p>That we hace to replace with the following:</p>
<pre class="brush: php; title: ; notranslate">
if (isset($q['name'])) {
        $id = qTranslateSlug_get_page_by_path($q['name'], $lang);
        if ($id) {
            unset($new_q['name']);
            $q = $new_q;
            $q['page_id'] = $id;
            $get_link = 'get_page_link';
        } else {
            $type = QTS_POST;
            $slug = $q['name'];
            $param = 'p';
            $get_link = 'get_permalink';
            unset($new_q['name']);
        }
    } else if (isset($q['pagename'])) {
        $id = qTranslateSlug_get_page_by_path($q['pagename'], $lang);
        if ($id) {
            unset($new_q['pagename']);
            $q = $new_q;
            $q['page_id'] = $id;
            $get_link = 'get_page_link';
        }
    } else if (isset($q['category_name'])) {
        $type = QTS_CAT;
        $slug = $q['category_name'];
        $param = 'cat';
        $get_link = 'get_category_link';
        unset($new_q['category_name']);
    } else if (isset($q['tag'])) {
        $type = QTS_TAG;
        $slug = $q['tag'];
        $param = 'tag_id';
        $get_link = 'get_tag_link';
        unset($new_q['tag']);
    } else {
        $path = trim(preg_replace('/\?(.*)/', '', $_SERVER['REQUEST_URI']), '/');
        $id = qTranslateSlug_get_page_by_path($path, $lang);
        if ($id) {
            if (isset ($q['attachment'])) {
                unset($q['attachment']);
                unset($new_q['attachment']);
            }
            $q = $new_q;
            $q['page_id'] = $id;
            $get_link = 'get_page_link';
        }
    }
</pre>
<p>With the last wordpress versions, mine is 3.3.1, has changed the way of passing the query to the request filter, changing the array slug position from ‘pagename’ to ‘name’, then the plugin didn’t have a way to find any page, since it expected to find in the array the position ‘pagename’, nonexistent for the current case.<br />
Ref is taken from &#8211; http://en.codatavern.com/qtranslate-slug-with-widget-wordpress-plugin-fix/</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2012/01/09/solved-qtranslate-slug-with-widget-not-working-with-pages/" title="with the last wordpress versions mine is 3 3 1 has changed the way of passing the query">with the last wordpress versions mine is 3 3 1 has changed the way of passing the query</a></li><li><a href="http://wordpressapi.com/2012/01/09/solved-qtranslate-slug-with-widget-not-working-with-pages/" title="qtranslate not saving">qtranslate not saving</a></li><li><a href="http://wordpressapi.com/2012/01/09/solved-qtranslate-slug-with-widget-not-working-with-pages/" title="qtranslate tips and tricks">qtranslate tips and tricks</a></li><li><a href="http://wordpressapi.com/2012/01/09/solved-qtranslate-slug-with-widget-not-working-with-pages/" title="wordpress qtranslate api">wordpress qtranslate api</a></li><li><a href="http://wordpressapi.com/2012/01/09/solved-qtranslate-slug-with-widget-not-working-with-pages/" title="wordpress qtranslate detect language">wordpress qtranslate detect language</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/09/solved-qtranslate-slug-with-widget-not-working-with-pages/feed/</wfw:commentRss>
		<slash:comments>2</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="send html email via wordpress">send html email via 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 images">wp_mail images</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>what is new in wordpress 3.3</title>
		<link>http://wordpressapi.com/2011/12/22/wordpress-3-3/</link>
		<comments>http://wordpressapi.com/2011/12/22/wordpress-3-3/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 16:36:55 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress news]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6980</guid>
		<description><![CDATA[http://wordpressapi.com/2011/12/22/wordpress-3-3/wordpress 3.3 is released on 12th Dec 2011. This is next biggest release of 2011. Highlights Easier Uploading File Type Detection &#8211; A single upload button Drag-and-Drop Media Uploader Dashboard Design New Toolbar in the dashboard, combining the Admin Bar &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2011/12/22/wordpress-3-3/<p>wordpress 3.3 is released on 12th Dec 2011. This is next biggest release of 2011.</p>
<div id="attachment_6981" class="wp-caption alignnone<a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/wordpress-3-3-new-layout/" rel="attachment wp-att-6981"><img class="size-full wp-image-6981" title="what is new in wordpress 3.3" src="http://images.wordpressapi.com/Wordpress-3-3-new-layout.png" alt="what is new in wordpress 3.3" width="570" height="340" /></a><p class="wp-caption-text">what is new in wordpress 3.3</p></div>
<h2>Highlights</h2>
<ul>
<li><strong>Easier Uploading</strong>
<ul>
<li>File Type Detection &#8211; A single upload button</li>
<li>Drag-and-Drop Media Uploader</li>
</ul>
</li>
<li><strong>Dashboard Design</strong>
<ul>
<li>New Toolbar in the dashboard, combining the Admin Bar and admin header</li>
<li>Responsive design for some screens, including iPad/tablet support</li>
<li>Flyout menus, providing single-click access to any screen</li>
</ul>
</li>
<li><strong>New User Experience</strong>
<ul>
<li>New feature pointers, helping users navigate new features</li>
<li>Post-update About screen</li>
<li>Dashboard welcome area for new installs</li>
</ul>
</li>
<li><strong>Content Tools</strong>
<ul>
<li>Better co-editing that releases post locks immediately</li>
<li>Don&#8217;t lose widgets when switching themes</li>
<li>Tumblr Importer</li>
</ul>
</li>
<li><strong>Under the Hood improvements</strong>
<ul>
<li>Use the postname permalink structure without a performance penalty</li>
<li>Improved Editor API</li>
<li><a title="Function Reference/is main query" href="http://codex.wordpress.org/Function_Reference/is_main_query">is_main_query()</a> function and <a title="Class Reference/WP Query" href="http://codex.wordpress.org/Class_Reference/WP_Query">WP_Query</a> method</li>
<li>Remove a number of funky characters from post slugs</li>
<li>jQuery 1.7.1 and jQuery UI 1.8.16</li>
<li>A new Screen API for adding help documentation and adapting to screen contexts</li>
<li>Improved metadata API</li>
</ul>
</li>
<li><strong>Performance improvements and hundreds of bug fixes</strong></li>
</ul>
<p><a id="User_Features" name="User_Features"></a></p>
<h2>User Features</h2>
<p><a id="General" name="General"></a></p>
<h3>General</h3>
<ul>
<li>Admin doctype changed to HTML5 (<a title="http://core.trac.wordpress.org/ticket/18202" href="http://core.trac.wordpress.org/ticket/18202">#18202</a>)</li>
<li>Show Toolbar in backend by default (<a title="http://core.trac.wordpress.org/ticket/17899" href="http://core.trac.wordpress.org/ticket/17899">#17899</a>)</li>
<li>Drag and drop multi-file uploading (except older IE)</li>
<li>Fix Press This editors</li>
<li>Switch admin menus to flyouts from dropdowns</li>
<li>WebMatrix support</li>
<li>Improve cron locking; avoid multiple cron processes looping over the same events</li>
<li>Add pointers feature, and pointer to admin bar</li>
<li>Introduce help tabs and WP_Screen</li>
<li>Style tweaks to the update nag</li>
</ul>
<p><a id="Dashboard" name="Dashboard"></a></p>
<h3>Dashboard</h3>
<ul>
<li>Ensure text in the dashboard recent comments widget wraps up properly</li>
</ul>
<p><a id="Posts" name="Posts"></a></p>
<h3>Posts</h3>
<ul>
<li>When inserting a Gallery to be ordered by Date/Time use the post_date field for ordering rather than ID</li>
<li>Rename &#8216;Post Tags&#8217; to &#8216;Tags&#8217;</li>
<li>Make DFW (Distraction-Free Writing) content width match exactly the reported width from the theme</li>
<li>Improve the image drag-resize detection in the visual editor (supported in FF and IE only), remove the size-* class if the image is soft-resized</li>
<li>Add TinyMCE command to handle opening of the upload/insert popup, fix the shortcut &#8220;Alt+Shift+M&#8221;, fix the &#8220;image&#8221; button in DFW</li>
<li>Allow Apostrophes in Post Passwords</li>
<li>Add post formats to quick edit and bulk edit</li>
<li>Hide post title field in DFW if title is not supported by the current post type or missing</li>
<li>Clean up remnants from having negative Post_ID</li>
</ul>
<p><a id="Media" name="Media"></a></p>
<h3>Media</h3>
<ul>
<li>Merge media buttons into one</li>
<li>Add the styling for &#8220;drop area&#8221; to Media-&gt;Add New</li>
<li>Add support for rar and 7z file uploading</li>
</ul>
<p><a id="Links" name="Links"></a></p>
<h3>Links</h3>
<p><a id="Comments" name="Comments"></a></p>
<h3>Comments</h3>
<ul>
<li>Use WP_Editor when editing or replying to comments</li>
<li>Use &#8216;View Post&#8217; instead of &#8216;#&#8217; for view post links in comment rows</li>
</ul>
<p><a id="Appearance" name="Appearance"></a></p>
<h3>Appearance</h3>
<ul>
<li>Use the Settings fields/sections API in Twenty Eleven</li>
<li>Load all Parent theme stylesheets before Child theme stylesheets in the TinyMCE Editor</li>
<li>Clean up Plugin/Theme uploads after successfully installing them</li>
<li>Improved Theme upload and validation</li>
<li>Avoid losing widgets when switching themes</li>
<li>Make Distraction Free Writing content width match exactly the reported width from the theme</li>
<li>Allow current_theme_supports() to be used to check for specific post formats</li>
<li>Improved Menus</li>
<li>Contextual help for Twenty Eleven theme options page</li>
</ul>
<p><a id="Plugins" name="Plugins"></a></p>
<h3>Plugins</h3>
<ul>
<li>Improved Plugin upload and validation</li>
<li>Stop remembering the last viewed plugins screen; always show all plugins when returning to plugins.php</li>
</ul>
<p><a id="Tools" name="Tools"></a></p>
<h3>Tools</h3>
<ul>
<li>Add the Tumblr importer to the Importers List</li>
<li>Add wxr_export_skip_postmeta filter for skipping postmeta in exports</li>
</ul>
<p><a id="Users" name="Users"></a></p>
<h3>Users</h3>
<ul>
<li>Removed user option to disable Toolbar (admin-bar in 3.2) in the Dashboard</li>
</ul>
<p><a id="Settings" name="Settings"></a></p>
<h3>Settings</h3>
<ul>
<li>Add postname to Settings &gt; Permalinks and remove the help text talking about permalink performance; make the slugs (and /archives/ rewrite base) translatable</li>
<li>Clarify Settings &gt; Privacy</li>
<li>Use title case in Settings &gt; General</li>
<li>Disallow indexing wp-admin and wp-includes in robots.txt</li>
</ul>
<p><a id="Install_Process" name="Install_Process"></a></p>
<h3>Install Process</h3>
<p><a id="Multisite" name="Multisite"></a></p>
<h3>Multisite</h3>
<ul>
<li>Allow creating sites with IDN domains</li>
<li>Move network/settings.php POST handling out of network/edit.php</li>
<li>Dissolve wp-admin/network/edit.php</li>
<li>Add &#8216;Network Enable&#8217; link after installing a theme in the network admin</li>
<li>Use update_blog_details() in wpmu_update_blogs_date()</li>
<li>Change Network Settings to just Settings</li>
<li>Implement bulk update for network/themes.php</li>
<li>Fix inviting existing users to a site with email confirmation</li>
<li>Check for plugin/theme updates every hour when hitting update-core.php, not just themes.php/plugins.php</li>
</ul>
<p><a id="Development.2C_Themes.2C_Plugins" name="Development.2C_Themes.2C_Plugins"></a></p>
<h2>Development, Themes, Plugins</h2>
<ul>
<li>Abstract word-trimming from wp_trim_excerpt() into wp_trim_words()</li>
<li>Add <a title="Plugin API/Filter Reference/wp unique post slug (page does not exist)" href="http://codex.wordpress.org/index.php?title=Plugin_API/Filter_Reference/wp_unique_post_slug&amp;action=edit&amp;redlink=1">wp_unique_post_slug</a> filter</li>
<li>Add _doing_it_wrong() when a plugin or theme accesses $wp_scripts or $wp_styles too early (also fixes localization)</li>
<li>Add a filter to <a title="Function Reference/is multi author" href="http://codex.wordpress.org/Function_Reference/is_multi_author">is_multi_author()</a></li>
<li>Add a general filter to wp_unique_post_slug to allow for full customisation of the uniqueness functionality</li>
<li>Add filter for the args into wp_dropdown_pages() in the page attributes box; give the list_pages filter the context of the post object</li>
<li>Add filter so the users can select custom image sizes added by themes and plugin</li>
<li>Add filters for install/upgrade queries, so that unit tests installer can force creating InnoDB tables, so that we can use transactions to revert the database to its initial state after each test</li>
<li>Add inflation support for java.util.zip.Deflater in WP_Http_Encoding::compatible_gzinflate()</li>
<li>Add magic get/set/isset methods to WP_User to avoid data duplication; standardize on WP_User::ID</li>
<li>Add pre_ent2ncr filter</li>
<li>add_site_option should not update existing options, should return a boolean and should only run actions on success</li>
<li>Allow get_blog_option(null,&#8230;) to hit the cache for the current blog; new return values for add_blog_option, update_blog_option, delete_blog_option; don&#8217;t set the cache in those functions if add/update/delete_option failed</li>
<li>Allow &#8216;id&#8217; to work in get_bookmarks(); add link_notes even though such sorting is a bad idea</li>
<li>Allow sorting by id in get_bookmarks()</li>
<li>Allow the text parameter in wp_trim_excerpt() to be omitted altogether, instead of requiring a blank string</li>
<li>Automatically set &#8216;compare&#8217; =&gt; &#8216;IN&#8217; in WP_Meta_Query::get_sql() when the meta value is an array</li>
<li>Change month dropdown display in date pickers to include month number</li>
<li>Completely remove wp_add_script_data()</li>
<li>Consolidate update count code into wp_get_update_data()</li>
<li>Count only published posts when updating term counts; fire term count updates on transition_post_status</li>
<li>Deprecate add_contextual_help() for get_current_screen()-&gt;add_help_tab()</li>
<li>Deprecate favorite_actions(), add_contextual_help(), add_screen_option(), move meta_box_prefs() and get_screen_icon() in WP_Screen</li>
<li>Deprecate <a title="Function Reference/get userdatabylogin" href="http://codex.wordpress.org/Function_Reference/get_userdatabylogin">get_userdatabylogin()</a> and <a title="Function Reference/get user by email" href="http://codex.wordpress.org/Function_Reference/get_user_by_email">get_user_by_email()</a></li>
<li>Deprecate media_upload_(image|audio|video|file)(), type_url_form_(image|audio|video|file)(); these now wrap wp_media_upload_handler() and wp_media_insert_url_form()</li>
<li>Deprecate RSS 0.92 feed and 301 it to the default feed</li>
<li>Deprecate screen_options(), screen_layout(), screen_meta()</li>
<li>Deprecate wpmu_admin_redirect_add_updated_param() and wpmu_admin_do_redirect()</li>
<li>Eliminate verbose rewrite rules for ambiguous rewrite structures, resulting in massive performance gains</li>
<li>Fix back compat issues with delete_postmeta and deleted_postmeta actions as these should be passed the meta ID</li>
<li>Fix QTags.closeAllTags(), replace &#8216;tb&#8217; with &#8216;ed&#8217; in quicktags,js to make it clear it is the editor instance not the toolbar, small comments quick edit fixes</li>
<li>Fix typos in documentation</li>
<li>Fix wp_update_user() so it doesn&#8217;t stomp meta fields</li>
<li>Force display_errors to off when WP_DEBUG_DISPLAY == false; technically a backwards incompatible change so if you want the passthrough to php.ini (which false used to provide) then use WP_DEBUG_DISPLAY === null</li>
<li>Harden up <a title="Function Reference/is user logged in" href="http://codex.wordpress.org/Function_Reference/is_user_logged_in">is_user_logged_in()</a> against empty $current_user instances to prevent PHP Notices on XML-RPC requests</li>
<li>Have dbDelta() loop through tables it knows about, rather than loop through a potentially expensive and definitely unnecessary SHOW TABLES</li>
<li>Improve _wp_menu_output()</li>
<li>Improve the parsing of email addresses in wp_mail to re-support RFC2822 nameless &#8220;&lt;address@…&gt;&#8221; style</li>
<li>Instantiate some MS variables as objects before using them</li>
<li>Introduce -&gt;mysql to allow drop-ins to declare themselves as MySQL and therefore allow minimum version checks to still apply</li>
<li>Introduce is_main_query() that compares the query object against $wp_the_query</li>
<li>Introduce metadata_exists(), WP_User::get_data_by(), WP_User::get(), WP_User::has_prop(). Don&#8217;t fill user objects with meta</li>
<li>Introduce new hooks, registered_post_type for <a title="Function Reference/register post type" href="http://codex.wordpress.org/Function_Reference/register_post_type">register_post_type</a>, and registered_taxonomy for <a title="Function Reference/register taxonomy" href="http://codex.wordpress.org/Function_Reference/register_taxonomy">register_taxonomy</a></li>
<li>Introduce register_meta(), get_metadata_by_mid(), and *_post_meta capabilities</li>
<li>Introduce wp_allowed_protocols() for use in wp_kses() and esc_url()</li>
<li>Introduce wp_cache_incr() and wp_cache_decr()</li>
<li>Introduce WP_Dependencies::get_data() method, change scripts and styles priority to follow the &#8220;natural&#8221; order in HTML, i.e. the last one wins</li>
<li>Introduce wp_get_db_schema() for retrieving various flavors of db schema; eliminates need to use global; allows multiple calls to wpmu_create_blog()</li>
<li>Introduce wp_no_robots() and call it for pages that should never be indexed, regardless of blog privacy settings</li>
<li>Introduce wp_suspend_cache_addition() to allow reduced memory usage when cache additions aren&#8217;t useful</li>
<li>Make check_theme_switched() run an action so plugins and themes authors can avoid losing widgets when switching themes</li>
<li>Optimise <a title="Function Reference/get term" href="http://codex.wordpress.org/Function_Reference/get_term">get_term</a> to not query for term_id = 0 and improve the prepared query to use %d for the term_id</li>
<li>Optimize parse_request for the home page</li>
<li>Performance improvement for <a title="Function Reference/wp list pluck" href="http://codex.wordpress.org/Function_Reference/wp_list_pluck">wp_list_pluck()</a></li>
<li>Properly handle display of Order, Template, and Parent page attributes in Quick/Bulk Edit</li>
<li>Properly handle nested arrays in wp_list_filter()</li>
<li>Recognize urls that start with a question mark as relative urls that do not require a scheme to be prepended</li>
<li>Refactor Quicktags</li>
<li>Remove return by ref from <a title="Function Reference/get role" href="http://codex.wordpress.org/Function_Reference/get_role">get_role()</a></li>
<li>Remove support for &lt;link rel=start&gt;, end, up, and index. These rel=&#8221;" values have been dropped by the HTML Working Group</li>
<li>Remove the old root feed files, but don&#8217;t add these files to old_files to leave them on existing installs</li>
<li>Require show_ui rather than public for a taxonomy&#8217;s parent post type</li>
<li>Rework <a title="Function Reference/get hidden meta boxes" href="http://codex.wordpress.org/Function_Reference/get_hidden_meta_boxes">get_hidden_meta_boxes()</a> to leverage a full WP_Screen object; prevents custom post types from having their explicitly supported meta boxes being hidden by default</li>
<li>Set up the post global variable in the comment feed loops so that any calls to post related template tags work correctly</li>
<li>Store screen help and options as static data against WP_Screen; individual screen objects no longer hold data it can&#8217;t re-generate on construction or otherwise fetch; convert_to_screen() now returns a WP_Screen object; various globals are gone; introduces WP_Screen::get_option(); allows for a formal factory to be introduced later</li>
<li>Support an array or comma-seperated list of excluded category IDs in get_adjacent_post()</li>
<li>Support for using <a title="Function Reference/wp enqueue script" href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script">wp_enqueue_script()</a> and <a title="Function Reference/wp enqueue style" href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style">wp_enqueue_style()</a> in the HTML body; all scripts and styles are added in the footer</li>
<li>Sync pomo library with the current GlotPress version</li>
<li>Turn delete_meta() , get_post_meta_by_id(), update_meta(), delete_post_meta_by_key() into wrappers around the<a title="Metadata API" href="http://codex.wordpress.org/Metadata_API">Metadata API</a>; add back compat *_postmeta actions to Metadata API</li>
<li>Turn <a title="WPMU Functions/is blog user" href="http://codex.wordpress.org/WPMU_Functions/is_blog_user">is_blog_user()</a> into a convenience wrapper around get_blogs_of_user(); fixes is_blog_user() for blog prefixes that do not contain a blog ID</li>
<li>Update blog last_updated time only on publish_post; both private_to_published and publish_phone are overly broad and otherwise redundant</li>
<li>Update jQuery to 1.7.1</li>
<li>Update jQuery UI to 1.8.16</li>
<li>Update Plupload to 1.5.1.1</li>
<li>Update quicktags.js (HTML editor)</li>
<li>Update TinyMCE to 3.4.5</li>
<li>Use add_option() method, introduce add_option_context() method for adding specific text above the screen options</li>
<li>Use <a title="Function Reference/get template directory" href="http://codex.wordpress.org/Function_Reference/get_template_directory">get_template_directory()</a> instead of TEMPLATEPATH in Twentys Ten and Eleven</li>
<li>Use json_encode() for adding script data (formerly l10n); add the same functionality to WP_Styles for adding inline css after a stylesheet has been outputted</li>
<li>Use wp_print_scripts() in install.php</li>
<li>Various PHPdoc updates including: for all_items, menu_name, WP_List_Table::views(), cache.php, get_option(), wpdb::prepare(), get_template_part(), esc_url(), get_meta_sql(), WP_Screen, WP_Http_Encoding::compatible_gzinflate(), zeroise(), wp_add_script_before(), wp_editor()</li>
<li>WP_Filesystem_*::mkdir() untrailingslash path consistently, don&#8217;t waste time attempting to create an &#8220;empty&#8221; path</li>
</ul>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="add_help_tab on old wordpress installs">add_help_tab on old wordpress installs</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress error wp_no_robots">wordpress error wp_no_robots</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress 3 3 remove proudly powered by wordpress">wordpress 3 3 remove proudly powered by wordpress</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="increase wordpress upload limit in webmatrix">increase wordpress upload limit in webmatrix</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress postname image name permalink">wordpress postname image name permalink</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress pointers api">wordpress pointers api</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress filter before update blog details save">wordpress filter before update blog details save</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="force flash media upload in wordpress 3 3">force flash media upload in wordpress 3 3</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress 3 3 visual editor ie9 path hack">wordpress 3 3 visual editor ie9 path hack</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress 3 3 settings api tutorial">wordpress 3 3 settings api tutorial</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress 3 3 remove quicktag">wordpress 3 3 remove quicktag</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="handle upload wordpress api">handle upload wordpress api</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress 3 3 different port">wordpress 3 3 different port</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress 3 3 api upload">wordpress 3 3 api upload</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress 3 3 1 screen api for adding help documentation">wordpress 3 3 1 screen api for adding help documentation</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="will show your gravatar dashboard">will show your gravatar dashboard</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="QuickTags API of WP 3 3 youtube">QuickTags API of WP 3 3 youtube</a></li><li><a href="http://wordpressapi.com/2011/12/22/wordpress-3-3/" title="wordpress wp pointer api">wordpress wp pointer 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/2011/12/22/wordpress-3-3/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="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="integrer wordpress i html">integrer wordpress i html</a></li><li><a href="http://wordpressapi.com/2011/12/06/how-to-integrate-the-wordpress-with-php-or-html/" title="wordpress the_date not working wordpress 3 3">wordpress the_date not working wordpress 3 3</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>protect images of wordpress blog</title>
		<link>http://wordpressapi.com/2011/12/02/protect-images-of-wordpress-blog/</link>
		<comments>http://wordpressapi.com/2011/12/02/protect-images-of-wordpress-blog/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 18:55:16 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wordpressapi.com/?p=6957</guid>
		<description><![CDATA[http://wordpressapi.com/2011/12/02/protect-images-of-wordpress-blog/Some time back my server got so much load and bandwidth of server is taken by other websites. I checked the access log of my site. I saw request for my site images through other site. I decided to stop &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2011/12/02/protect-images-of-wordpress-blog/<p>Some time back my server got so much load and bandwidth of server is taken by other websites. I checked the access log of my site.</p>
<p>I saw request for my site images through other site. I decided to stop that. Earlier I written good article about this.</p>
<p><a href="http://wordpressapi.com/2010/12/06/protect-images-accessing-server-apache/">http://wordpressapi.com/2010/12/06/protect-images-accessing-server-apache/</a></p>
<p>I written simple rewrite rule with mod_redirection.</p>
<p>Just open your .htaccess file from your root folder and following code in that.</p>
<pre class="brush: php; title: ; notranslate">
#Replace ?wordpressapi\.com/ with your blog url
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?wordpressapi\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
#Replace /images/nohotlink.jpg with your &quot;don't hotlink&quot; image url
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]
</pre>
<p>dont forget to replace your blog name</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2011/12/02/protect-images-of-wordpress-blog/" title="protect image on wordpress">protect image on wordpress</a></li><li><a href="http://wordpressapi.com/2011/12/02/protect-images-of-wordpress-blog/" title="protect images jquery">protect images jquery</a></li><li><a href="http://wordpressapi.com/2011/12/02/protect-images-of-wordpress-blog/" title="wordpress protect images">wordpress protect images</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/02/protect-images-of-wordpress-blog/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="wordpress custom post types query_var">wordpress custom post types query_var</a></li><li><a href="http://wordpressapi.com/2011/11/28/how-to-add-the-custom-post-type-with-associated-tags-and-category/" title="wordpres add taxonomy slug permalink %">wordpres add taxonomy slug permalink %</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="how to add post type to main menu wordpress">how to add post type to main menu wordpress</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="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="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="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 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="custom post types category">custom post types category</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 tag">custom post type tag</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="add tags to custom post type">add tags 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="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 wordpress">add tags to custom post wordpress</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="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="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="category php custom post type">category php custom post type</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/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 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="permalink hook">permalink hook</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="function post_link wordpress">function post_link wordpress</a></li><li><a href="http://wordpressapi.com/2011/11/22/change-permalinks-choice-wordpress-post_link-filter/" title="filter wordpress permalink">filter wordpress permalink</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="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>
	</channel>
</rss>

<!-- Served from: wordpressapi.com @ 2012-02-05 15:15:18 by W3 Total Cache -->
