<?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>KNGUYENTU - PHOTOGRAPHY BY KEVIN &#38; SAP HELP BY KEVIN &#187; Sidebar</title>
	<atom:link href="http://knguyentu.com/wordpress/tag/sidebar/feed/" rel="self" type="application/rss+xml" />
	<link>http://knguyentu.com/wordpress</link>
	<description>Home Of SAPHELPBYKEVIN.COM , PHOTOGRAPHYBYKEVIN.NET &#38; Smilepak Blog</description>
	<lastBuildDate>Thu, 05 Nov 2009 21:37:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WP: Creating Dropdown List of Categories</title>
		<link>http://knguyentu.com/wordpress/2008/06/wp-creating-dropdown-list-of-categories/</link>
		<comments>http://knguyentu.com/wordpress/2008/06/wp-creating-dropdown-list-of-categories/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 06:03:00 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WordPress Tips and Hack]]></category>
		<category><![CDATA[Category Dropdown]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=141</guid>
		<description><![CDATA[Here is a little WordPress tip / trick. For anyone who is trying to build their sidebar and or want to add a dropwdown list style for category listing, this is one simple method.
http://codex.wordpress.org/Template_Tags/wp_dropdown_categories
You can use the code snip they&#8217;ve provided
&#60;li id="categories"&#62;lt;h2&#62;&#60;?php _e('Posts by Category'); ?&#62;&#60;/h2&#62;
&#60;?php wp_dropdown_categories('show_option_none=Select category'); ?&#62;
&#60;script type="text/javascript"&#62;&#60;!--
var dropdown = document.getElementById("cat");
function onCatChange() {
if [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a little WordPress tip / trick. For anyone who is trying to build their sidebar and or want to add a dropwdown list style for category listing, this is one simple method.</p>
<p>http://codex.wordpress.org/Template_Tags/wp_dropdown_categories</p>
<p>You can use the code snip they&#8217;ve provided</p>
<div><code>&lt;li id="categories"&gt;lt;h2&gt;&lt;?php _e('Posts by Category'); ?&gt;&lt;/h2&gt;<br />
&lt;?php wp_dropdown_categories<span style="color: #ff0000;">(<strong>'show_option_none=Select category'</strong>);</span> ?&gt;</code></div>
<p><code>&lt;script type="text/javascript"&gt;&lt;!--<br />
var dropdown = document.getElementById("cat");<br />
function onCatChange() {<br />
if ( dropdown.options[dropdown.selectedIndex].value &gt; 0 ) {<br />
location.href = "<!--p echo get_option('home');<br--> ?&gt;/?cat="+dropdown.options[dropdown.selectedIndex].value;<br />
}<br />
}<br />
dropdown.onchange = onCatChange;<br />
--&gt;&lt;/script&gt;<br />
&lt;/li&gt;</p>
<p></code></p>
<blockquote>
<h2><span class="mw-headline">Parameters </span></h2>
<dl>
<dt>show_option_all  </dt>
<dd>(<em>string</em>) Causes the HTML for the dropdown to allow you to select All of the categories. </dd>
<dt>show_option_none  </dt>
<dd>(<em>string</em>) Causes the HTML for the dropdown to allow you to select NONE of the categories. </dd>
<dt>orderby  </dt>
<dd>(<em>string</em>) Key to sort options by. Valid values:</p>
<ul>
<li><tt>'ID'</tt> (Default)</li>
<li><tt>'name'</tt></li>
</ul>
</dd>
</dl>
<dl>
<dt>order  </dt>
<dd>(<em>string</em>) Sort order for options. Valid values:</p>
<ul>
<li><tt>'ASC'</tt> (Default)</li>
<li><tt>'DESC'</tt></li>
</ul>
</dd>
</dl>
<dl>
<dt>show_last_update  </dt>
<dd>(<em>boolean</em>) Sets whether to display the date of the last post in each category. Valid values:</p>
<ul>
<li><tt>1</tt> (True)</li>
<li><tt>0 </tt>(False &#8211; Default)</li>
</ul>
</dd>
</dl>
<dl>
<dt>show_count  </dt>
<dd>(<em>boolean</em>) Sets whether to display a count of posts in each category. Valid values:</p>
<ul>
<li><tt>1</tt> (True)</li>
<li><tt>0</tt> (False &#8211; Default)</li>
</ul>
</dd>
</dl>
<dl>
<dt>hide_empty  </dt>
<dd>(<em>boolean</em>) Sets whether to hide (not display) categories with no posts. Valid values:</p>
<ul>
<li><tt>1</tt> (True &#8211; Default)</li>
<li><tt>0</tt> (False)</li>
</ul>
</dd>
</dl>
<dl>
<dt>child_of  </dt>
<dd>(<em>integer</em>) Only display categories that are children of the category identified by its ID. There is no default for this parameter. </dd>
<dt>exclude  </dt>
<dd>(<em>string</em>) Comma separated list of category IDs to exclude. For example, &#8216;exclude=4,12&#8242; means category IDs 4 and 12 will NOT be displayed/echoed or returned. Defaults to exclude nothing. </dd>
<dt>echo  </dt>
<dd>(<em>boolean</em>) Display bookmarks (<tt>TRUE</tt>) or return them for use by PHP (<tt>FALSE</tt>). Defaults to <tt>TRUE</tt>.</p>
<ul>
<li><tt>1</tt> (True &#8211; default)</li>
<li><tt>0</tt> (False)</li>
</ul>
</dd>
</dl>
<dl>
<dt>selected  </dt>
<dd>(<em>integer</em>) Category ID of the category to be &#8217;selected&#8217; or presented in the display box. Defaults to no category selected. </dd>
<dt>hierarchical  </dt>
<dd>(<em>boolean</em>) Display categories in hierarchical fashion (child categories show indented). Defaults to <tt>FALSE</tt>.</p>
<ul>
<li><tt>1</tt> (True)</li>
<li><tt>0</tt> (False &#8211; Default)</li>
</ul>
</dd>
</dl>
<dl>
<dt>name  </dt>
<dd>(<em>string</em>) Name assigned to the dropdown form. Defaults to &#8216;cat&#8217;. </dd>
<dt>class  </dt>
<dd>(<em>string</em>) Class assinged to the dropdown form. Defaults to &#8216;postform&#8217;. </dd>
<dt>depth  </dt>
<dd>(<em>integer</em>) This parameter controls how many levels in the hierarchy of Categories are to be included in the list of Categories. The default value is <em>0</em> (display all Categories and their children). This parameter added at <a title="Version 2.5" href="http://knguyentu.com/Version_2.5"><strong><span style="color: #2583ad;">Version 2.5</span></strong></a></p>
<ul>
<li><tt>0</tt> &#8211; All Categories and child Categories (Default).</li>
<li><tt>-1</tt> &#8211; All Categories displayed in flat (no indent) form (overrides <strong>hierarchical</strong>).</li>
<li><tt>1</tt> &#8211; Show only top level Categories</li>
</ul>
</dd>
</dl>
<li><tt>n</tt> &#8211; Value of n (some number) specifies the depth (or level) to descend in displaying Categories</li>
</blockquote>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/Sidebar-Beverage-Systems-Volt-Adapter/dp/B003TZRFKQ?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B003TZRFKQ' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21TtPEgztCL._SL75_.jpg' class='amazonfeed-product-image' alt='Sidebar Beverage Systems 110 Volt AC Adapter' title='Sidebar Beverage Systems 110 Volt AC Adapter' /><span class='amazonfeed-product-title'>Sidebar Beverage Systems 110 Volt AC Adapter</span></a>
</div><div class='product'><a href='http://www.amazon.com/Original-Verizon-Blackberry-8830-Housing/dp/B003FBI1B6?SubscriptionId=0K71XE306HCHA9WYBS02&tag=usamazonfeed-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B003FBI1B6' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51s6nC7pPiL._SL75_.jpg' class='amazonfeed-product-image' alt='Original Verizon Blackberry 8830 Full Housing' title='Original Verizon Blackberry 8830 Full Housing' /><span class='amazonfeed-product-title'>Original Verizon Blackberry 8830 Full Housing</span></a>
</div><div class='product'><a href='http://www.amazon.com/Sidebar-Beverage-Systems-Volt-Adapter/dp/B003TZOBH6?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B003TZOBH6' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21TtPEgztCL._SL75_.jpg' class='amazonfeed-product-image' alt='Sidebar Beverage Systems 110 Volt AC Adapter' title='Sidebar Beverage Systems 110 Volt AC Adapter' /><span class='amazonfeed-product-title'>Sidebar Beverage Systems 110 Volt AC Adapter</span></a>
</div><div class='product'><a href='http://www.amazon.com/Sidebar-Beverage-Systems-Volt-Adapter/dp/B003UDEB8Q?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B003UDEB8Q' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21TtPEgztCL._SL75_.jpg' class='amazonfeed-product-image' alt='Sidebar Beverage Systems 110 Volt AC Adapter' title='Sidebar Beverage Systems 110 Volt AC Adapter' /><span class='amazonfeed-product-title'>Sidebar Beverage Systems 110 Volt AC Adapter</span></a>
</div><div class='product'><a href='http://www.amazon.com/David-Buschs-Quick-Photoblogging-Wordpress/dp/B0032K6MDY?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0032K6MDY' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31IeYUY5EuL._SL75_.jpg' class='amazonfeed-product-image' alt='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' title='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' /><span class='amazonfeed-product-title'>David Busch's Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating & Promoting Your Photoblog, Softcover Book, 205 Pages</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2008/06/wp-creating-dropdown-list-of-categories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
