<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>WpRecipes.com</title>
	
	<link>http://www.wprecipes.com</link>
	<description>Daily recipes to cook with WordPress</description>
	<lastBuildDate>Fri, 06 Nov 2009 07:17:45 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Wprecipes" type="application/rss+xml" /><feedburner:emailServiceId>Wprecipes</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>How to show WordPress post attachments</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/3-nL_b7SSng/how-to-show-wordpress-post-attachments</link>
		<comments>http://www.wprecipes.com/how-to-show-wordpress-post-attachments#comments</comments>
		<pubDate>Fri, 06 Nov 2009 07:04:21 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2162</guid>
		<description><![CDATA[Since WordPress 2.5, attachments management in WordPress have been improved and is now very powerful. Today, I'm going to show you a simple code snippet that you can use in your WordPress theme to display post attachments.<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/how-to-show-wordpress-post-attachments">How to show WordPress post attachments</a></p>
]]></description>
			<content:encoded><![CDATA[<p>To achieve this recipe, just paste the following code anywhere in your <em>post.php</em> file and attachments will be displayed.</p>
<pre>
$args = array(
	'post_type' => 'attachment',
	'numberposts' => null,
	'post_status' => null,
	'post_parent' => $post->ID
);
$attachments = get_posts($args);
if ($attachments) {
	foreach ($attachments as $attachment) {
		echo apply_filters('the_title', $attachment->post_title);
		the_attachment_link($attachment->ID, false);
	}
}
</pre>
<p><strong><em>Credit : <a href="http://snipplr.com/view.php?codeview&#038;id=5375">Snipplr</a>.</em></strong></p>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/how-to-show-wordpress-post-attachments">How to show WordPress post attachments</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/3-nL_b7SSng" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/how-to-show-wordpress-post-attachments/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/how-to-show-wordpress-post-attachments</feedburner:origLink></item>
		<item>
		<title>Display all thumbs related to a specific page on a media page in WordPress</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/piZiKJ05W6U/display-all-thumbs-related-to-a-specific-page-on-a-media-page-in-wordpress</link>
		<comments>http://www.wprecipes.com/display-all-thumbs-related-to-a-specific-page-on-a-media-page-in-wordpress#comments</comments>
		<pubDate>Wed, 04 Nov 2009 07:59:18 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[thumbnails]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2147</guid>
		<description><![CDATA[Today, here is a nice piece of code to display all thumbs related to a specific page on a media pages. Very nice for galleries!<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/display-all-thumbs-related-to-a-specific-page-on-a-media-page-in-wordpress">Display all thumbs related to a specific page on a media page in WordPress</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Simply paste the following function into your <em>functions.php</em> file:
<pre>
function wallthumb($id=false,$beforelist='&lt;ul class=&quot;gallerythumb&quot;&gt;',$afterlist='&lt;/ul&gt;',$beforeitem='&lt;li&gt;',$afteritem='&lt;/li&gt;'){
        global $wp_query;
        $goquery = $wp_query-&gt;post;//contenu de la requ&#232;te
        if(is_attachment()){
                $ptitre = $goquery-&gt;post_title;//le titre de l'image
                $idparent = $goquery-&gt;post_parent;//l'id de la page parente
                if(!$id){//si pas d'id en argument, on tente de la recuperer
                        $id = $goquery-&gt;ID;
                }
                if($idparent == null || $idparent == '' || $idparent == 0){
                        return;//si l'image est orpheline (sans page parente) on stop la fonction
                }
                //$twice = get_posts('post_type=attachment&amp;post_mime_type=image&amp;numberposts=-1&amp;order=ASC&amp;post_status=null&amp;post_parent='.$idparent);//recup des infos des pi&#232;ces jointes a la page parente
                $twice = get_children('post_type=attachment&amp;post_mime_type=image&amp;order=ASC&amp;post_parent='.$idparent);//recup des infos des pi&#232;ces jointes a la page parente
                $stocklienimage = array();//pour stocker les liens images
                if($twice){//si pi&#232;ces jointes
                        foreach ($twice as $value) {//boucle
                                $classthumbactu = '';
                                if($value-&gt;ID == $id){//detection de l'image courante dans la boucle pour ajout d'une classe pour la differencier
                                        $classthumbactu=' thumbactu';
                                }
                                $stocklienimage[$value-&gt;ID] = $beforeitem.'&lt;a class=&quot;wallthumb'.$classthumbactu.'&quot; href=&quot;'.get_attachment_link($value-&gt;ID).'&quot; title=&quot;'.wp_specialchars( get_the_title($value-&gt;ID), 1 ).'&quot; rel=&quot;attachment&quot;&gt;'.wp_get_attachment_image( $value-&gt;ID, 'thumbnail' ).'&lt;/a&gt;'.$afteritem;
                        }
                }else{
                        return;
                }
                echo $beforelist.implode('', $stocklienimage).$afterlist;//affichage de la liste
        }
}</pre>
<p>Once done, you just have to call the function:</p>
<pre>&lt;?php wallthumb() ?&gt;</pre>
<p>Enjoy your gallery! Note that another version of the same code is available <a href="http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html">here</a>.</p>
<p><strong><em>Thanks to <a href="http://www.webinventif.fr/wordpress-afficher-toutes-miniatures-liees-article-pages-media/">Julien Chauvin</a> for this great piece of code!</em></strong></p>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/display-all-thumbs-related-to-a-specific-page-on-a-media-page-in-wordpress">Display all thumbs related to a specific page on a media page in WordPress</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/piZiKJ05W6U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/display-all-thumbs-related-to-a-specific-page-on-a-media-page-in-wordpress/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/display-all-thumbs-related-to-a-specific-page-on-a-media-page-in-wordpress</feedburner:origLink></item>
		<item>
		<title>WordPress hack: Extend the body_class function</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/qxqvFMyGoVE/wordpress-hack-extend-the-body_class-function</link>
		<comments>http://www.wprecipes.com/wordpress-hack-extend-the-body_class-function#comments</comments>
		<pubDate>Mon, 02 Nov 2009 07:07:24 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hook]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2140</guid>
		<description><![CDATA[Introduced in WordPress 2.7 the body_class() function is extremely useful to style a particular post, page or subpage. But when we look at the subsubpages, the parent page ID is that of it’s nearest parent and not the ID of it’s top level parent. Let's solve this issue.<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/wordpress-hack-extend-the-body_class-function">WordPress hack: Extend the body_class function</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Nothing hard at all. Paste the following code in your <em>function.php</em> file :
<pre>
add_filter('body_class','top_level_parent_id_body_class');
function top_level_parent_id_body_class($classes) {
	global $wpdb, $post;
	if (is_page()) {
	    if ($post-&gt;post_parent)	{
        	$ancestors=get_post_ancestors($post-&gt;ID);
        	$root=count($ancestors)-1;
        	$parent = $ancestors[$root];
        } else {
        	$parent = $post-&gt;ID;
        }
        $classes[] = 'top-level-parent-pageid-' . $parent;
	}
	return $classes;
}
</pre>
<p>Once your <em>functions.php</em> file is saved, you're done. </p>
<p><strong><em>Thanks to <a href="http://blog.mrhenry.be/2009/10/extending-the-wordpress-body_class-function-with-the-top-level-parent-id/">Mr Henry</a> for this very cool recipe!</em></strong></p>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/wordpress-hack-extend-the-body_class-function">WordPress hack: Extend the body_class function</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/qxqvFMyGoVE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-hack-extend-the-body_class-function/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-hack-extend-the-body_class-function</feedburner:origLink></item>
		<item>
		<title>How to: Show parent page title regardless of what subpage you are on</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/8fDraagGLzY/how-to-show-parent-page-title-regardless-of-what-subpage-you-are-on</link>
		<comments>http://www.wprecipes.com/how-to-show-parent-page-title-regardless-of-what-subpage-you-are-on#comments</comments>
		<pubDate>Fri, 30 Oct 2009 07:47:27 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[page]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2133</guid>
		<description><![CDATA[Althougt it may sound simple to advanced WordPress coders, I had many requests from people working with WordPress as a CMS and wanting to be easily able to display parent page title on a subpage.<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/how-to-show-parent-page-title-regardless-of-what-subpage-you-are-on">How to: Show parent page title regardless of what subpage you are on</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Nothing hard at all: Just paste the following code where you'd like to display the parent page title:</p>
<pre>
&lt;?php
if($post-&gt;post_parent) {
    $parent_title = get_the_title($post-&gt;post_parent);
    echo $parent_title;
} else {
    wp_title('');
}
?&gt;
</pre>
<p>That's all! Quick and easy, as we like <img src='http://www.wprecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong><em>This recipe has been submitted by <a href="http://www.wesbos.com">Wes Bos</a>. Have WordPress skills? Feel free to <a href="http://www.wprecipes.com/contribute">contribute</a> to WpRecipes!</em></strong></p>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/how-to-show-parent-page-title-regardless-of-what-subpage-you-are-on">How to: Show parent page title regardless of what subpage you are on</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/8fDraagGLzY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/how-to-show-parent-page-title-regardless-of-what-subpage-you-are-on/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/how-to-show-parent-page-title-regardless-of-what-subpage-you-are-on</feedburner:origLink></item>
		<item>
		<title>WordPress upgrade : Allow more time for slow servers</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/YkuwjuDctp0/wordpress-upgrade-allow-more-time-for-slow-servers</link>
		<comments>http://www.wprecipes.com/wordpress-upgrade-allow-more-time-for-slow-servers#comments</comments>
		<pubDate>Wed, 28 Oct 2009 07:32:32 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2127</guid>
		<description><![CDATA[WordPress auto download/install is a very nice feature, but sometimes a few problems can appear. One of them is that WordPress don't manage to download the new version. This happens on slow servers. Here is how to solve it. <p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/wordpress-upgrade-allow-more-time-for-slow-servers">WordPress upgrade : Allow more time for slow servers</a></p>
]]></description>
			<content:encoded><![CDATA[<p>To apply this hack, you'll have to edit one of WordPress core files. Keep in mind that it is never recommended. This hack should be applied only if you have problems while auto-upgrading WordPress.</p>
<p>Open the <em>wp-admin/includes/files.php</em> file and go to line 448. You'll see the following:</p>
<pre>$response = wp_remote_get($url, array('timeout' => 60));</pre>
<p>To allow more downloading time, simply change the 60 with a greater value, as for example:</p>
<pre>$response = wp_remote_get($url, array('timeout' => 120));</pre>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/wordpress-upgrade-allow-more-time-for-slow-servers">WordPress upgrade : Allow more time for slow servers</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/YkuwjuDctp0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-upgrade-allow-more-time-for-slow-servers/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-upgrade-allow-more-time-for-slow-servers</feedburner:origLink></item>
		<item>
		<title>WordPress hack: Automatically insert author bio on each post</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/qiQFMEzX2t8/wordpress-hack-automatically-insert-author-bio-on-each-post</link>
		<comments>http://www.wprecipes.com/wordpress-hack-automatically-insert-author-bio-on-each-post#comments</comments>
		<pubDate>Mon, 26 Oct 2009 07:24:09 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[bio]]></category>
		<category><![CDATA[hook]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2112</guid>
		<description><![CDATA[Using WordPress hooks, it can be very easy to modify WordPress variables to fit your needs. In this recipe, I'm going to show you how to use hooks to automatically insert the author bio after each post.<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/wordpress-hack-automatically-insert-author-bio-on-each-post">WordPress hack: Automatically insert author bio on each post</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Open your <em>functions.php</em> file and paste the following code. That's all you have to do!
<pre>
function get_author_bio ($content=''){
    global $post;

    $post_author_name=get_the_author_meta(&quot;display_name&quot;);
    $post_author_description=get_the_author_meta(&quot;description&quot;);
    $html=&quot;&lt;div class='clearfix' id='about_author'&gt;\n&quot;;
    $html.=&quot;&lt;img width='80' height='80' class='avatar' src='http://www.gravatar.com/avatar.php?gravatar_id=&quot;.md5(get_the_author_email()). &quot;&amp;default=&quot;.urlencode($GLOBALS['defaultgravatar']).&quot;&amp;size=80&amp;r=PG' alt='PG'/&gt;\n&quot;;
    $html.=&quot;&lt;div class='author_text'&gt;\n&quot;;
    $html.=&quot;&lt;h4&gt;Author: &lt;span&gt;&quot;.$post_author_name.&quot;&lt;/span&gt;&lt;/h4&gt;\n&quot;;
    $html.= $post_author_description.&quot;\n&quot;;
    $html.=&quot;&lt;/div&gt;\n&quot;;
    $html.=&quot;&lt;div class='clear'&gt;&lt;/div&gt;\n&quot;;
    $content .= $html;

    return $content;
}

add_filter('the_content', 'get_author_bio');
</pre>
<p><strong><em>Thanks to <a href="http://aext.net/2009/10/wordpress-hack-anything-can-be-added-anywhere-in-the-post-content/">Lam Nguyen</a> for this cool little trick!</em></strong></p>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/wordpress-hack-automatically-insert-author-bio-on-each-post">WordPress hack: Automatically insert author bio on each post</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/qiQFMEzX2t8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-hack-automatically-insert-author-bio-on-each-post/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-hack-automatically-insert-author-bio-on-each-post</feedburner:origLink></item>
		<item>
		<title>Compress WordPress output and speed your blog’s load speed</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/tBNoGQOLrak/compress-wordpress-output-and-speed-your-blogs-load-speed</link>
		<comments>http://www.wprecipes.com/compress-wordpress-output-and-speed-your-blogs-load-speed#comments</comments>
		<pubDate>Wed, 21 Oct 2009 07:54:27 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2099</guid>
		<description><![CDATA[WordPress, by default, comes uncompressed and sends the uncompressed HTML to the visitor's browser. With one line of code added to your header, you can compress WordPress's output by up to 75%.  By using zlib compression technology, you can harness the power of PHP and reduce your blog's load speed!<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/compress-wordpress-output-and-speed-your-blogs-load-speed">Compress WordPress output and speed your blog&#8217;s load speed</a></p>
]]></description>
			<content:encoded><![CDATA[<p>First, place the following code in a file and call it "test.php" and then upload it to the root of your blog directory:</p>
<pre>&lt;?php phpinfo(); ?></pre>
<p>Make sure that "zlib" is enabled by your hosting provider.</p>
<p>Second, place the following code in your header (above the DOCTYPE):</p>
<pre>
&lt;?php
ini_set('zlib.output_compression', 'On');
ini_set('zlib.output_compression_level', '1');
?&gt;
</pre>
<p>You're done! Check <a rel="nofollow" href="http://www.port80software.com/support/p80tools.asp">Port80Software.com</a> to ensure you are compressing your output.</p>
<p>22/10/2009 update : If you're interested in <a href="http://www.catswhoblog.com/10-professional-wordpress-themes-to-start-your-online-business">WordPress themes designed for small businesses</a>, you should definitely have a look to the list I have compiled over at cats Who Blog!</p>
<p><strong><em>Thanks to Brad Ney for hios contribution to WpRecipes! Brad is the author of <a href="http://bradblogging.com">BradBlogging.com</a>, which is all about WordPress, HTML &amp; CSS and Usability tips and tweaks. You can subscribe to his <a href="http://feeds2.feedburner.com/BradBlogging">RSS Feed here</a>.</em></strong></p>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/compress-wordpress-output-and-speed-your-blogs-load-speed">Compress WordPress output and speed your blog&#8217;s load speed</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/tBNoGQOLrak" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/compress-wordpress-output-and-speed-your-blogs-load-speed/feed</wfw:commentRss>
		<slash:comments>36</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/compress-wordpress-output-and-speed-your-blogs-load-speed</feedburner:origLink></item>
		<item>
		<title>Display registered users comment count on your WordPress blog</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/6CmPvM3YtkU/display-registered-users-comment-count-on-your-wordpress-blog</link>
		<comments>http://www.wprecipes.com/display-registered-users-comment-count-on-your-wordpress-blog#comments</comments>
		<pubDate>Mon, 19 Oct 2009 07:01:44 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[regi]]></category>
		<category><![CDATA[registered users]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2095</guid>
		<description><![CDATA[If your blog is private or have lots of registered users, it may be interesting to be able to display the number of comments posted by registered users. This is the purpose of this code.<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/display-registered-users-comment-count-on-your-wordpress-blog">Display registered users comment count on your WordPress blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Simply paste the following code where you'd like the count to be displayed. Re-arrange the code as desired.</p>
<pre>
&lt;?php
global $wpdb;
$where = 'WHERE comment_approved = 1 AND user_id &lt;&gt; 0';
$comment_counts = (array) $wpdb-&gt;get_results(&quot;
		SELECT user_id, COUNT( * ) AS total
		FROM {$wpdb-&gt;comments}
		{$where}
		GROUP BY user_id
	&quot;, object);
foreach ( $comment_counts as $count ) {
  $user = get_userdata($count-&gt;user_id);
  echo 'User ' . $user-&gt;display_name . ' comment count is ' . $count-&gt;total . '
';
}
?&gt;
</pre>
<p><strong><em>Credits: Michael H on <a href="http://wordpress.org/support/topic/269956">WordPress forums</a>.</em></strong></p>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/display-registered-users-comment-count-on-your-wordpress-blog">Display registered users comment count on your WordPress blog</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/6CmPvM3YtkU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/display-registered-users-comment-count-on-your-wordpress-blog/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/display-registered-users-comment-count-on-your-wordpress-blog</feedburner:origLink></item>
		<item>
		<title>Automatically resize pictures on your WordPress blog</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/lbih4OaXv4g/automatically-resize-pictures-on-your-wordpress-blog</link>
		<comments>http://www.wprecipes.com/automatically-resize-pictures-on-your-wordpress-blog#comments</comments>
		<pubDate>Fri, 16 Oct 2009 07:03:57 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[timthumb]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2083</guid>
		<description><![CDATA[While it is very cool to add pictures to your blog posts, dealing with image sizes can be a bit tricky sometimes, especially if you have no skills about image resizing. The solution to this problem is to use Timthumb and WordPress shortcode API. Just read on to find out!<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/automatically-resize-pictures-on-your-wordpress-blog">Automatically resize pictures on your WordPress blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p>First, note that this code use <a href="http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/">TimThumb</a> to resize pictures. <a href="http://www.wprecipes.com/how-to-resize-images-on-the-fly">This recipe</a> explain how to install TimThumb on your WordPress blog.</p>
<p>Let's start by creating the shortcode. Just paste the code below into your <em>functions.php</em> file.</p>
<pre>
function imageresizer( $atts, $content = null ) {
	return '&lt;img src="/timthumb/timthumb.php?src='.$content.'&amp;w=590" alt="" /&gt;';
}

add_shortcode('img', 'imageresizer');</pre>
<p>Then, you can use the following syntax to add an automatically resized image to your blog post:</p>
<pre>[img]http://www.yoursite.com/yourimage.jpg[/img]</pre>
<p>That's all. Nice, isn't it? By the way, I just published a post on one of my other blogs about <a href="http://www.catswhoblog.com/top-10-wordpress-plugins-to-monetize-your-blog">Ten WordPress plugins to monetize your blog</a>, you might want to check it out! </p>
<p><strong><em>Source : <a href="http://www.catswhocode.com/blog/10-tricks-to-make-your-wordpress-theme-stand-out">http://www.catswhocode.com/blog/10-tricks-to-make-your-wordpress-theme-stand-out</a> - By <a href="http://www.wpshout.com">Alex Denning</a>.</em></strong></p>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/automatically-resize-pictures-on-your-wordpress-blog">Automatically resize pictures on your WordPress blog</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/lbih4OaXv4g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/automatically-resize-pictures-on-your-wordpress-blog/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/automatically-resize-pictures-on-your-wordpress-blog</feedburner:origLink></item>
		<item>
		<title>WordPress tip: Create a Tweetmeme “Retweeet” shortcode</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/onkBji-9S3A/wordpress-tip-create-a-tweetmeme-retweeet-shortcode</link>
		<comments>http://www.wprecipes.com/wordpress-tip-create-a-tweetmeme-retweeet-shortcode#comments</comments>
		<pubDate>Wed, 14 Oct 2009 07:15:07 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[shortcode]]></category>
		<category><![CDATA[tweetmeme]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2077</guid>
		<description><![CDATA[Tweetmeme is a popular service that allow you to display "Retweet" button on your blog posts. Even if the code is easy to integrate on your <em>single.php</em> file, it can be very cool to create a shortcode that you can insert anywhere in your posts.<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/wordpress-tip-create-a-tweetmeme-retweeet-shortcode">WordPress tip: Create a Tweetmeme &#8220;Retweeet&#8221; shortcode</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Paste the following code in your functions.php file in order to create the shortcode:</p>
<pre>
function tweetmeme(){
	return '&lt;div class=&quot;tweetmeme&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://tweetmeme.com/i/scripts/button.js&quot;&gt;&lt;/script&gt;&lt;/div&gt;';
}
add_shortcode('tweet', 'tweetmeme');
</pre>
<p>Once done, you can display the Tweetmeme "retweet" button anywhere on your posts. In WordPress editor, make sure you are in HTML mode and insert the following:</p>
<pre>[tweet]</pre>
<p>When your post will be published, the shortcode will be replaced by the TweetMeme button.</p>
<p><em>Looking for WordPress hosting? Try <a href="http://www.catswhocode.com/blog/wpwebhost.html">WP Web Host</a>. Prices starts at $5/month and you can try it for free!<br/><br/><a href="http://www.wprecipes.com/wordpress-tip-create-a-tweetmeme-retweeet-shortcode">WordPress tip: Create a Tweetmeme &#8220;Retweeet&#8221; shortcode</a></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/onkBji-9S3A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-tip-create-a-tweetmeme-retweeet-shortcode/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-tip-create-a-tweetmeme-retweeet-shortcode</feedburner:origLink></item>
	</channel>
</rss>
