<?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 Super Ninja &#187; Jean Baptiste</title>
	<atom:link href="http://wordpresssuperninja.com/tag/jean-baptiste/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpresssuperninja.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 04 Sep 2010 22:03:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress hack: Get rid of HTML in comments</title>
		<link>http://wordpresssuperninja.com/uncategorized/wordpress-hack-get-rid-of-html-in-comments/</link>
		<comments>http://wordpresssuperninja.com/uncategorized/wordpress-hack-get-rid-of-html-in-comments/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 11:43:23 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Amp]]></category>
		<category><![CDATA[Crap]]></category>
		<category><![CDATA[everything]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[Excerpt]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[Functionality]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[plc]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Post]]></category>
		<category><![CDATA[Quot]]></category>
		<category><![CDATA[Quotes]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[Web Host]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/uncategorized/wordpress-hack-get-rid-of-html-in-comments/</guid>
		<description><![CDATA[Just paste the code below into your functions.php file. If you prefer to use a plugin with the same functionality, you can grab one here. // This will occur when the comment is posted function plc_comment_post( $incoming_comment ) { // convert everything in a comment to display literally $incoming_comment[&#039;comment_content&#039;] = htmlspecialchars($incoming_comment[&#039;comment_content&#039;]); // the one exception [...]]]></description>
			<content:encoded><![CDATA[Just paste the code below into your functions.php file. If you prefer to use a plugin with the same functionality, you can grab one here.

// This will occur when the comment is posted
function plc_comment_post( $incoming_comment ) {

	// convert everything in a comment to display literally
	$incoming_comment[&#039;comment_content&#039;] = htmlspecialchars($incoming_comment[&#039;comment_content&#039;]);

	// the one exception is single quotes, which cannot [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/uncategorized/wordpress-hack-get-rid-of-html-in-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to easily enable/disable debug mode in WordPress</title>
		<link>http://wordpresssuperninja.com/uncategorized/how-to-easily-enabledisable-debug-mode-in-wordpress/</link>
		<comments>http://wordpresssuperninja.com/uncategorized/how-to-easily-enabledisable-debug-mode-in-wordpress/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 11:06:08 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Amp]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Jean]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[Joost]]></category>
		<category><![CDATA[mode]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[parameter]]></category>
		<category><![CDATA[Post]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[Url]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Host]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/uncategorized/how-to-easily-enabledisable-debug-mode-in-wordpress/</guid>
		<description><![CDATA[The first thing to do is to add the following code to your wp-config.php file. This file is located at the root of your WordPress install. if ( isset($_GET['debug']) &#038;&#38; $_GET['debug'] == 'debug') define('WP_DEBUG', true); Once done, simply add a GET parameter to the url of the page you&#8217;d like to debug, as shown below: [...]]]></description>
			<content:encoded><![CDATA[The first thing to do is to add the following code to your wp-config.php file. This file is located at the root of your WordPress install.

if ( isset($_GET['debug']) &#038;&amp; $_GET['debug'] == 'debug')
  define('WP_DEBUG', true);

Once done, simply add a GET parameter to the url of the page you&#8217;d like to debug, as shown below:
http://www.wprecipes.com/contact?debug=debug
Thanks to [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/uncategorized/how-to-easily-enabledisable-debug-mode-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress tip: Close trackbacks on all posts at once</title>
		<link>http://wordpresssuperninja.com/uncategorized/wordpress-tip-close-trackbacks-on-all-posts-at-once/</link>
		<comments>http://wordpresssuperninja.com/uncategorized/wordpress-tip-close-trackbacks-on-all-posts-at-once/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 10:43:51 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[client]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Command Line Client]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Jean]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[Phpmyadmin]]></category>
		<category><![CDATA[Post]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[Sql]]></category>
		<category><![CDATA[Sql Queries]]></category>
		<category><![CDATA[Sql Query]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[Trackbacks]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Web Host]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/uncategorized/wordpress-tip-close-trackbacks-on-all-posts-at-once/</guid>
		<description><![CDATA[Simply run the following SQL query on your WordPress database, using the command line client or PhpMyAdmin. This will close pingbacks/trackbacks on all existing posts. Don&#8217;t forget to backup your database before using this query. UPDATE wp_posts SET ping_status = 'closed'; If you like to know more about WordPress SQL queries, you should have a [...]]]></description>
			<content:encoded><![CDATA[Simply run the following SQL query on your WordPress database, using the command line client or PhpMyAdmin. This will close pingbacks/trackbacks on all existing posts.
Don&#8217;t forget to backup your database before using this query.

UPDATE wp_posts SET ping_status = 'closed';

If you like to know more about WordPress SQL queries, you should have a look to this [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/uncategorized/wordpress-tip-close-trackbacks-on-all-posts-at-once/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress function: Get category ID using category name</title>
		<link>http://wordpresssuperninja.com/uncategorized/wordpress-function-get-category-id-using-category-name/</link>
		<comments>http://wordpresssuperninja.com/uncategorized/wordpress-function-get-category-id-using-category-name/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 15:46:09 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[CALL]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[cat name]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[Category Id]]></category>
		<category><![CDATA[category name]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[example category]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Jean]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[parameter]]></category>
		<category><![CDATA[parameter example]]></category>
		<category><![CDATA[Post]]></category>
		<category><![CDATA[return]]></category>
		<category><![CDATA[term]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Host]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/uncategorized/wordpress-function-get-category-id-using-category-name/</guid>
		<description><![CDATA[As usual, let&#8217;s start by pasting the function in your functions.php file: function get_category_id($cat_name){ $term = get_term_by('name', $cat_name, 'category'); return $term-&#62;term_id; } Once you saved the file, just call the function with your category name as a parameter. Example: $category_ID = get_category_id('WordPress Tutorials'); Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month [...]]]></description>
			<content:encoded><![CDATA[As usual, let&#8217;s start by pasting the function in your functions.php file:

function get_category_id($cat_name){
	$term = get_term_by('name', $cat_name, 'category');
	return $term-&gt;term_id;
}

Once you saved the file, just call the function with your category name as a parameter. Example:

$category_ID = get_category_id('WordPress Tutorials');

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!
WordPress [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/uncategorized/wordpress-function-get-category-id-using-category-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to display your average feed readers</title>
		<link>http://wordpresssuperninja.com/uncategorized/how-to-display-your-average-feed-readers/</link>
		<comments>http://wordpresssuperninja.com/uncategorized/how-to-display-your-average-feed-readers/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 09:23:12 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[CatsWhoCode]]></category>
		<category><![CDATA[circulation]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[feed readers]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Foreach]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Interval]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[parameter]]></category>
		<category><![CDATA[round]]></category>
		<category><![CDATA[setopt]]></category>
		<category><![CDATA[strtotime]]></category>
		<category><![CDATA[Today]]></category>
		<category><![CDATA[Web Host]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/uncategorized/how-to-display-your-average-feed-readers/</guid>
		<description><![CDATA[As usual, the first thing to do is to paste the function in your functions.php file: function get_average_readers($feed_id,$interval = 7){ $today = date(&#039;Y-m-d&#039;, strtotime(&#34;now&#34;)); $ago = date(&#039;Y-m-d&#039;, strtotime(&#34;-&#34;.$interval.&#34; days&#34;)); $feed_url=&#34;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=&#34;.$feed_id.&#34;&#38;dates=&#34;.$ago.&#34;,&#34;.$today; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $feed_url); $data = curl_exec($ch); curl_close($ch); $xml = new SimpleXMLElement($data); $fb = $xml-&#62;feed-&#62;entry[&#039;circulation&#039;]; $nb = 0; foreach($xml-&#62;feed-&#62;children() as [...]]]></description>
			<content:encoded><![CDATA[As usual, the first thing to do is to paste the function in your functions.php file:

function get_average_readers($feed_id,$interval = 7){
	$today = date(&#039;Y-m-d&#039;, strtotime(&quot;now&quot;));
	$ago = date(&#039;Y-m-d&#039;, strtotime(&quot;-&quot;.$interval.&quot; days&quot;));
	$feed_url=&quot;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=&quot;.$feed_id.&quot;&amp;dates=&quot;.$ago.&quot;,&quot;.$today;
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_URL, $feed_url);
	$data = curl_exec($ch);
	curl_close($ch);
	$xml = new SimpleXMLElement($data);
	$fb = $xml-&gt;feed-&gt;entry[&#039;circulation&#039;];

	$nb = 0;
	foreach($xml-&gt;feed-&gt;children() as $circ){
		$nb += $circ[&#039;circulation&#039;];
	}

	return round($nb/$interval);
}

Once done, you can call the function wherever you want [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/uncategorized/how-to-display-your-average-feed-readers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add categories or tags to post programatically</title>
		<link>http://wordpresssuperninja.com/uncategorized/add-categories-or-tags-to-post-programatically/</link>
		<comments>http://wordpresssuperninja.com/uncategorized/add-categories-or-tags-to-post-programatically/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 06:57:01 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Array]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[difference]]></category>
		<category><![CDATA[example category]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Jean]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[month]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[Parameters]]></category>
		<category><![CDATA[Post]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Tag]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Host]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/uncategorized/add-categories-or-tags-to-post-programatically/</guid>
		<description><![CDATA[The first thing to do is to create an array of categories id. Once done, you simply have to use the wp_set_object() function, which take 3 parameters: The post id, an array of categories to add to the post, and the taxonomy type (category in this example). $category_ids = array(4, 5, 6); wp_set_object_terms( $post_id, $category_ids, [...]]]></description>
			<content:encoded><![CDATA[The first thing to do is to create an array of categories id. Once done, you simply have to use the wp_set_object() function, which take 3 parameters: The post id, an array of categories to add to the post, and the taxonomy type (category in this example).

$category_ids = array(4, 5, 6);
wp_set_object_terms( $post_id, $category_ids, 'category');

Adding tags [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/uncategorized/add-categories-or-tags-to-post-programatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display dates as “time ago”, the easy way</title>
		<link>http://wordpresssuperninja.com/uncategorized/display-dates-as-%e2%80%9ctime-ago%e2%80%9d-the-easy-way/</link>
		<comments>http://wordpresssuperninja.com/uncategorized/display-dates-as-%e2%80%9ctime-ago%e2%80%9d-the-easy-way/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 04:26:41 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Credits]]></category>
		<category><![CDATA[Current Time]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Human Time]]></category>
		<category><![CDATA[Jean]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[Php Echo]]></category>
		<category><![CDATA[Post]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Time Diff]]></category>
		<category><![CDATA[timestamp]]></category>
		<category><![CDATA[way]]></category>
		<category><![CDATA[Web Host]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/uncategorized/display-dates-as-%e2%80%9ctime-ago%e2%80%9d-the-easy-way/</guid>
		<description><![CDATA[To display human readable dates on your blog, you have to use the human_time_diff() function. The following piece of code will show a post date like &#8220;Posted 6 days ago&#8221;. Paste it anywhere within the loop, save the file, and you&#8217;re done. Posted &#60;?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago'; ?&#62; Credits: PHP Snippets. Looking [...]]]></description>
			<content:encoded><![CDATA[To display human readable dates on your blog, you have to use the human_time_diff() function. The following piece of code will show a post date like &#8220;Posted 6 days ago&#8221;.
Paste it anywhere within the loop, save the file, and you&#8217;re done.

Posted &lt;?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago'; ?&gt;

Credits: PHP Snippets.
Looking for WordPress hosting? Try [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/uncategorized/display-dates-as-%e2%80%9ctime-ago%e2%80%9d-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress hack: Use includes in your posts or pages</title>
		<link>http://wordpresssuperninja.com/uncategorized/wordpress-hack-use-includes-in-your-posts-or-pages/</link>
		<comments>http://wordpresssuperninja.com/uncategorized/wordpress-hack-use-includes-in-your-posts-or-pages/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 06:49:01 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Amp]]></category>
		<category><![CDATA[Content Post]]></category>
		<category><![CDATA[Credits]]></category>
		<category><![CDATA[Endif]]></category>
		<category><![CDATA[endwhile]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[includeContentShortcode]]></category>
		<category><![CDATA[intval]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[query posts]]></category>
		<category><![CDATA[query return]]></category>
		<category><![CDATA[Quot]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[Reset Query]]></category>
		<category><![CDATA[Syntax]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[Web Host]]></category>
		<category><![CDATA[xxxx]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/uncategorized/wordpress-hack-use-includes-in-your-posts-or-pages/</guid>
		<description><![CDATA[The first step is to paste the following code in your function.php file: function digwp_includeContentShortcode($atts) { $thepostid = intval($atts[postidparam]); $output = &#039;&#039;; query_posts(&#34;p=$thepostid&#38;post_type=page&#34;); if (have_posts()) : while (have_posts()) : the_post(); $output .= get_the_content($post-&#62;ID); endwhile; else: // failed, output nothing endif; wp_reset_query(); return [...]]]></description>
			<content:encoded><![CDATA[The first step is to paste the following code in your function.php file:

function digwp_includeContentShortcode($atts) {

  $thepostid = intval($atts[postidparam]);
  $output = &#039;&#039;;

  query_posts(&quot;p=$thepostid&amp;post_type=page&quot;);
  if (have_posts()) : while (have_posts()) : the_post();
    $output .= get_the_content($post-&gt;ID);
  endwhile; else:
    // failed, output nothing
  endif;
  wp_reset_query();

  return [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/uncategorized/wordpress-hack-use-includes-in-your-posts-or-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to programatically remove WordPress dashboard widgets</title>
		<link>http://wordpresssuperninja.com/uncategorized/how-to-programatically-remove-wordpress-dashboard-widgets/</link>
		<comments>http://wordpresssuperninja.com/uncategorized/how-to-programatically-remove-wordpress-dashboard-widgets/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 10:35:30 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Action]]></category>
		<category><![CDATA[Boxes]]></category>
		<category><![CDATA[CatsWhoCode]]></category>
		<category><![CDATA[Current User]]></category>
		<category><![CDATA[Custom]]></category>
		<category><![CDATA[Dashboard Widgets]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[look]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[NoScope]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Press]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Side]]></category>
		<category><![CDATA[unset]]></category>
		<category><![CDATA[way]]></category>
		<category><![CDATA[Web Host]]></category>
		<category><![CDATA[Wp]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/uncategorized/how-to-programatically-remove-wordpress-dashboard-widgets/</guid>
		<description><![CDATA[Simply paste the following into your functions.php file. The code will remove all dashboard widgets, so you should comment lines related to wigets you&#8217;d like to keep. function remove_dashboard_widgets() { global $wp_meta_boxes; unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;side&#039;][&#039;core&#039;][&#039;dashboard_quick_press&#039;]); unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_incoming_links&#039;]); unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_right_now&#039;]); unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_plugins&#039;]); unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_recent_drafts&#039;]); unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_recent_comments&#039;]); unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;side&#039;][&#039;core&#039;][&#039;dashboard_primary&#039;]); unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;side&#039;][&#039;core&#039;][&#039;dashboard_secondary&#039;]); } if (!current_user_can(&#039;manage_options&#039;)) { add_action(&#039;wp_dashboard_setup&#039;, &#039;remove_dashboard_widgets&#039; ); } Thanks to NoScope for this code! By [...]]]></description>
			<content:encoded><![CDATA[Simply paste the following into your functions.php file. The code will remove all dashboard widgets, so you should comment lines related to wigets you&#8217;d like to keep.

function remove_dashboard_widgets() {
	global $wp_meta_boxes;

	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;side&#039;][&#039;core&#039;][&#039;dashboard_quick_press&#039;]);
	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_incoming_links&#039;]);
	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_right_now&#039;]);
	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_plugins&#039;]);
	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_recent_drafts&#039;]);
	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_recent_comments&#039;]);
	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;side&#039;][&#039;core&#039;][&#039;dashboard_primary&#039;]);
	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;side&#039;][&#039;core&#039;][&#039;dashboard_secondary&#039;]);

}

if (!current_user_can(&#039;manage_options&#039;)) {
	add_action(&#039;wp_dashboard_setup&#039;, &#039;remove_dashboard_widgets&#039; );
}

Thanks to NoScope for this code!
By the way, did you had a look to my latest post on CatsWhoCode about WP 3.0 [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/uncategorized/how-to-programatically-remove-wordpress-dashboard-widgets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to automatically create a custom field when a post is published</title>
		<link>http://wordpresssuperninja.com/95682/how-to-automatically-create-a-custom-field-when-a-post-is-published/</link>
		<comments>http://wordpresssuperninja.com/95682/how-to-automatically-create-a-custom-field-when-a-post-is-published/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 09:56:34 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[95682]]></category>
		<category><![CDATA[Action]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Jean Baptiste]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[line 6]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[name]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[revision]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[true thanks]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[Web Host]]></category>
		<category><![CDATA[Wp]]></category>
		<category><![CDATA[wpCanyon]]></category>

		<guid isPermaLink="false">http://wordpresssuperninja.com/95682/how-to-automatically-create-a-custom-field-when-a-post-is-published/</guid>
		<description><![CDATA[Paste the code below into your functions.php file. The only thing you have to do is to edit the cutsom field name on line 6. add_action('publish_page', 'add_custom_field_automatically'); add_action('publish_post', 'add_custom_field_automatically'); function add_custom_field_automatically($post_ID) { global $wpdb; if(!wp_is_post_revision($post_ID)) { add_post_meta($post_ID, 'field-name', 'custom value', true); } } Thanks to wpCanyon for this cool tip! Looking for WordPress hosting? Try [...]]]></description>
			<content:encoded><![CDATA[Paste the code below into your functions.php file. The only thing you have to do is to edit the cutsom field name on line 6.

add_action('publish_page', 'add_custom_field_automatically');
add_action('publish_post', 'add_custom_field_automatically');
function add_custom_field_automatically($post_ID) {
	global $wpdb;
	if(!wp_is_post_revision($post_ID)) {
		add_post_meta($post_ID, 'field-name', 'custom value', true);
	}
}

Thanks to wpCanyon for this cool tip!
Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can [...]]]></content:encoded>
			<wfw:commentRss>http://wordpresssuperninja.com/95682/how-to-automatically-create-a-custom-field-when-a-post-is-published/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
