<?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>Professional Web Designer - CIPPO Design &#187; taxonomies</title>
	<atom:link href="http://cippodesign.com/tag/taxonomies/feed" rel="self" type="application/rss+xml" />
	<link>http://cippodesign.com</link>
	<description>Custom Web Design – WordPress Design – CMS Design, Web Development – PSD to xHTML – PSD to WordPress, SEO plus other services</description>
	<lastBuildDate>Thu, 10 May 2012 13:36:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress 3.0 custom taxonomies</title>
		<link>http://cippodesign.com/tutorials/wordpress3/custom-taxonomies.html</link>
		<comments>http://cippodesign.com/tutorials/wordpress3/custom-taxonomies.html#comments</comments>
		<pubDate>Mon, 19 Jul 2010 19:51:46 +0000</pubDate>
		<dc:creator>Cippo</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[taxonomies]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cippodesign.com/?p=457</guid>
		<description><![CDATA[You have to build a website for a restaurant and you have chosen WordPress to do the job. It&#8217;s time to add restaurant&#8217;s products but you have to classify them. Well there&#8217;s a very easy way to do that. What &#8230; <a href="http://cippodesign.com/tutorials/wordpress3/custom-taxonomies.html">Find out more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You have to build a website for a restaurant and you have chosen WordPress to do the job. It&#8217;s time to add restaurant&#8217;s products but you have to classify them. Well there&#8217;s a very easy way to do that.</p>
<p>What products does a restaurant have? Well, I think a regular restaurant has Breakfast, Launch, Dinner, Beverage and Dessert.</p>
<p>Open functions.php from your wordpress theme directory and add the following code:</p>
<pre class="brush:php">function create_menu_categories() {

register_taxonomy(‘menu_type’, ‘post’, array(‘hierarchical’=&gt;;false, ‘label’=&gt;’Menu type’, ‘query_var’=&gt;true, ‘rewrite’=&gt;true));

}

add_action(‘init’, ‘create_menu_categories’, 0);</pre>
<h2>Query for posts, using custom tag</h2>
<p>To display only posts that have a specific tag from your custom taxonomies, place the code <span id="more-457"></span>before <a title="Wordpress loop" href="http://codex.wordpress.org/The_Loop" target="_blank">the loop</a>:</p>
<pre class="brush:php">&lt;?php query_posts(array('menu_type' =&gt; 'dessert', 'showposts' =&gt; 10)); ?&gt;</pre>
<p>You can change <strong>dessert</strong> to any other tag listed in the custom taxonomies and you can change, of course, how many posts to show by changing the number <strong>10</strong> to your number.</p>
]]></content:encoded>
			<wfw:commentRss>http://cippodesign.com/tutorials/wordpress3/custom-taxonomies.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

