<?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>One Serving &#187; plugin</title>
	<atom:link href="http://oneserving.com/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://oneserving.com</link>
	<description>Making nutrition simple</description>
	<lastBuildDate>Fri, 03 Sep 2010 15:28:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress Plugin: Show Post Subcategories</title>
		<link>http://oneserving.com/site-news/wordpress-plugin-show-post-subcategories/</link>
		<comments>http://oneserving.com/site-news/wordpress-plugin-show-post-subcategories/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 21:28:10 +0000</pubDate>
		<dc:creator>Debbie</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[subcategories]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://oneserving.com/uncategorized/wordpress-plugin-show-post-subcategories/</guid>
		<description><![CDATA[In order to run this site, I need to display the subcategories of a particular category in single post pages. There are a few other people who were also looking to do the same thing, but got no joy. I wrote my own very basic plugin to do the job. Download version 0.3 &#8216;Weefz&#8217;s Show [...]]]></description>
			<content:encoded><![CDATA[<p>In order to run this site, I need to display the subcategories of a particular category in single post pages. There are a few other people who were also looking to do the same thing, but got no joy. I wrote my own very basic plugin to do the job.</p>
<p>Download version 0.3 <a href="http://wordpress.org/extend/plugins/weefzs-show-post-subcategories/">&#8216;Weefz&#8217;s Show Post Subcategories</a>&#8216; from the WordPress Plugins Directory (or see below for version 0.4).</p>
<p>Here&#8217;s how it works:</p>
<ol>
<li>Unzip the download into your WordPress plugins directory</li>
<li>Activate it in the plugins management screen</li>
<li>Go to your template editor</li>
<li>Within <a href="http://codex.wordpress.org/The_Loop">The Loop</a>, add the following tag <code><br />&lt;?php wfzShowPostSubcategories('prefix','suffix','separator','parent category id number') ?&gt;</code></li>
<li>Replace prefix, suffix and separators with the text of your choice, keeping it within the single quotation marks</li>
<li>Replace cat_ID with the ID number of the parent category</li>
</ol>
<p>For example, say that you want to show the post&#8217;s subcategories of category 5 in an unordered list. Use the following tag:</p>
<p><code> &lt;?php wfzShowPostSubcategories('&lt;ul&gt;&lt;li&gt;','&lt;/ul&gt;','&lt;/li&gt;&lt;li&gt;','5') ?&gt; </code></p>
<p>I have used this with all versions of WordPress from 2.2.1 to 2.7.0. It doesn&#8217;t do anything fancy, so should work with earlier versions.</p>
<p><strong>Disclaimer:</strong> This is my first WordPress plugin, so <em>please test it out</em> before installing on a live site. I use it myself right here at One Serving &#8211; it drives the links to the &#8220;High in&#8221; nutrient fields for every <a href="http://oneserving.com/category/oneserving/fruit-and-veg/">food serving size</a> post.</p>
<p>Drop me a comment below with any questions or advice. If you like the plugin, feel free to buy me a beer or healthy juice drink with the PayPal button ;) </p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="djtimmins@gmail.com">
<input type="hidden" name="item_name" value="Thanks for the Subcategories Plugin">
<input type="hidden" name="amount" value="2.00">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="logo_custom" value="http://oneserving.com/wfzPlugins/btnThanks.gif">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="http://oneserving.com/wfzPlugins/btnThanks.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"><br />
</form>
<p><strong>Update 8th June 2009:</strong> Plugin is now on version 0.4. By popular request, it now allows you to display subcategories without any separator. Just use the following:</p>
<p><code> &lt;?php wfzShowPostSubcategories('','','','your parent category id') ?&gt; </code></p>
<p>It&#8217;s temporarily available <a href="http://oneserving.com/wfzPlugins/wfz-showPostSubcategories.zip">here</a> until I find the time to upload it properly to the WordPress Plugins directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://oneserving.com/site-news/wordpress-plugin-show-post-subcategories/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
	</channel>
</rss>

