<?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>Michael Fields &#187; Taxonomy</title>
	<atom:link href="http://wordpress.mfields.org/topics/taxonomy/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpress.mfields.org</link>
	<description>I&#039;m a Theme Wrangler at Automattic! Rock!</description>
	<lastBuildDate>Tue, 27 Mar 2012 20:37:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Post Format Queries</title>
		<link>http://wordpress.mfields.org/2011/post-format-queries/</link>
		<comments>http://wordpress.mfields.org/2011/post-format-queries/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 18:18:02 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://wordpress.mfields.org/?p=466</guid>
		<description><![CDATA[I recently finished a custom plugin for a client and after I shipped it to him, he wrote back asking if I could make a small modification. Basically, there was a loop that displayed a certain number of posts and he wanted to excluded posts formatted as &#8220;links&#8221;. It dawned on me that I have]]></description>
			<content:encoded><![CDATA[<p>I recently finished a custom plugin for a client and after I shipped it to him, he wrote back asking if I could make a small modification. Basically, there was a loop that displayed a certain number of posts and he wanted to excluded posts formatted as &#8220;links&#8221;. It dawned on me that I have never really done this before and was excited make it happen!</p>
<p><span id="more-466"></span></p>
<p>I knew that this <em>should</em> be relatively easy to accomplish. WordPress 3.1 extended the way that taxonomies can be queried which allows for a great deal of fine tuning. Read more about <a href="http://ottopress.com/2010/wordpress-3-1-advanced-taxonomy-queries/">Advanced Taxonomy Queries in WordPress</a>.</p>
<p>So, without further ado, here&#8217;s the solution &#8230; as well as a couple of things I learned along the way.</p>
<h2>5 Most Recent Posts &#8211; No Links</h2>
<p>Passing the <code>tax_query</code> argument to <code>get_posts()</code>. The following configuration allows you to exclude all posts having the &#8220;Link&#8221; post format.</p>
<pre class="brush: php; title: ; notranslate">
$no_links = get_posts( array(
	'tax_query' =&gt; array(
		array(
		  'taxonomy' =&gt; 'post_format',
		  'field'    =&gt; 'slug',
		  'terms'    =&gt; array( 'post-format-link' ),
		  'operator' =&gt; 'NOT IN'
		)
	)
) );</pre>
<h2>Only Links</h2>
<p>By replacing <code>NOT IN</code> with <code>IN</code> for the <code>operator</code> argument, we can easily make the query return only link posts.</p>
<pre class="brush: php; title: ; notranslate">
$links = get_posts( array(
	'tax_query' =&gt; array(
		array(
		  'taxonomy' =&gt; 'post_format',
		  'field'    =&gt; 'slug',
		  'terms'    =&gt; array( 'post-format-link' ),
		  'operator' =&gt; 'IN'
		)
	)
) );</pre>
<h2>More Than Just Links!</h2>
<p>If you need to include or exclude posts of another format, you can modify the value of the <code>terms</code> arg with anything from the following list:</p>
<ul>
<li><code>post-format-aside</code></li>
<li><code>post-format-audio</code></li>
<li><code>post-format-chat</code></li>
<li><code>post-format-gallery</code></li>
<li><code>post-format-image</code></li>
<li><code>post-format-link</code></li>
<li><code>post-format-status</code></li>
<li><code>post-format-quote</code></li>
<li><code>post-format-video</code></li>
</ul>
<h2>Combine a Few Different Post Formats</h2>
<p>The <code>terms</code> arg has been designed specifically to enable you to include or exclude more than one term. If you wanted to exclude both links and status updates from your query, the following should do the trick.</p>
<pre class="brush: php; title: ; notranslate">
$exclude_links_and_status = get_posts( array(
	'tax_query' =&gt; array(
		array(
		  'taxonomy' =&gt; 'post_format',
		  'field'    =&gt; 'slug',
		  'terms'    =&gt; array( 'post-format-link', 'post-format-status' ),
		  'operator' =&gt; 'NOT IN',
		)
	)
) );
</pre>
<h2>Showing Only Standard Posts</h2>
<p>Perhaps you have a blog with posts of many, many different formats (These are good problems to have <abbr title="By the way">btw</abbr>. I only use two ). What do you do if you only want to display a list of <em>regular-old-posts</em>? You&#8217;ll probably want to exclude all of the post formats.</p>
<h3>Get a List of All Post Formats</h3>
<pre class="brush: php; title: ; notranslate">
$formats = get_post_format_slugs();
</pre>
<h3>Massage the Post Formats</h3>
<p>The <code>get_post_format_slugs()</code> function returns the simple, easy to read name for each post format. We will need to use the <em>long-form</em> name of the post format in our query. We&#8217;ll just loop over format names and add a bit of info to the beginning of name.</p>
<pre class="brush: php; title: ; notranslate">
foreach ( (array) $formats as $i =&gt; $format ) {
	$formats[$i] = 'post-format-' . $format;
}
</pre>
<h3>Run the Query</h3>
<p>All that&#8217;s left to do is pass of the the formats as the <code>terms</code> argument and set the <code>operator</code> argument to <code>NOT IN</code>.</p>
<pre class="brush: php; title: ; notranslate">
$standard_posts = get_posts( array(
	'tax_query' =&gt; array(
		array(
		  'taxonomy' =&gt; 'post_format',
		  'field'    =&gt; 'slug',
		  'terms'    =&gt; $formats,
		  'operator' =&gt; 'NOT IN'
		)
	)
) );
</pre>
<p>Here&#8217;s all of it together for easy copy-and-paste. I even threw in a simple loop at no extra charge!</p>
<pre class="brush: php; title: ; notranslate">
$formats = get_post_format_slugs();

foreach ( (array) $formats as $i =&gt; $format ) {
	$formats[$i] = 'post-format-' . $format;
}

$standard_posts = get_posts( array(
	'tax_query' =&gt; array(
		array(
		  'taxonomy' =&gt; 'post_format',
		  'field'    =&gt; 'slug',
		  'terms'    =&gt; $formats,
		  'operator' =&gt; 'NOT IN'
		)
	)
) );

global $post;

foreach( (array) $standard_posts as $post ) {
	setup_postdata( $post );
	print '&lt;div&gt;';
	the_title( '&lt;h2&gt;', '&lt;/h2&gt;' );
	the_content();
	print '&lt;/div&gt;';
}

wp_reset_postdata();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/2011/post-format-queries/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Set Default Terms for your Custom Taxonomies</title>
		<link>http://wordpress.mfields.org/2010/set-default-terms-for-your-custom-taxonomies-in-wordpress-3-0/</link>
		<comments>http://wordpress.mfields.org/2010/set-default-terms-for-your-custom-taxonomies-in-wordpress-3-0/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 15:01:15 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://wordpress.mfields.org/?p=311</guid>
		<description><![CDATA[If you&#8217;ve ever created a post in WordPress, you&#8217;ll know that you have to put it in a category. There&#8217;s no way around this, if you try to fight it, you will lose! On the other hand, there is really no way to define a default for custom taxonomies. I created the following code to]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever created a post in WordPress, you&#8217;ll know that you <em>have</em> to put it in a category. There&#8217;s no way around this, if you try to fight it, you will lose! On the other hand, there is really no way to define a default for custom taxonomies. I created the following code to enable you to set default terms for each taxonomy registered on your installation. <span id="more-311"></span></p>
<pre class="brush: php; title: ; notranslate">
/**
 * Define default terms for custom taxonomies in WordPress 3.0.1
 *
 * @author    Michael Fields     http://wordpress.mfields.org/
 * @props     John P. Bloch      http://www.johnpbloch.com/
 *
 * @since     2010-09-13
 * @alter     2010-09-14
 *
 * @license   GPLv2
 */
function mfields_set_default_object_terms( $post_id, $post ) {
	if ( 'publish' === $post-&gt;post_status ) {
		$defaults = array(
			'post_tag' =&gt; array( 'taco', 'banana' ),
			'monkey-faces' =&gt; array( 'see-no-evil' ),
			);
		$taxonomies = get_object_taxonomies( $post-&gt;post_type );
		foreach ( (array) $taxonomies as $taxonomy ) {
			$terms = wp_get_post_terms( $post_id, $taxonomy );
			if ( empty( $terms ) &amp;&amp; array_key_exists( $taxonomy, $defaults ) ) {
				wp_set_object_terms( $post_id, $defaults[$taxonomy], $taxonomy );
			}
		}
	}
}
add_action( 'save_post', 'mfields_set_default_object_terms', 100, 2 );
</pre>
<p>You will need to configure the $defaults array to reflect your wishes. The keys are taxonomy slugs and the values consist of an array that contains term slugs from the taxonomy referenced in the key. You can list as many terms as you want to be set by default for each taxonomy. </p>
<p>This worked for me on a very plain installation of WordPress 3.0.1. If you know of an alternative method, or think that this code can be improved in any way, please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/2010/set-default-terms-for-your-custom-taxonomies-in-wordpress-3-0/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Append a posts taxonomy terms to post class.</title>
		<link>http://wordpress.mfields.org/2010/append-a-posts-taxonomy-terms-to-post-class/</link>
		<comments>http://wordpress.mfields.org/2010/append-a-posts-taxonomy-terms-to-post-class/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 02:00:47 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://wordpress.mfields.org/?p=274</guid>
		<description><![CDATA[The following function will enable your theme to append the slug of every term of a given taxonomy that has been associated to the current post. You will most likely want to change the value of the $taxonomy variable to match a taxonomy registered for the post type you are targeting. It is also possible]]></description>
			<content:encoded><![CDATA[<p>The following function will enable your theme to append the slug of every term of a given taxonomy that has been associated to the current post. You will most likely want to change the value of the <var>$taxonomy</var> variable to match a taxonomy registered for the post type you are targeting. <span id="more-274"></span></p>
<pre class="brush: php; title: ; notranslate">
/**
 * Append the terms of a single taxonomy to the list of
 * classes generated by post_class().
 *
 * @since 2010-07-10
 * @alter 2012-01-06
 */
function mysite_post_class( $classes, $class, $ID ) {

	if ( is_admin() )
		return $classes;

	$taxonomy = 'bananas';

	$terms = get_the_terms( (int) $ID, $taxonomy );
	if ( is_wp_error( $terms ) || empty( $terms ) )
		return $classes;

	foreach ( (array) $terms as $term ) {
		if ( ! in_array( $term-&gt;slug, $classes ) )
			$classes[] = $term-&gt;slug;
	}

	return $classes;
}

add_filter( 'post_class', 'mysite_post_class', 10, 3 );
</pre>
<p>It is also possible to add the terms of multiple taxonomies at the same time. All you need to do is pass an array to <code>get_terms()</code> instead of a string. Here&#8217;s what it looks like:</p>
<pre class="brush: php; title: ; notranslate">
/**
 * Append the terms of multiple taxonomies to the list
 * of classes generated by post_class().
 *
 * @since 2010-07-10
 * @alter 2012-01-06
 */
function mysite_post_class( $classes, $class, $ID ) {

	$taxonomies = array(
		'bananas',
		'tacos',
		'bunny-rabbits',
	);

	$terms = get_the_terms( (int) $ID, $taxonomies );

	if ( is_wp_error( $terms ) || empty( $terms ) )
		return $classes;

	foreach ( (array) $terms as $term ) {
		if ( ! in_array( $term-&gt;slug, $classes ) )
			$classes[] = $term-&gt;slug;
	}

	return $classes;
}

add_filter( 'post_class', 'mysite_post_class', 10, 3 );
</pre>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/2010/append-a-posts-taxonomy-terms-to-post-class/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Dynamically Create Actions for Every Defined Taxonomy&#8217;s Column Header</title>
		<link>http://wordpress.mfields.org/2010/dynamically-create-actions-for-every-defined-taxonomys-column-header/</link>
		<comments>http://wordpress.mfields.org/2010/dynamically-create-actions-for-every-defined-taxonomys-column-header/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 02:59:50 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://wordpress.mfields.org/?p=262</guid>
		<description><![CDATA[Taxonomy support in WordPress 3.0 has improved in many places. During the time I spent updating a few of my plugins, I noticed that dynamic filters had been defined for the columns that appear on edit-tags.php &#8211; the file that lists the terms for each taxonomy in the administration panels. The following snippet demonstrates how]]></description>
			<content:encoded><![CDATA[<p>Taxonomy support in WordPress 3.0 has improved in many places. During the time I spent updating a few of my <a href="http://wordpress.mfields.org/plugins/">plugins</a>, I noticed that dynamic filters had been defined for the columns that appear on edit-tags.php &#8211; the file that lists the terms for each taxonomy in the administration panels. The following snippet demonstrates how to schedule a function to be fired for every taxonomy&#8217;s custom column. <span id="more-262"></span></p>
<pre class="brush: php; title: ; notranslate">
if( !function_exists( 'mfields_taxonomy_add_term_row_actions' ) ) {
	add_action( 'admin_init', 'mfields_taxonomy_add_term_row_actions' );
	/**
	 * Dynamically create actions for every defined taxonomy.
	 */
	function mfields_taxonomy_add_term_row_actions() {
		global $wp_taxonomies;
		foreach( $wp_taxonomies as $taxonomy =&gt; $taxonomies ) {
			$action = 'manage_' . $taxonomy . '_custom_column';
			add_action( $action, 'your_function_name', 10, 3 );
		}
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/2010/dynamically-create-actions-for-every-defined-taxonomys-column-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dealing with Long Taxonomy Descriptions in the WordPress Administration Panels</title>
		<link>http://wordpress.mfields.org/2010/dealing-with-long-taxonomy-descriptions-in-the-wordpress-administration-panels/</link>
		<comments>http://wordpress.mfields.org/2010/dealing-with-long-taxonomy-descriptions-in-the-wordpress-administration-panels/#comments</comments>
		<pubDate>Mon, 31 May 2010 04:48:04 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://wordpress.mfields.org/?p=259</guid>
		<description><![CDATA[If you&#8217;re like me, you try to take full advantage of the taxonomy system the the latest version of WordPress. Unfortunately, the taxonomy administration panels tend to get quickly bloated where terms have descriptions that are longer than a few words. Here is a quick and easy method to help put an end to long]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like me, you try to take full advantage of the taxonomy system the the latest version of WordPress. Unfortunately, the taxonomy administration panels tend to get quickly bloated where terms have descriptions that are longer than a few words. Here is a quick and easy method to help put an end to long descriptions messing with your work flow. <span id="more-259"></span></p>
<h2>Shorten the Term Descriptions</h2>
<pre class="brush: php; title: ; notranslate">
/**
 * Create actions for all taxonomies.
 *
 * @return    void
 *
 * @since     2010-05-31
 * @alter     2011-01-09
 */
function mfields_taxonomy_description_add_actions() {
	global $wp_taxonomies;
	foreach ( $wp_taxonomies as $taxonomy =&gt; $taxonomies ) {
		add_action( 'manage_' . $taxonomy . '_custom_column', 'mfields_taxonomy_description_rows', 10, 3 );
		add_action( 'manage_edit-' . $taxonomy . '_columns',  'mfields_taxonomy_description_columns' );
	}
}
add_action( 'admin_init', 'mfields_taxonomy_description_add_actions' );

/**
 * Filter the taxonomy tables columns.
 *
 * Remove the default &quot;Description&quot; column.
 * Add a custom &quot;Short Description&quot; column.
 *
 * @param     array     Unfiltered columns for the taxonomy's edit screen.
 * @return    array     Modified columns for the taxonomy's edit screen.
 *
 * @since     2010-05-31
 * @alter     2011-01-09
 */
function mfields_taxonomy_description_columns( $c ) {
	unset( $c['description'] );
	$c['short_description'] = 'Description';
	return $c;
}

/**
 * Display the shortened description in each row's custom column.
 *
 * @param     string    Should be empty.
 * @return    string    Name of the column.
 * @return    string    Term id. Integer represented as string.
 *
 * @since     2010-05-31
 * @alter     2011-01-09
 */
function mfields_taxonomy_description_rows( $string, $column_name, $term ) {
	$description = '';
	if ( 'short_description' == $column_name ) {
		global $taxonomy;
		$description = term_description( $term, $taxonomy );
	}
	return $string . mfields_shorten( $description, 40 );
}

/**
 * Shorten a string to a given length.
 *
 * @param     string    The string to shorten.
 * @return    int       Number of characters allowed in $string. Defaults value is 23.
 * @return    string    Text to append to the shortened string.
 *
 * @since     2010-05-31
 * @alter     2011-01-09
 */
function mfields_shorten( $string, $length = 23, $append = '...' ) {
	$string = strip_tags( $string );
	$string = trim( $string );
	$string = html_entity_decode( $string, ENT_QUOTES, 'UTF-8' );
	$string = rtrim( $string, '-' );
	return ( strlen( $string ) &gt; absint( $length ) ) ? substr_replace( $string, $append, absint( $length ) ) : $string;
}
</pre>
<p>Hope someone finds this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/2010/dealing-with-long-taxonomy-descriptions-in-the-wordpress-administration-panels/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Query All Posts that are in More than One Category</title>
		<link>http://wordpress.mfields.org/2010/query-all-posts-in-more-than-one-category/</link>
		<comments>http://wordpress.mfields.org/2010/query-all-posts-in-more-than-one-category/#comments</comments>
		<pubDate>Fri, 14 May 2010 10:58:27 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://wordpress.mfields.org/?p=207</guid>
		<description><![CDATA[The following query will return all posts that are associated with more than one category. This query could be useful in the scenario where you would want to migrate a site to a category structure where each post is only assigned to one category. If this is your goal, you may want to check out]]></description>
			<content:encoded><![CDATA[<p>The following query will return all posts that are associated with more than one category. This query could be useful in the scenario where you would want to migrate a site to a category structure where each post is only assigned to one category. If this is your goal, you may want to check out my <a href="http://wordpress.mfields.org/plugins/radio-categories/">Radio Categories Plugin</a> <span id="more-207"></span></p>
<pre class="brush: php; title: ; notranslate">
$posts = $wpdb-&gt;get_results( &quot;
	SELECT p.*, COUNT( p.`ID` ) AS 'category_count'
	FROM $wpdb-&gt;posts AS p, $wpdb-&gt;term_taxonomy as tt, $wpdb-&gt;term_relationships as tr
	WHERE tt.`taxonomy` = 'category'
	AND tt.`term_taxonomy_id` = tr.`term_taxonomy_id`
	AND tr.`object_id` = p.ID
	AND p.`post_type` = 'post'
	GROUP BY p.`ID`
	HAVING COUNT( p.`ID` ) &gt; 1
	ORDER BY COUNT( p.`ID` ) DESC
	&quot; );
</pre>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/2010/query-all-posts-in-more-than-one-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Radio Categories</title>
		<link>http://wordpress.mfields.org/plugins/category-radio-buttons/</link>
		<comments>http://wordpress.mfields.org/plugins/category-radio-buttons/#comments</comments>
		<pubDate>Fri, 14 May 2010 10:57:14 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
		
		<guid isPermaLink="false">http://wordpress.mfields.org/</guid>
		<description><![CDATA[This plugin forces your writers to only use one category for each post by enabling the category meta box to use radio buttons instead of check boxes.]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to restrict category usage to one category per post? I have. and so have others. Here is an easy to use plugin which will replace the default category checklist to one that uses radio buttons. This change will force all writers on your blog to use only one category per post.</p>
<p>It is quite possible that, if you are installing this plugin on an already existing site, you may have posts that contain more than one category. Since radio buttons allow only one option to be selected at a time, these posts will look like only one category has been assigned while in actuality, there are many. I have created the 1 Post/Category utility which can be accessed via the Tools section of the Administration Menu. Please use this tool to ensure that your posts are in the correct category before allowing other authors to post.</p>
<p>Please note that this plugin only changes the meta box under &#8220;Edit&#8221;. The &#8220;Quick Edit&#8221; menu will still use check boxes. I plan on updating this in a future release.</p>
<h3>Download</h3>
<p>Latest version: <a href="http://downloads.wordpress.org/plugin/category-radio-buttons.zip">Download <b>Radio Categories</b> v0.2</a> [zip]</p>
<h3>Installation</h3>
<ol>
<li><a href="http://wordpress.org/extend/plugins/taxonomy-list-shortcode/">Download</a></li>
<li>Unzip the package and upload to your /wp-content/plugins/ directory.</li>
<li>Log into WordPress and navigate to the &#8220;Plugins&#8221; panel.</li>
<li>Activate the plugin.</li>
</ol>
<h3>Changelog</h3>
<h4>0.2</h4>
<ul>
<li>Now works on WordPress version 2.9.2</li>
<li>Added support for + &#8220;Add New Category&#8221;.</li>
<li>CSS updates for hierarchical category display.</li>
<li>Moved the 1 Post/Category utility into it&#8217;s own file.</li>
</ul>
<h4>0.1</h4>
<ul>
<li>Original Release &#8211; Works on WordPress version 3.0 Beta 2.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/plugins/category-radio-buttons/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Remove Taxonomy Box from WordPress Administration Panels</title>
		<link>http://wordpress.mfields.org/2010/remove-taxonomy-box-from-wordpress-administration-panels/</link>
		<comments>http://wordpress.mfields.org/2010/remove-taxonomy-box-from-wordpress-administration-panels/#comments</comments>
		<pubDate>Tue, 11 May 2010 10:09:23 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://wordpress.mfields.org/?p=173</guid>
		<description><![CDATA[I&#8217;m posting this here pretty much for my own reference. The idea is to create an array of taxonomy slugs that you want to hide from the Edit screens in The WordPress Administration Panels. You can then loop over the global $wp_taxonomies variable and if the taxonomy is present in the $hide array, the WordPress]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m posting this here pretty much for my own reference. The idea is to create an array of taxonomy slugs that you want to hide from the Edit screens in The WordPress Administration Panels. You can then loop over the global <var>$wp_taxonomies</var> variable and if the taxonomy is present in the <var>$hide</var> array, the WordPress core function <code>remove_meta_box()</code> will be called. At this point you also might want to call the <code>add_meta_box()</code> function to register a new UI object to handle the taxonomies terms. <span id="more-173"></span></p>
<pre class="brush: php; title: ; notranslate">if( !function_exists( 'mfields_overwrite_hide_taxonomies_from_admin' ) ) {
	add_action( 'add_meta_boxes', 'mfields_hide_taxonomies_from_admin' );
	function mfields_hide_taxonomies_from_admin() {
		global $wp_taxonomies;
		$hide = array(
			'symbolism'
			);
		foreach( $wp_taxonomies as $name =&gt; $taxonomy ) {
			if( in_array( $name, $hide ) ) {
				remove_meta_box( 'tagsdiv-' . $name, 'post', 'side' );
				add_meta_box(
					'mfields_taxonomy_ui_' . $name,
					$taxonomy-&gt;label,
					'my_custom_taxonomy_handler_function',
					'post',
					'side',
					'core',
					array( 'taxonomy' =&gt; $name )
					);
			}
		}
	}
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/2010/remove-taxonomy-box-from-wordpress-administration-panels/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Taxonomy Widget Plugin</title>
		<link>http://wordpress.mfields.org/plugins/taxonomy-widget/</link>
		<comments>http://wordpress.mfields.org/plugins/taxonomy-widget/#comments</comments>
		<pubDate>Sun, 09 May 2010 07:39:58 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
		
		<guid isPermaLink="false">http://wordpress.mfields.org/</guid>
		<description><![CDATA[The Taxonomy Widget Plugin enables users to create widgets in their sidebar that display all terms of any given taxonomy. Users can choose between 3 different templates including two types of lists, a term cloud or a dropdown menu. Options Title &#8211; You can enter a custom title for your widget in this text input.]]></description>
			<content:encoded><![CDATA[The Taxonomy Widget Plugin enables users to create widgets in their sidebar that display all terms of any given taxonomy. Users can choose between 3 different templates including two types of lists, a term cloud or a dropdown menu. Options Title &#8211; You can enter a custom title for your widget in this text input.]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/plugins/taxonomy-widget/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Screenshot of the New Taxonomy Widget Plugin</title>
		<link>http://wordpress.mfields.org/2010/screenshot-of-the-new-taxonomy-widget-plugin/</link>
		<comments>http://wordpress.mfields.org/2010/screenshot-of-the-new-taxonomy-widget-plugin/#comments</comments>
		<pubDate>Thu, 06 May 2010 00:16:21 +0000</pubDate>
		<dc:creator>Michael Fields</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://wordpress.mfields.org/?p=117</guid>
		<description><![CDATA[A new taxonomy plug-in is on the way! Just waiting for approval from wordpress.org for hosting and then it will be unleashed to the masses. I created this plug-in to give WordPress users an easy way to add a list of custom taxonomies to their sidebars. Here&#8217;s a screenshot of the plug-in: The plug-in enables]]></description>
			<content:encoded><![CDATA[<p>A new taxonomy plug-in is on the way! Just waiting for approval from wordpress.org for hosting and then it will be unleashed to the masses. I created this plug-in to give WordPress users an easy way to add a list of custom taxonomies to their sidebars. <span id="more-117"></span></p>
<p>Here&#8217;s a screenshot of the plug-in:</p>
<p><a href="http://wordpress.mfields.org/wp-content/uploads/2010/05/taxonomy-widget-screenshot1.png"><img src="http://wordpress.mfields.org/wp-content/uploads/2010/05/taxonomy-widget-screenshot1.png" alt="Screenshot of the Taxonomy Widget" title="Screenshot of the Taxonomy Widget" longdesc="http://wordpress.mfields.org?longdesc=367&#038;referrer=117" width="520" height="343" class="aligncenter size-full wp-image-367" /></a><a id="longdesc-return-367"></a></p>
<p>The plug-in enables you to display any taxonomy that can be associated with a post (including tags and categories) in any one of 4 different templates: Ordered List, Unordered List, Drop-down Menu and Term Cloud. As with all widgets, you can use multiple instances.</p>
<p>If you have no idea what a taxonomies are and how you can utilize them to their full potential on your own WordPress powered website, please read the following article the I put together on the subject called  <a href="http://wordpress.mfields.org/taxonomy/">New and Exciting Ways to Organize Your WordPress Powered Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.mfields.org/2010/screenshot-of-the-new-taxonomy-widget-plugin/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

