<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>WordPress Den</title>
	
	<link>http://wpden.net</link>
	<description>Everything about WordPress</description>
	<lastBuildDate>Thu, 10 May 2012 15:08:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/wpden" /><feedburner:info uri="wpden" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>Everything about WordPress</itunes:subtitle><creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:emailServiceId>wpden</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How to Automatically Empty Trash</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/hdVnHd0juIo/</link>
		<comments>http://wpden.net/how-to-automatically-empty-trash/#comments</comments>
		<pubDate>Thu, 10 May 2012 15:08:33 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Empty Trash]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress tips]]></category>
		<category><![CDATA[wp-config.php]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=451</guid>
		<description><![CDATA[All of you might know WordPress has a trash feature, just like Recycle bin in Windows PC, so whenever we delete something it goes into trash, if we want we can recover it later and if you don&#8217;t want to recover you can delete it permanently. But mostly it happens that we delete some posts [...]
Related posts:<ol>
<li><a href='http://wpden.net/how-to-turn-off-post-revisions/' rel='bookmark' title='How to turn off Post Revisions'>How to turn off Post Revisions</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2012/05/Trash_bin.png" width="240" title="How to Automatically Empty Trash" alt="Trash bin How to Automatically Empty Trash" />
		</p><p>All of you might know WordPress has a <strong>trash feature</strong>, just like Recycle bin in Windows PC, so whenever we delete something it goes into trash, if we want we can recover it later and if you <strong>don&#8217;t want to recover you can delete it permanently</strong>.<br />
<span id="more-451"></span><br />
But mostly it happens that we delete some posts and don&#8217;t even remember to delete it permanently this makes database bigger in size, thus taking more time to process and making the site slow.</p>
<p>Just add the below lines of code in wp-config.php :</p>
<pre>define('EMPTY_TRASH_DAYS', 7 ); // Empty trash after every 7 days</pre>
<p>The above code will automatically <strong>empty trash every 7th day</strong>. thus cleaning up your database and making you website Optimized and faster.</p>
<p>Related posts:<ol>
<li><a href='http://wpden.net/how-to-turn-off-post-revisions/' rel='bookmark' title='How to turn off Post Revisions'>How to turn off Post Revisions</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/wpden/~4/hdVnHd0juIo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/how-to-automatically-empty-trash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpden.net/how-to-automatically-empty-trash/</feedburner:origLink></item>
		<item>
		<title>How to specify the Auto save Interval</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/iRvDZPjGEJU/</link>
		<comments>http://wpden.net/how-to-specify-the-auto-save-interval/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 14:35:22 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Auto Save]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress tips]]></category>
		<category><![CDATA[wp-config.php]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=440</guid>
		<description><![CDATA[WordPress has a really good feature of Auto save which automatically saves the post which is really beneficial in lots of cases, but sometime people complain that WordPress saves the posts too often and can create problems on heavy traffic websites, because it will require more resources. So the Solution is to specify the Auto [...]
Related posts:<ol>
<li><a href='http://wpden.net/how-to-turn-off-post-revisions/' rel='bookmark' title='How to turn off Post Revisions'>How to turn off Post Revisions</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2012/04/clock_symbol_wordpress.jpg" width="240" title="How to specify the Auto save Interval" alt="clock symbol wordpress How to specify the Auto save Interval" />
		</p><p>WordPress has a really good feature of <strong>Auto save which automatically saves the post</strong> which is really beneficial in lots of cases, but sometime people complain that WordPress saves the posts too often and can create problems on heavy traffic websites, because it will require more resources.<br />
<span id="more-440"></span></p>
<p>So the Solution is to <em>specify the Auto Save interval</em>, which can be done by adding the below lines in WP-config.php :</p>
<pre>
define('AUTOSAVE_INTERVAL', 360 );  // seconds
</pre>
<p>The Interval is defined in seconds in the above code I have mentioned 360 Seconds = 6 minutes that means WordPress will save the post every 6 minutes</p>
<p>The default value is 60 Seconds that means WordPress saves a post every minute, but now you can <strong>change the Auto Save interval</strong> to whatever you want</p>
<p>Related posts:<ol>
<li><a href='http://wpden.net/how-to-turn-off-post-revisions/' rel='bookmark' title='How to turn off Post Revisions'>How to turn off Post Revisions</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/wpden/~4/iRvDZPjGEJU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/how-to-specify-the-auto-save-interval/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpden.net/how-to-specify-the-auto-save-interval/</feedburner:origLink></item>
		<item>
		<title>How to remove the Website Field from Comment form</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/BKgd2DLB1cE/</link>
		<comments>http://wpden.net/how-to-remove-the-website-field-from-comment-form/#comments</comments>
		<pubDate>Sat, 14 Apr 2012 18:14:37 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Comment Form]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Remove]]></category>
		<category><![CDATA[Website Field]]></category>
		<category><![CDATA[wordpress hacks]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=410</guid>
		<description><![CDATA[Today we will see How to remove the Website Field from Comment form. if we think properly their is no need for Website field in the comments form it is mostly used by Spammers to spam, and all of us hates our site to be spammed. to this problem their is just a small solution [...]
Related posts:<ol>
<li><a href='http://wpden.net/how-to-remove-read-more-jump/' rel='bookmark' title='How to Remove Read More jump'>How to Remove Read More jump</a></li>
<li><a href='http://wpden.net/how-to-remove-curly-quotes/' rel='bookmark' title='How to Remove Curly Quotes'>How to Remove Curly Quotes</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2012/04/spam.jpg" width="240" title="How to remove the Website Field from Comment form" alt="spam How to remove the Website Field from Comment form" />
		</p><p>Today we will see <strong>How to remove the Website Field from Comment form</strong>. if we think properly their is no need for <em>Website field in the comments form</em> it is <u>mostly used by Spammers to spam</u>, and all of us hates our site to be spammed.<br />
<span id="more-410"></span></p>
<p>to this problem their is just a small solution just add the below line of code to functions.php :</p>
<pre>
/* Remove Websites Field from Comment form - WPden.net */

function remove_website_field_wpden($fields)
{
  if(isset($fields['url']))
   unset($fields['url']);
  return $fields;
}

add_filter('comment_form_default_fields', 'remove_website_field_wpden');
</pre>
<p>Now you will not be able to see <em>the Website field in the comment form</em>. Thanks to Zee for the code.</p>
<p>Related posts:<ol>
<li><a href='http://wpden.net/how-to-remove-read-more-jump/' rel='bookmark' title='How to Remove Read More jump'>How to Remove Read More jump</a></li>
<li><a href='http://wpden.net/how-to-remove-curly-quotes/' rel='bookmark' title='How to Remove Curly Quotes'>How to Remove Curly Quotes</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/wpden/~4/BKgd2DLB1cE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/how-to-remove-the-website-field-from-comment-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpden.net/how-to-remove-the-website-field-from-comment-form/</feedburner:origLink></item>
		<item>
		<title>Show Featured images in Feed</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/TxRNg9neo7M/</link>
		<comments>http://wpden.net/show-featured-images-in-feed/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 07:09:13 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[featured images]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[images in Feed]]></category>
		<category><![CDATA[images in RSS]]></category>
		<category><![CDATA[WordPress tips]]></category>
		<category><![CDATA[WordPress Tricks]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=379</guid>
		<description><![CDATA[Well we always love subscribers those subscribe to our posts, but sometime we see that featured images cannot be viewed in the RSS Feed, well today we are going to show featured images in Feed, with a simple lines of code. By default WordPres do not add the featured images in Feed but we can [...]
Related posts:<ol>
<li><a href='http://wpden.net/how-to-insert-custom-content-after-each-post/' rel='bookmark' title='How to Insert custom content after each post'>How to Insert custom content after each post</a></li>
<li><a href='http://wpden.net/automatically-add-google-plus-to-your-post/' rel='bookmark' title='Automatically add Google Plus (+) to your Post'>Automatically add Google Plus (+) to your Post</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2012/03/rss_reader.png" width="240" title="Show Featured images in Feed" alt="rss reader Show Featured images in Feed" />
		</p><p>Well we always love subscribers those subscribe to our posts, but sometime we see that featured images cannot be viewed in the RSS Feed, well today we are going to <strong>show featured images in Feed</strong>, with a simple lines of code.<br />
<span id="more-379"></span><br />
By default WordPres do not add the <em>featured images in Feed</em> but we can manually add it by adding the below code in functions.php :</p>
<pre>
add_filter('the_content_feed', 'rss_post_thumbnail_wpden');
function rss_post_thumbnail_wpden($content) {
	global $post;
	if( has_post_thumbnail($post-&gt;ID) )
		$content = '&lt;p&gt;' . get_the_post_thumbnail($post-&gt;ID, 'thumbnail') . '&lt;/p&gt;' . $content;
	return $content;
}
</pre>
<p>Well you can add more detailed code or customize to your willing please not that it can be even used to add custom meta images instead of featured images also.</p>
<p>Related posts:<ol>
<li><a href='http://wpden.net/how-to-insert-custom-content-after-each-post/' rel='bookmark' title='How to Insert custom content after each post'>How to Insert custom content after each post</a></li>
<li><a href='http://wpden.net/automatically-add-google-plus-to-your-post/' rel='bookmark' title='Automatically add Google Plus (+) to your Post'>Automatically add Google Plus (+) to your Post</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/wpden/~4/TxRNg9neo7M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/show-featured-images-in-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpden.net/show-featured-images-in-feed/</feedburner:origLink></item>
		<item>
		<title>How to Detect Safari Browser on iOS</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/RhtJwYcDG5Q/</link>
		<comments>http://wpden.net/how-to-detect-safari-browser-on-ios/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 06:23:18 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Detect Safari]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[wordpress hacks]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=360</guid>
		<description><![CDATA[Well Safari browser is been used on many platforms, like MacBook, IPad, IPhone and etc. so how to check if the user is coming from IPhone or IPad and give him a different design or stylesheet, well that is pretty simple their is a variable in WordPress that allows us to detect whether the visitor [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2012/03/iPhone_safari.jpg" width="240" title="How to Detect Safari Browser on iOS" alt="iPhone safari How to Detect Safari Browser on iOS" />
		</p><p>Well Safari browser is been used on many platforms, like <strong>MacBook, IPad, IPhone</strong> and etc. so how to check if the user is coming from IPhone or IPad and give him a different design or stylesheet, well that is pretty simple their is a variable in WordPress that allows us to detect whether the visitor is from the  iPhone<br />
<span id="more-360"></span></p>
<p>So here&#8217;s the simple code for using in your WordPress site :</p>
<pre>
add_action('wp_print_styles', 'wpden_iphone_enqueue_styles');
function wpden_iphone_enqueue_styles(){
	global $is_iphone;
	if( $is_iphone ){
		wp_enqueue_style('iphone-css', get_stylesheet_directory_uri() . '/iphone.css' );
	}
	else{
		wp_enqueue_style('default-css', get_stylesheet_directory_uri() . '/default.css' );
	}
}
</pre>
<p>well the above code is pretty simple to understand that <strong>detect safari</strong> so i guess i do not need to give any such kind of explanation if you need more help, leave a comment below</p>
<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/wpden/~4/RhtJwYcDG5Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/how-to-detect-safari-browser-on-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpden.net/how-to-detect-safari-browser-on-ios/</feedburner:origLink></item>
		<item>
		<title>How to add Favicon to your WordPress site</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/fJc4MDa0o8o/</link>
		<comments>http://wpden.net/how-to-add-favicon-to-your-wordpress-site/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 08:23:53 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress hooks]]></category>
		<category><![CDATA[wp_head]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=341</guid>
		<description><![CDATA[Today i m going to show how to add Favicon to your WordPress site, well nowadays each blog its own favicon as a part of branding its website, well adding a favicon is not that difficult, but still some people find it, so today we will make it easy for adding favicon in WordPress blog. [...]
Related posts:<ol>
<li><a href='http://wpden.net/how-to-remove-category-from-wordpress-url/' rel='bookmark' title='How to remove category from WordPress URL'>How to remove category from WordPress URL</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2011/03/wordpress1.jpg" width="240" title="How to add Favicon to your WordPress site" alt="wordpress1 How to add Favicon to your WordPress site" />
		</p><p>Today i m going to show <strong>how to add Favicon to your WordPress site</strong>, well nowadays each blog its own favicon as a part of branding its website, well adding a favicon is not that difficult, but still some people find it, so today we will make it easy for adding favicon in WordPress blog.<br />
<span id="more-341"></span></p>
<p>Now lets start adding it, i Assume that you have already made your own favicon if you haven&#8217;t you can refer to <a rel="nofollow" target="_blank" href="http://www.best2know.info/favicon-generator/" target="_blank">Favicon Generator</a>. add this code in your functions.php :</p>
<pre>
function wpden_favicon() { ?&gt;
	&lt;link rel=&quot;shortcut icon&quot; href=&quot;link_to_favicon&quot; &gt;
&lt;?php }
add_action('wp_head', 'wpden_favicon');
</pre>
<p>replace the <code>link_to_favicon</code> with your image link you want to use for favicon.</p>
<p>congratulation on <em>how to add favicon to your WordPress site</em>.</p>
<p>Related posts:<ol>
<li><a href='http://wpden.net/how-to-remove-category-from-wordpress-url/' rel='bookmark' title='How to remove category from WordPress URL'>How to remove category from WordPress URL</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/wpden/~4/fJc4MDa0o8o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/how-to-add-favicon-to-your-wordpress-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpden.net/how-to-add-favicon-to-your-wordpress-site/</feedburner:origLink></item>
		<item>
		<title>How to remove category from WordPress URL</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/wFqUGa7lQw0/</link>
		<comments>http://wpden.net/how-to-remove-category-from-wordpress-url/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 16:39:52 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Category]]></category>
		<category><![CDATA[remove category]]></category>
		<category><![CDATA[remove tag]]></category>
		<category><![CDATA[WordPress Tricks]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=163</guid>
		<description><![CDATA[when displaying Category URL in wordpress the wordpress adds the word &#8216;category&#8217; in between the category and the site link eg : example.com/category/wordpress , has the word category is useless we can remove category word by simple trick. Normally WordPress category links are displayed this way : example.com/category/wordpress The word category is useless in the [...]
Related posts:<ol>
<li><a href='http://wpden.net/easy-login-url/' rel='bookmark' title='Easy login URL'>Easy login URL</a></li>
<li><a href='http://wpden.net/how-to-remove-read-more-jump/' rel='bookmark' title='How to Remove Read More jump'>How to Remove Read More jump</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2011/03/writing-url.jpg" width="240" title="How to remove category from WordPress URL" alt="writing url How to remove category from WordPress URL" />
		</p><p>when displaying Category URL in wordpress the wordpress adds the word &#8216;category&#8217; in between the category and the site link eg : example.com/category/wordpress , has the word category is useless we can <em>remove category</em> word by simple trick.<br />
<span id="more-163"></span></p>
<p>Normally WordPress category links are displayed this way :</p>
<pre>example.com/category/wordpress</pre>
<p>The word category is useless in the link and acquires a space , we can remove that using a small change in .htaccess file. just add the below code in the .htaccess file :</p>
<pre>RewriteRule ^category/(.+)$ http://example.com/$1 [R=301,L]</pre>
<p>if you want to remove the word tag you can remove it by adding the below line of code to .htaccess :</p>
<pre>RewriteRule ^tag/(.+)$ http://example.com/$1 [R=301,L]</pre>
<p>Now Just save it.</p>
<p>Now your Permalinks will be changed, we have <em>remove Category</em> word and Tag word from the permalink</p>
<p>Related posts:<ol>
<li><a href='http://wpden.net/easy-login-url/' rel='bookmark' title='Easy login URL'>Easy login URL</a></li>
<li><a href='http://wpden.net/how-to-remove-read-more-jump/' rel='bookmark' title='How to Remove Read More jump'>How to Remove Read More jump</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/wpden/~4/wFqUGa7lQw0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/how-to-remove-category-from-wordpress-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpden.net/how-to-remove-category-from-wordpress-url/</feedburner:origLink></item>
		<item>
		<title>How to automatically email contributors when theirs post is published</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/FzK4zyL0NdU/</link>
		<comments>http://wpden.net/how-to-automatically-email-contributors-when-theirs-post-is-published/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 06:38:55 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Email Address]]></category>
		<category><![CDATA[email contributors]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[wordpress hacks]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=327</guid>
		<description><![CDATA[When you run a blog with many authors, and you want the author of the post to know that his post has been published but you cannot email contributors each time their posts is published, so for that I have a solution for automatically email contributors of post that their post is published. Well it [...]
Related posts:<ol>
<li><a href='http://wpden.net/change-wordpress-from-email-address/' rel='bookmark' title='Change WordPress From Email Address'>Change WordPress From Email Address</a></li>
<li><a href='http://wpden.net/how-to-automatically-notify-users-on-new-post/' rel='bookmark' title='How to Automatically notify users on new post'>How to Automatically notify users on new post</a></li>
<li><a href='http://wpden.net/automatically-add-google-plus-to-your-post/' rel='bookmark' title='Automatically add Google Plus (+) to your Post'>Automatically add Google Plus (+) to your Post</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2012/01/Thanking-Online-Donors-with-Snail-Mail.jpg" width="240" title="How to automatically email contributors when theirs post is published" alt="Thanking Online Donors with Snail Mail How to automatically email contributors when theirs post is published" />
		</p><p>When you run a blog with many authors, and you want the author of the post to know that his post has been published but you cannot <em>email contributors</em> each time their posts is published, so for that I have a solution for <strong>automatically email contributors of post</strong> that their post is published.</p>
<p><span id="more-327"></span></p>
<p>Well it is really simple just you have to paste the below code :</p>
<pre>function wpden_authorNotification($post_id) {
   $post = get_post($post_id);
   $author = get_userdata($post-&gt;post_author);

   $message = &quot;
      Hi &quot;.$author-&gt;display_name.&quot;,
      Your post, &quot;.$post-&gt;post_title.&quot; has just been published. Well done!
   &quot;;
   wp_mail($author-&gt;user_email, &quot;Your article is online&quot;, $message);
}
add_action('publish_post', 'wpden_authorNotification');</pre>
<p>Now every time you publish the post the WordPress will <em>email contributors</em> of the respective posts. also take a look at <a href="http://wpden.net/how-to-automatically-notify-users-on-new-post/" title="How to Automatically notify users on new post" target="_blank">How to Automatically notify users on new post</a></p>
<p>Related posts:<ol>
<li><a href='http://wpden.net/change-wordpress-from-email-address/' rel='bookmark' title='Change WordPress From Email Address'>Change WordPress From Email Address</a></li>
<li><a href='http://wpden.net/how-to-automatically-notify-users-on-new-post/' rel='bookmark' title='How to Automatically notify users on new post'>How to Automatically notify users on new post</a></li>
<li><a href='http://wpden.net/automatically-add-google-plus-to-your-post/' rel='bookmark' title='Automatically add Google Plus (+) to your Post'>Automatically add Google Plus (+) to your Post</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/wpden/~4/FzK4zyL0NdU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/how-to-automatically-email-contributors-when-theirs-post-is-published/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpden.net/how-to-automatically-email-contributors-when-theirs-post-is-published/</feedburner:origLink></item>
		<item>
		<title>Automatically add Google Plus (+) to your Post</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/bA7dhWlxw8U/</link>
		<comments>http://wpden.net/automatically-add-google-plus-to-your-post/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 07:35:08 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Plus]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=318</guid>
		<description><![CDATA[Google Plus (+) is a new service from Google, which can bring traffic to your blog just like other social networking sites as such as Twitter or Facebook. Now, I’m going to show you how to automatically add a Google plus (+) button to your posts. Well to add the Google Plus (+) button is [...]
Related posts:<ol>
<li><a href='http://wpden.net/how-to-insert-custom-content-after-each-post/' rel='bookmark' title='How to Insert custom content after each post'>How to Insert custom content after each post</a></li>
<li><a href='http://wpden.net/how-to-automatically-email-contributors-when-theirs-post-is-published/' rel='bookmark' title='How to automatically email contributors when theirs post is published'>How to automatically email contributors when theirs post is published</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2012/01/GooglePlus.png" width="240" title="Automatically add Google Plus (+) to your Post" alt="GooglePlus Automatically add Google Plus (+) to your Post" />
		</p><p><strong>Google Plus (+)</strong> is a new service from Google, which can bring traffic to your blog just like other social networking sites as such as Twitter or Facebook. Now, I’m going to show you <em>how to automatically add a Google plus (+) button to your posts</em>.</p>
<p><span id="more-318"></span></p>
<p>Well to add the <strong>Google Plus (+)</strong> button is easy just add the below piece of code in <code>functions.php</code> of your theme :</p>
<pre>
add_filter('the_content', 'wpr_google_plusone');
function wpr_google_plusone($content) {
	$content = $content.'&lt;div class=&quot;plusone&quot;&gt;&lt;g:plusone size=&quot;tall&quot; href=&quot;'.get_permalink().'&quot;&gt;&lt;/g:plusone&gt;&lt;/div&gt;';
	return $content;
}
add_action ('wp_enqueue_scripts','wpr_google_plusone_script');
function wpr_google_plusone_script() {
	wp_enqueue_script('google-plusone', 'https://apis.google.com/js/plusone.js', array(), null);
}
</pre>
<p>Viola ! you can see you <em>Google Plus (+) button</em> after the post</p>
<p>Related posts:<ol>
<li><a href='http://wpden.net/how-to-insert-custom-content-after-each-post/' rel='bookmark' title='How to Insert custom content after each post'>How to Insert custom content after each post</a></li>
<li><a href='http://wpden.net/how-to-automatically-email-contributors-when-theirs-post-is-published/' rel='bookmark' title='How to automatically email contributors when theirs post is published'>How to automatically email contributors when theirs post is published</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/wpden/~4/bA7dhWlxw8U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/automatically-add-google-plus-to-your-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpden.net/automatically-add-google-plus-to-your-post/</feedburner:origLink></item>
		<item>
		<title>Yet Another Related Posts Plugin ( YARPP ) shows double results</title>
		<link>http://feedproxy.google.com/~r/wpden/~3/UtOWclXBtTE/</link>
		<comments>http://wpden.net/yet-another-related-posts-plugin-yarpp-shows-double-results/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 06:47:13 +0000</pubDate>
		<dc:creator>Ritesh Sanap</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Related Posts Plugin]]></category>
		<category><![CDATA[twice results]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[WordPress Plugin]]></category>
		<category><![CDATA[YARPP]]></category>

		<guid isPermaLink="false">http://wpden.net/?p=301</guid>
		<description><![CDATA[Well nowadays their are lots of complaint about the well known plugin know YARPP or you can say Yet Another Related Posts Plugin that it is showing results twice on the same page Well according to author of the plugin, it has been solved, as the latest YARPP plugin still shows twice results it is [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p style="float:right; margin:0 0 10px 15px; width:240px;">
		<img src="http://wpden.net/wp-content/uploads/2012/01/yarpp-twitter.png" width="240" title="Yet Another Related Posts Plugin ( YARPP ) shows double results" alt="yarpp twitter Yet Another Related Posts Plugin ( YARPP ) shows double results" />
		</p><p>Well nowadays their are lots of complaint about the well known plugin know <strong>YARPP</strong> or you can say <strong>Yet Another Related Posts Plugin</strong> that it is showing <strong>results twice on the same page</strong><br />
<span id="more-301"></span></p>
<p>Well according to author of the plugin, it has been solved, as the latest <em>YARPP</em> plugin still shows <em>twice results</em> it is because of calling the function in a improper way for example :</p>
<pre>&lt;?php echo related_posts(); ?&gt;</pre>
<p>well the solution to problem is simple just remove the <code>echo</code> from above code so it will become :</p>
<pre>&lt;?php related_posts(); ?&gt;</pre>
<p>Well your <em>YARPP</em> plugin is fixed.</p>
<p>Don&#8217;t have <strong>YARPP plugin</strong> well you can download it from <a rel="nofollow" target="_blank" href="http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/" target="_blank" rel="nofollow">here</a></p>
<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/wpden/~4/UtOWclXBtTE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpden.net/yet-another-related-posts-plugin-yarpp-shows-double-results/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://wpden.net/yet-another-related-posts-plugin-yarpp-shows-double-results/</feedburner:origLink></item>
	<media:rating>nonadult</media:rating></channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 3314/3492 objects using disk: basic

Served from: wpden.net @ 2012-05-28 15:59:58 -->

