<?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, 27 Jan 2012 13:41:47 +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" type="application/rss+xml" href="http://feeds.feedburner.com/Wprecipes" /><feedburner:info uri="wprecipes" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Wprecipes</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>WordPress tip: Use shortcodes in theme files</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/yT1_gciNpcQ/wordpress-tip-use-shortcodes-in-theme-files</link>
		<comments>http://www.wprecipes.com/wordpress-tip-use-shortcodes-in-theme-files#comments</comments>
		<pubDate>Fri, 27 Jan 2012 13:41:47 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[shortcode]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2993</guid>
		<description><![CDATA[Many people asked me if it is possible to use WordPress shortcodes in theme files. Yes, it is - Follow this simple recipe to get started!]]></description>
			<content:encoded><![CDATA[<p>Assuming the want to use a shortcode named <em>[my_shortcode]</em>, you'll have to do the following and use the <em>do_shortcode()</em> function: </p>
<pre>&lt;?php echo do_shortcode("[my_shortcode]"); ?&gt;</pre>
<p>Easy and super useful.</p>
<p><strong><em>Thanks to <a href="http://wp-snippets.com/shortcodes-in-templates/">WP Snippets</a> for the tip!</em></strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/yT1_gciNpcQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-tip-use-shortcodes-in-theme-files/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-tip-use-shortcodes-in-theme-files</feedburner:origLink></item>
		<item>
		<title>WordPress tip: Speed up your blog by caching custom queries</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/nuesxTahIfA/wordpress-tip-speed-up-your-blog-by-caching-custom-queries</link>
		<comments>http://www.wprecipes.com/wordpress-tip-speed-up-your-blog-by-caching-custom-queries#comments</comments>
		<pubDate>Tue, 24 Jan 2012 15:09:44 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[wp-query]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2988</guid>
		<description><![CDATA[Is your theme using custom queries? If yes, you should definitely use WordPress Transients API to cache the queries and consequently speed up your blog. Today's recipe will show you how to cache any custom queries.]]></description>
			<content:encoded><![CDATA[<p>Nothing hard here: simply paste the following code where you need to execute a custom query to the database. Don't forget to update the query on line 5!</p>
<pre>
&lt;?php
// Get any existing copy of our transient data
if ( false === ( $special_query_results = get_transient( &#39;special_query_results&#39; ) ) ) {
    // It wasn&#39;t there, so regenerate the data and save the transient
     $special_query_results = new WP_Query( &#39;cat=5&amp;order=random&amp;tag=tech&amp;post_meta_key=thumbnail&#39; );
     set_transient( &#39;special_query_results&#39;, $special_query_results );
}

// Use the data like you would have normally...
?&gt;
</pre>
<p>This code is using WordPress Transients API. <a href="http://www.catswhocode.com/blog/wordpress-transients-api-practical-examples">Click here</a> to view more useful examples of this API!</p>
<p><strong><em>Credits: <a href="http://codex.wordpress.org/Transients_API">WordPress Codex</a>.</em></strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/nuesxTahIfA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-tip-speed-up-your-blog-by-caching-custom-queries/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-tip-speed-up-your-blog-by-caching-custom-queries</feedburner:origLink></item>
		<item>
		<title>WordPress tip: Show admin bar only for admins</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/nI0rxU6uREM/wordpress-tip-show-admin-bar-only-for-admins</link>
		<comments>http://www.wprecipes.com/wordpress-tip-show-admin-bar-only-for-admins#comments</comments>
		<pubDate>Tue, 17 Jan 2012 15:35:25 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2985</guid>
		<description><![CDATA[Introduced in WordPress 3.3, the admin bar is a new version of the controversial "Toolbar" which came with WordPress 3.0. Personally, I think the admin bar is useful only when you're the blog admin. When you're a simple contributor, you don't really need it. So why not getting rid of it, except for admins?]]></description>
			<content:encoded><![CDATA[<p>Simply paste the following code into your functions.php file. Once saved, only admins will see the admin bar.</p>
<pre>
if (!current_user_can('manage_options')) {
	add_filter('show_admin_bar', '__return_false');
}
</pre>
<p><strong><em>Thanks to <a href="http://digwp.com/2012/01/goodbye-admin-bar-hello-toolbar/">Jeff Starr</a> for the tip!</em></strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/nI0rxU6uREM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-tip-show-admin-bar-only-for-admins/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-tip-show-admin-bar-only-for-admins</feedburner:origLink></item>
		<item>
		<title>WordPress: Improved the_excerpt() function</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/DNk1fjn5CS4/wordpress-improved-the_excerpt-function</link>
		<comments>http://www.wprecipes.com/wordpress-improved-the_excerpt-function#comments</comments>
		<pubDate>Thu, 12 Jan 2012 14:45:38 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2981</guid>
		<description><![CDATA[The the_excerpt() function is useful and very popular among theme developers, but it's far from being perfect. Today's recipe showcase an improved the_excerpt() function, which display an excerpt which is not longer than a predetermined length and doesn’t cut off in mid-sentence.]]></description>
			<content:encoded><![CDATA[<p>The first thing to do is to create the function. Open your <em>functions.php</em> file and paste the code below in it.</p>
<pre>
// Variable &amp; intelligent excerpt length.
function print_excerpt($length) { // Max excerpt length. Length is set in characters
	global $post;
	$text = $post-&gt;post_excerpt;
	if ( &#39;&#39; == $text ) {
		$text = get_the_content(&#39;&#39;);
		$text = apply_filters(&#39;the_content&#39;, $text);
		$text = str_replace(&#39;]]&gt;&#39;, &#39;]]&gt;&#39;, $text);
	}
	$text = strip_shortcodes($text); // optional, recommended
	$text = strip_tags($text); // use &#39; $text = strip_tags($text,&#39;&lt;p&gt;&lt;a&gt;&#39;); &#39; if you want to keep some tags

	$text = substr($text,0,$length);
	$excerpt = reverse_strrchr($text, &#39;.&#39;, 1);
	if( $excerpt ) {
		echo apply_filters(&#39;the_excerpt&#39;,$excerpt);
	} else {
		echo apply_filters(&#39;the_excerpt&#39;,$text);
	}
}

// Returns the portion of haystack which goes until the last occurrence of needle
function reverse_strrchr($haystack, $needle, $trail) {
    return strrpos($haystack, $needle) ? substr($haystack, 0, strrpos($haystack, $needle) + $trail) : false;
}
</pre>
<p>Once done, you can use the print_excerpt() function in your theme files, as shown below:</p>
<pre>&lt;?php print_excerpt(50); ?&gt;</pre>
<p><strong><em>Thanks to <a href="http://www.distractedbysquirrels.com/blog/wordpress-improved-dynamic-excerpt/">Sebastian</a> for the function!</em></strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/DNk1fjn5CS4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-improved-the_excerpt-function/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-improved-the_excerpt-function</feedburner:origLink></item>
		<item>
		<title>WordPress hack: How to build a network navigation menu</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/OOMZdt1P9vI/wordpress-hack-how-to-build-a-network-navigation-menu</link>
		<comments>http://www.wprecipes.com/wordpress-hack-how-to-build-a-network-navigation-menu#comments</comments>
		<pubDate>Tue, 10 Jan 2012 15:10:41 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2974</guid>
		<description><![CDATA[Multisites networks are definitely a great feature introduced in WP 3.0+. In this recipe, you're going to learn how you can create a "network" navigation menu, which list all sites on your network. ]]></description>
			<content:encoded><![CDATA[<p>The first thing to do is to create the function. Paste the code below into your <em>functions.php</em> file:</p>
<pre>
/**
 * Build a list of all websites in a network
 */
function wp_list_sites( $expires = 7200 ) {
   if( !is_multisite() ) return false;

   // Because the get_blog_list() function is currently flagged as deprecated
   // due to the potential for high consumption of resources, we&#39;ll use
   // $wpdb to roll out our own SQL query instead. Because the query can be
   // memory-intensive, we&#39;ll store the results using the Transients API
   if ( false === ( $site_list = get_transient( &#39;multisite_site_list&#39; ) ) ) {
      global $wpdb;
      $site_list = $wpdb-&gt;get_results( $wpdb-&gt;prepare(&#39;SELECT * FROM wp_blogs ORDER BY blog_id&#39;) );
      // Set the Transient cache to expire every two hours
      set_site_transient( &#39;multisite_site_list&#39;, $site_list, $expires );
   }

   $current_site_url = get_site_url( get_current_blog_id() );

   $html = &#39;
&lt;ul id=&quot;network-menu&quot;&gt;&#39; . &quot;\n&quot;;

   foreach ( $site_list as $site ) {
      switch_to_blog( $site-&gt;blog_id );
      $class = ( home_url() == $current_site_url ) ? &#39; class=&quot;current-site-item&quot;&#39; : &#39;&#39;;
      $html .= &quot;\t&quot; . &#39;
&lt;li id=&quot;site-&#39; . $site-&gt;blog_id . &#39;&quot; &#39;=&quot;&quot; .=&quot;&quot; $class=&quot;&quot;&gt;&lt;a href=&quot;&#39; . home_url() . &#39;&quot;&gt;&#39; . get_bloginfo(&#39;name&#39;) . &#39;&lt;/a&gt;&lt;/li&gt;

&#39; . &quot;\n&quot;;
      restore_current_blog();
   }

   $html .= &#39;&lt;/ul&gt;

&lt;!--// end #network-menu --&gt;&#39; . &quot;\n\n&quot;;

   return $html;
}
</pre>
<p>Once done, you can use the wp_list_sites() function in your theme files. The example below shows how it works:</p>
<pre>
&lt;?php
// Multisite Network Menu
$network_menu = wp_list_sites();
if( $network_menu ):
?&gt;
&lt;div id=&quot;network-menu&quot;&gt;
   &lt;?php echo $network_menu; ?&gt;
&lt;/div&gt;

&lt;!--// end #network-menu --&gt;
&lt;?php endif; ?&gt;
</pre>
<p><strong><em>Thanks to <a href="http://wp.smashingmagazine.com/2011/11/17/wordpress-multisite-practical-functions-methods/">Kevin Leary</a> for the great hack!</em></strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/OOMZdt1P9vI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-hack-how-to-build-a-network-navigation-menu/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-hack-how-to-build-a-network-navigation-menu</feedburner:origLink></item>
		<item>
		<title>How to rearrange WordPress categories order</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/kwvv_jKcNr0/how-to-rearrange-wordpress-categories-order</link>
		<comments>http://www.wprecipes.com/how-to-rearrange-wordpress-categories-order#comments</comments>
		<pubDate>Thu, 05 Jan 2012 15:04:08 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2970</guid>
		<description><![CDATA[A very common problem with WordPress sites is that you can't easily reaarange category order. Sure, you can use a custom menu, but for some sites you have to reaarrange the order of your categories. This snippet will show you how to do it easily.]]></description>
			<content:encoded><![CDATA[<p>The code above will look for a specific category (Don't forget to update line 5) and will replace it on top of all other categories. The code has to be pasted in your <em>functions.php</em> file.</p>
<pre>
&lt;?php
$categories = get_terms(&#39;books_category&#39;);

for( $i=0; $i&lt;sizeof($categories); $i++ ){
  if ( $categories[$i]-&gt;name == &#39;New Publications&#39; ) :
    $latest = array($categories[$i]);
    unset($categories[$i]);
  endif;
}

if( isset($latest) )
  array_splice( $categories, 0, 0, $latest );
?&gt;
</pre>
<p><strong>Thanks to <a href="http://www.distractedbysquirrels.com/blog/wordpress-rearange-category-order/">Sebastian</a> for the great hack!</strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/kwvv_jKcNr0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/how-to-rearrange-wordpress-categories-order/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/how-to-rearrange-wordpress-categories-order</feedburner:origLink></item>
		<item>
		<title>Display number of Facebook fans in full text on your WordPress blog</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/EW-S4Ys49Og/display-number-of-facebook-fans-in-full-text-on-your-wordpress-blog</link>
		<comments>http://www.wprecipes.com/display-number-of-facebook-fans-in-full-text-on-your-wordpress-blog#comments</comments>
		<pubDate>Thu, 29 Dec 2011 14:28:26 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2966</guid>
		<description><![CDATA[If you have a Facebook page for your blog, you might want to display how many fans you have. Today's recipe will help you to get your Facebook fan count, in full text!]]></description>
			<content:encoded><![CDATA[<p>Simply paste the following code in any of your theme files, where you want your Facebook fan count to be displayed. Don't forget to add your page ID on line 2!</p>
<pre>
&lt;?php
	$page_id = &quot;YOUR PAGE-ID&quot;;
	$xml = @simplexml_load_file(&quot;http://api.facebook.com/restserver.php?method=facebook.fql.query&amp;query=SELECT%20fan_count%20FROM%20page%20WHERE%20page_id=&quot;.$page_id.&quot;&quot;) or die (&quot;a lot&quot;);
	$fans = $xml-&gt;page-&gt;fan_count;
	echo $fans;
?&gt;
</pre>
<p><strong><em>Thanks to <a href="http://wp-snippets.com/742/display-number-facebook-fans/">WP Snippets</a> for the recipe!</em></strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/EW-S4Ys49Og" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/display-number-of-facebook-fans-in-full-text-on-your-wordpress-blog/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/display-number-of-facebook-fans-in-full-text-on-your-wordpress-blog</feedburner:origLink></item>
		<item>
		<title>WordPress tip: Increased height of the excerpt field</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/JLgKzdnsNkY/wordpress-tip-increased-height-of-the-excerpt-field</link>
		<comments>http://www.wprecipes.com/wordpress-tip-increased-height-of-the-excerpt-field#comments</comments>
		<pubDate>Wed, 14 Dec 2011 06:49:40 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dashboard]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2961</guid>
		<description><![CDATA[The "excerpt" field allow you to write a quick excerpt in order to introduce your posts. By default, the field is about 50px tall. Want to make it bigger? No problem, just use this recipe.]]></description>
			<content:encoded><![CDATA[<p>Simply paste the following code into your functions.php file. Height can be adjusted on line 5.</p>
<pre>
add_action(&#39;admin_head&#39;, &#39;excerpt_textarea_height&#39;);
function excerpt_textarea_height() {
    echo&#39;
    &lt;style type=&quot;text/css&quot;&gt;
        #excerpt{ height:500px; }
    &lt;/style&gt;
    &#39;;
}
</pre>
<p><strong><em>Thanks to <a href="http://spyrestudios.com/17-time-saving-code-snippets-for-wordpress-developers/">Spyre Studios</a> for the cool hack!</em></strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/JLgKzdnsNkY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-tip-increased-height-of-the-excerpt-field/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-tip-increased-height-of-the-excerpt-field</feedburner:origLink></item>
		<item>
		<title>WordPress hook: Automatically add a Google+ button to your posts</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/59BuRmIyWRU/wordpress-hook-automatically-add-a-google-button-to-your-posts</link>
		<comments>http://www.wprecipes.com/wordpress-hook-automatically-add-a-google-button-to-your-posts#comments</comments>
		<pubDate>Thu, 08 Dec 2011 10:59:05 +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=2957</guid>
		<description><![CDATA[Google+ 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. Today, I'm going to show you a simple piece of code to automatically add a Google+ button to your posts.]]></description>
			<content:encoded><![CDATA[<p>Open your <em>functions.php</em> file and paste the following code in it:</p>
<pre>
add_filter(&#39;the_content&#39;, &#39;wpr_google_plusone&#39;);
function wpr_google_plusone($content) {
	$content = $content.&#39;&lt;div class=&quot;plusone&quot;&gt;&lt;g:plusone size=&quot;tall&quot; href=&quot;&#39;.get_permalink().&#39;&quot;&gt;&lt;/g:plusone&gt;&lt;/div&gt;&#39;;
	return $content;
}
add_action (&#39;wp_enqueue_scripts&#39;,&#39;wpr_google_plusone_script&#39;);
function wpr_google_plusone_script() {
	wp_enqueue_script(&#39;google-plusone&#39;, &#39;https://apis.google.com/js/plusone.js&#39;, array(), null);
}
</pre>
<p>Once saved, a Google+ button will be automatically added to all your posts.</p>
<p><strong><em>Thanks to <a href="http://spyrestudios.com/17-time-saving-code-snippets-for-wordpress-developers/">Spyre Studios</a> for the great piece of code!</em></strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/59BuRmIyWRU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-hook-automatically-add-a-google-button-to-your-posts/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-hook-automatically-add-a-google-button-to-your-posts</feedburner:origLink></item>
		<item>
		<title>WordPress tip: Restrict user access to specific templates</title>
		<link>http://feedproxy.google.com/~r/Wprecipes/~3/J5xeexIWF2E/wordpress-tip-restrict-user-access-to-specific-templates</link>
		<comments>http://www.wprecipes.com/wordpress-tip-restrict-user-access-to-specific-templates#comments</comments>
		<pubDate>Wed, 30 Nov 2011 08:54:15 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[page template]]></category>

		<guid isPermaLink="false">http://www.wprecipes.com/?p=2951</guid>
		<description><![CDATA[A common request of clients is to be able to have page that can be only accessed by specific roles (authors, contributors, etc). Here is a quick tip to create a page template that only authors can access.]]></description>
			<content:encoded><![CDATA[<p>Simply create a new <a href="http://codex.wordpress.org/Pages#Page_Templates">page template</a> and paste the following at the very beginning of the file:</p>
<pre>
&lt;?php
/* Template Name: Restricted to Authors only */

if ( !current_user_can(&#39;author&#39;)) {
	wp_die(&#39;You don’t have access to this page.&#39;)
}
?&gt;
</pre>
<p><strong><em>Thanks to <a href="http://wpsnipp.com/index.php/template/restrict-user-access-to-specific-templates/">Kevin Chard</a> for this snippet!</em></strong></p>
<img src="http://feeds.feedburner.com/~r/Wprecipes/~4/J5xeexIWF2E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.wprecipes.com/wordpress-tip-restrict-user-access-to-specific-templates/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.wprecipes.com/wordpress-tip-restrict-user-access-to-specific-templates</feedburner:origLink></item>
	</channel>
</rss>

