<?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 Hacks &#187; WordPress Categories</title>
	<atom:link href="http://wphacks.com/tag/wordpress-categories/feed/" rel="self" type="application/rss+xml" />
	<link>http://wphacks.com</link>
	<description>WordPress Themes, Plugins, Hacks, Tutorials, and more!</description>
	<lastBuildDate>Fri, 25 May 2012 20:07:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How To: Display WordPress Categories without Children</title>
		<link>http://wphacks.com/how-to-display-wordpress-categories-without-children/</link>
		<comments>http://wphacks.com/how-to-display-wordpress-categories-without-children/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 08:00:19 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[WordPress Categories]]></category>
		<category><![CDATA[WordPress Code]]></category>
		<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[WordPress How-To]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=1283</guid>
		<description><![CDATA[About a week ago I decided I was unhappy with the archives plugin I was using to display our archives, so I decided to build a custom archives page.   This archives page is fairly basic in that it displays the categories and archives side-by-side, then all the posts below it.   This way people can use [...]]]></description>
			<content:encoded><![CDATA[<p>About a week ago I decided I was unhappy with the archives plugin I was using to display our archives, so I decided to build a <a href="http://wphacks.com/archives/">custom archives page</a>.   This archives page is fairly basic in that it displays the categories and archives side-by-side, then all the posts below it.   This way people can use Ctrl+F to quickly find posts they are looking for. </p>
<p>After getting the page built, I realized all of the &#8220;child&#8221; categories I use for the <a href="http://wphacks.com/">WordPress Hacks</a> theme was causing some problems, so I decided to remove them from the display.   After all, these posts can also be found in their parent category. </p>
<p>If you are displaying your categories somewhere and would like to remove the children, here is the code you&#8217;ll need (for WordPress 2.5+):</p>
<p><code>&lt;?php wp_list_categories('title_li=&amp;depth=1&amp;show_count=1') ?&gt;</code></p>
<p>The depth=1 is the important one for the purpose of this hack as it is what tells WordPress not to display more than your parent categories.   By default, it is of course set to depth=0 (shows all categories).   If you are wondering what other options you have, here is what the <a href="http://codex.wordpress.org/">WordPress Codex</a> lists for the depth parameter:</p>
<ul>
<li><tt><strong>0</strong></tt> &#8211; All Categories and child Categories (Default).</li>
<li><tt><strong>-1</strong></tt> &#8211; All Categories displayed in flat (no indent) form (overrides <strong>hierarchical</strong>).</li>
<li><tt><strong>1</strong></tt> &#8211; Show only top level Categories.</li>
<li><tt><strong>n</strong></tt> &#8211; Value of n (some number) specifies the depth (or level) to descend in displaying Categories.</li>
</ul>
<img src="http://wphacks.com/?ak_action=api_record_view&id=1283&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-display-wordpress-categories-without-children/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To: Build a Categories and Archives Drop-down Box</title>
		<link>http://wphacks.com/how-to-build-a-categories-and-archives-drop-down-box-2/</link>
		<comments>http://wphacks.com/how-to-build-a-categories-and-archives-drop-down-box-2/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 08:00:44 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Archives]]></category>
		<category><![CDATA[WordPress Categories]]></category>
		<category><![CDATA[WordPress Code]]></category>
		<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[WordPress How-To]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=1029</guid>
		<description><![CDATA[Over the past couple years I&#8217;ve really enjoyed monitoring trends in the blogosphere and one of the trends that has come up recently is blogger&#8217;s cleaning up their sidebars by adding drop-down boxes. If you&#8217;d like to build drop-down boxes for your categories and archives on your WordPress blog, here is the code you need: [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past couple years I&#8217;ve really enjoyed monitoring trends in the blogosphere and one of the trends that has come up recently is blogger&#8217;s cleaning up their sidebars by adding drop-down boxes.</p>
<p>If you&#8217;d like to build drop-down boxes for your categories and archives on your WordPress blog, here is the code you need:</p>
<h3><strong>Archives Drop-down Code</strong></h3>
<p><code>&lt;select name=\"archive-dropdown\" onChange='document.location.href=this.options[this.selectedIndex].value;'&gt;<br />
&lt;option value=\"\"&gt;&lt;?php echo attribute_escape(__('Select Month')); ?&gt;&lt;/option&gt;<br />
&lt;?php wp_get_archives('type=monthly&amp;format=option&amp;show_post_count=1'); ?&gt; &lt;/select&gt;</code></p>
<h3><strong>Categories Drop-down Code</strong></h3>
<p><code>&lt;form action="&lt;?php bloginfo('url'); ?&gt;/" method="get"&gt;<br />
&lt;?php<br />
$select = wp_dropdown_categories('show_option_none=Select category&amp;show_count=1&amp;orderby=name&amp;echo=0');<br />
$select = preg_replace("#&lt;select([^&gt;]*)&gt;#", "&lt;select$1 onchange='return this.form.submit()'&gt;", $select); echo $select; ?&gt;<br />
&lt;noscript&gt;&lt;input type="submit" value="View" /&gt;&lt;/noscript&gt;<br />
&lt;/form&gt;</code></p>
<p>I think something like this can be a good idea if done with the right theme, but I have also seen it on a few sites where it didn&#8217;t look very good, so keep that in mind if you decide to move your categories and archives to a drop-down box!</p>
<p>To see other code snippets we&#8217;ve featured here over the past year, check out our <a href="http://wphacks.com/huge-compilation-of-wordpress-code/">WordPress Code</a> page!</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=832&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-build-a-categories-and-archives-drop-down-box-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reader Poll: Do You Use Categories or Tags?</title>
		<link>http://wphacks.com/reader-poll-do-you-use-categories-or-tags/</link>
		<comments>http://wphacks.com/reader-poll-do-you-use-categories-or-tags/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 08:00:15 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[Poll]]></category>
		<category><![CDATA[WordPress Categories]]></category>
		<category><![CDATA[WordPress Poll]]></category>
		<category><![CDATA[WordPress Tags]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=694</guid>
		<description><![CDATA[Today while browsing through my daily feeds, I noticed a great post over at Performancing about getting your blog organized with categories and tags.  This post got the creative juices flowing a bit and got me thinking about both categories and tags. I make it a point to engage in discussions regularly with my fellow [...]]]></description>
			<content:encoded><![CDATA[<p>Today while browsing through my daily feeds, I noticed a great post over at Performancing about <a href="http://performancing.com/content/getting-organized-categories-vs-tags-and-how-properly-utilize-them">getting your blog organized with categories and tags</a>.  This post got the creative juices flowing a bit and got me thinking about both categories and tags.</p>
<p>I make it a point to engage in discussions regularly with my fellow bloggers about a variety of topics I have an interest in, including blogging, affiliate marketing, internet real estate, etc.   One thing I always like to find out from fellow WordPress users is whether or not they&#8217;re using the tag system that was introduced in WordPress 2.3.   What I&#8217;ve found are some very diverse responses, ranging from them not understanding how tags work, to some people that actually prefer to just use tags instead of categories.  Of course in the middle are the people that are attempting to use both.</p>
<p>I personally use categories on all of my sites, but only choose to use tags on a few of them.   For the ones that I do use tags on, I make sure to use the <a href="http://wphacks.com/recommended-tags-wordpress-plugin/">Recommended Tags WordPress plugin</a> so I don&#8217;t go overboard with the tags I use.</p>
<p>I&#8217;d love to get your take on this.  Do you use categories and/or tags on your blog?</p>
<p><script src="http://s3.polldaddy.com/p/794557.js" type="text/javascript"></script><noscript> &amp;amp;lt;a href =&#8221;http://answers.polldaddy.com/poll/794557/&#8221; &amp;amp;gt;Do you use Categories or Tags?&amp;amp;lt;/a&amp;amp;gt;  &amp;amp;lt;br/&amp;amp;gt; &amp;amp;lt;span style=&#8221;font-size:9px;&#8221; mce_style=&#8221;font-size:9px;&#8221;&amp;amp;gt; (&amp;amp;lt;a href =&#8221;http://www.polldaddy.com&#8221;&amp;amp;gt;  surveys&amp;amp;lt;/a&amp;amp;gt;)&amp;amp;lt;/span&amp;amp;gt;</noscript></p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=373&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/reader-poll-do-you-use-categories-or-tags/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How To: Finding Category Numbers in WordPress 2.5</title>
		<link>http://wphacks.com/how-to-finding-category-numbers-in-wordpress-25/</link>
		<comments>http://wphacks.com/how-to-finding-category-numbers-in-wordpress-25/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 08:00:06 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[WordPress 2.5]]></category>
		<category><![CDATA[WordPress Categories]]></category>
		<category><![CDATA[WordPress How-To]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=636</guid>
		<description><![CDATA[One of the disappointing changes in WordPress 2.5 was the removal of category ID numbers.   I thought this was just a minor oversight, but since the 2.5.1 upgrade this problem still was not addressed. If you are looking for a category number (this is most often needed for setting up the homepage of Magazine WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>One of the disappointing changes in WordPress 2.5 was the removal of category ID numbers.   I thought this was just a minor oversight, but since the 2.5.1 upgrade this problem still was not addressed.</p>
<p>If you are looking for a category number (this is most often needed for setting up the homepage of Magazine WordPress themes), here is a really easy way you can locate it until the WordPress team adds the category number display we all took for granted before:</p>
<p>1) Go to <strong>Manage &gt; Categories</strong>.</p>
<p>2) Hover your mouse over the category that you need the ID of.</p>
<p>3) Look in the lower left corner of your web browser for the ID of that category.</p>
<p>Here is a screenshot example:</p>
<p><a href="http://wphacks.com/wp-content/uploads/2008/06/category-id.png"><img class="alignnone size-full wp-image-637" title="category-id" src="http://wphacks.com/wp-content/uploads/2008/06/category-id.png" alt="" width="500" height="60" /></a></p>
<p>Hopefully WordPress will again display the category ID in one of the future updates, but thankfully this workaround is really easy.</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=321&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-finding-category-numbers-in-wordpress-25/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress Talk &#8211; June 15, 2008</title>
		<link>http://wphacks.com/wordpress-talk-june-15-2008/</link>
		<comments>http://wphacks.com/wordpress-talk-june-15-2008/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 08:00:27 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[News & Notes]]></category>
		<category><![CDATA[WordPress 2.6]]></category>
		<category><![CDATA[WordPress Authors]]></category>
		<category><![CDATA[WordPress Categories]]></category>
		<category><![CDATA[WordPress Code]]></category>
		<category><![CDATA[WordPress Content]]></category>
		<category><![CDATA[WordPress Functions]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=596</guid>
		<description><![CDATA[Here are some great WordPress-related posts I&#8217;ve enjoyed over the past week: Track WordPress 2.6 Progress &#8211; Quick Online Tips gives some suggestions on how to keep up with the progress of WordPress 2.6. How to Create a Dynamic Sidebar &#8211; This is something we&#8217;ve covered on a couple different occasions here on this site, [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some great WordPress-related posts I&#8217;ve enjoyed over the past week:</p>
<ul>
<li><a href="http://www.quickonlinetips.com/archives/2008/05/track-wordpress-26/">Track WordPress 2.6 Progress</a> &#8211; Quick Online Tips gives some suggestions on how to keep up with the progress of WordPress 2.6.</li>
<li><a href="http://www.wpproject.com/creating-a-dynamic-sidebar/">How to Create a Dynamic Sidebar</a> &#8211; This is something we&#8217;ve covered on a couple different occasions here on this site, but I wanted to point out this post because I think Richard does a great job of explaining how to tell WordPress what to display on each page.</li>
<li><a href="http://justintadlock.com/archives/2008/05/31/project-m">Project M Finally Announced</a> &#8211; Justin Tadlock finally announced the details of his Project M.  It appears it is a theme club of sorts, but with a twist.  Click over to get the details.</li>
<li><a href="http://xnme.exofire.net/2008/06/07/do-it-yourself-wordpress-theme/">Do It Yourself WordPress Theme</a> &#8211; Hayes Potter has come up with an interesting idea by releasing a WordPress theme. Simply build your stylesheet and you are done.</li>
<li><a href="http://stylizedweb.com/2008/06/13/useful-wordpress-tricks/">WordPress Tricks</a> &#8211; Stylized Web offers some useful PHP code snippets for WordPress.</li>
<li><a href="http://justintadlock.com/archives/2008/06/09/doing-more-with-gravatars-authors-template-page">Making Authors Template Page</a> &#8211; Also from Justin Tadlock, this post does a great job detailing how to make a WordPress authors template page.</li>
<li><a href="http://www.darrenhoyt.com/2008/06/11/displaying-related-category-and-author-content-in-wordpress/">Displaying Related Categories and Content in WordPress</a> &#8211; Darren Hoyt shares the code he used to make this feature in his popular Mimbo Pro theme.</li>
</ul>
<img src="http://wphacks.com/?ak_action=api_record_view&id=311&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/wordpress-talk-june-15-2008/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress Talk &#8211; April 15, 2008</title>
		<link>http://wphacks.com/wordpress-talk-april-15-2008/</link>
		<comments>http://wphacks.com/wordpress-talk-april-15-2008/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 12:00:45 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[News & Notes]]></category>
		<category><![CDATA[RSS Icons]]></category>
		<category><![CDATA[WordCamp Dallas]]></category>
		<category><![CDATA[WordPress Categories]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=473</guid>
		<description><![CDATA[It has been awhile since I&#8217;ve done one of these, so here is a quick post highlighting some interesting posts from around the blogosphere that are related to WordPress. CagIntranet explains how to create a category loop to display those posts in your sidebar. Chris Pearson has also written a great post about the ideal [...]]]></description>
			<content:encoded><![CDATA[<p>It has been awhile since I&#8217;ve done one of these, so here is a quick post highlighting some interesting posts from around the blogosphere that are related to WordPress.</p>
<ul>
<li>CagIntranet explains <a href="http://www.cagintranet.com/archive/wordpress-tip-the-easy-way-to-show-a-popular-post-list/">how to create a category loop</a> to display those posts in your sidebar.  Chris Pearson has also written a great post about the <a href="http://www.pearsonified.com/2008/02/what_every_blogger_needs_to_know_about_categories.php">ideal way to use your blogs categories</a>.</li>
<li>Weblog Tools Collection has done a <a href="http://weblogtoolscollection.com/archives/2008/04/07/in-case-you-missed-it/">final WordCamp Dallas 2008 wrap up</a>.  The post includes notes and pictures from the event (including pictures of the WTC authors!)</li>
<li>ProBlogDesign has posted <a href="http://www.problogdesign.com/resources/60-great-rss-icons-for-your-blog/">60 RSS icons that you can use for your blog</a>.   This post includes some incredible RSS icons that anyone can use.</li>
<li>Noupe has posted a <a href="http://www.noupe.com/wordpress/powerfull-list-of-wordpress-lifesavers-plugin.html">powerful list of WordPress plugins</a>.  This is a large collection of WordPress plugins anyone can use and should help you find just about anything you need.</li>
<li>Theme Lab provides a great tutorial guiding you on <a href="http://www.themelab.com/2008/03/26/put-your-dormant-domains-to-use-with-wordpress/">how to put your available domains to good use</a>.  I have about 200 domains I&#8217;m not currently using and I&#8217;ve been trying to figure out if I should sell them or start using them.   If done tastefully and legally, this could be a great use for these domains.</li>
<li>WordPress Max has written a post explaining how to <a href="http://www.wordpressmax.com/wordpress-guide/wordpress-blogroll-for-site-navigation">use your WordPress blogroll feature for site navigation</a> in your sidebar.  This is a creative and interesting idea allowing you to create links from your dashboard to feature content.</li>
<li>Performancing explains how to use WordPress custom fields to <a href="http://performancing.com/wordpress-tips/wordpress-hacks-using-custom-fields-auto-embed-youtube-videos">auto-embed YouTube videos</a>.</li>
</ul>
<img src="http://wphacks.com/?ak_action=api_record_view&id=236&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/wordpress-talk-april-15-2008/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How To: Converting Your Category Pages to Display Post Titles</title>
		<link>http://wphacks.com/how-to-converting-your-category-pages-to-display-post-titles/</link>
		<comments>http://wphacks.com/how-to-converting-your-category-pages-to-display-post-titles/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 11:00:11 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[WordPress Categories]]></category>
		<category><![CDATA[WordPress Code]]></category>
		<category><![CDATA[WordPress Post Loop]]></category>
		<category><![CDATA[Wordpress Post Titles]]></category>

		<guid isPermaLink="false">http://wphacks.com/how-to-converting-your-category-pages-to-display-post-titles/</guid>
		<description><![CDATA[Many WordPress themes are setup to display their category pages in the same format as your blog&#8217;s homepage, making your categories useless to some. This can cause duplicate content problems, as well as making your categories difficult to avoid. If this isn&#8217;t the case for you, then your theme is probably instead setup to just [...]]]></description>
			<content:encoded><![CDATA[<p>Many <a href="http://wphacks.com/wordpress-themes/">WordPress themes</a> are setup to display their category pages in the same format as your blog&#8217;s homepage, making your categories useless to some.   This can cause duplicate content problems, as well as making your categories difficult to avoid.   If this isn&#8217;t the case for you, then your theme is probably instead setup to just display a post excerpt for each post on your category page.  I&#8217;ve never been a fan of this either, as this format strips your post of links/styles and doesn&#8217;t give you control over how much of the post to display.</p>
<p>Instead, I&#8217;ve always liked the idea of showing only the post titles on your category pages.  If you are good at making post titles, this should help someone navigating your categories to find what they are looking for.</p>
<p>First, you&#8217;ll want to open your archive.php file and find the post loop.  It usually starts with this code (or something similar):<br />
<code><br />
&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;</code></p>
<p>You&#8217;ll want to delete everything from that code down to the end of the loop, which usually ends with this:<br />
<code><br />
&lt;?php endif; ?&gt;</code></p>
<p>Now, you&#8217;ll want to replace the post loop code with the following slightly different code loop:</p>
<p><code>&lt;?php $temp_category = single_cat_title('',false); if (!empty($temp_category)){ // give index ?&gt;<br />
&lt;h1&gt;&lt;?php single_cat_title(); ?&gt;&lt;/h1&gt;<br />
&lt;p&gt;&lt;?php echo(category_description(the_category_ID(false))); ?&gt;&lt;/p&gt;<br />
&lt;?php if ($posts) : foreach ($posts as $post) : start_wp(); ?&gt;<br />
&lt;li&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;br&gt;<br />
&lt;?php endforeach; else: ?&gt;<br />
&lt;p&gt;&lt;?php _e('Sorry, no posts matched your criteria.'); ?&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;?php }else{ // give details or single post ?&gt;<br />
...... code for normal post overview<br />
&lt;?php } ?&gt;</code></p>
<p>And you&#8217;re done!  You can add&lt;li&gt;, &lt;ol&gt;, and whatever else as needed, and then style your archives page in your stylesheet to get the look you&#8217;re trying to achieve.</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=199&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-converting-your-category-pages-to-display-post-titles/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How To: Display WordPress Categories in a Horizontal Drop-Down Menu</title>
		<link>http://wphacks.com/how-to-display-wordpress-categories-in-a-horizontal-drop-down-menu/</link>
		<comments>http://wphacks.com/how-to-display-wordpress-categories-in-a-horizontal-drop-down-menu/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 11:00:08 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Categories]]></category>

		<guid isPermaLink="false">http://wphacks.com/how-to-display-wordpress-categories-in-a-horizontal-drop-down-menu/</guid>
		<description><![CDATA[One thing more WordPress bloggers have been doing lately is moving their categories over to a horizontal menu, rather than displaying them in the sidebar.   Depending on the type of blog you run and how well you keep your categories organized, I think this can be a great idea to help manage the website and [...]]]></description>
			<content:encoded><![CDATA[<p>One thing more WordPress bloggers have been doing lately is moving their categories over to a horizontal menu, rather than displaying them in the sidebar.   Depending on the type of blog you run and how well you keep your categories organized, I think this can be a great idea to help manage the website and improve overall navigation.  Doing something like this allows for a much better use of sub-categories, and gives you the option of displaying them in a drop-down to give your blog a much more professional feeling.</p>
<p>If you are interested in moving your WordPress categories into a menu and then displaying sub-categories in a drop-down menu, Anthology of Ideas has taken the time to write a detailed post explaining <a href="http://anthologyoi.com/wordpress/displaying-wordpress-categories-in-a-horizontal-dropdown-menu.html">how to display WordPress categories in a horizontal drop-down menu</a>.   You can also view their menu to see if you like it.  I recommend you check it out before attempting this on your own.</p>
<p>Of course doing this will require the use of Javascript, but the author does a great job of detailing the process and provides the CSS required to style it properly.  Once you have everything up and running correctly, you can then adjust the colors and margins to give your new menu the look and feel you want it to have, as well as fully integrate it into your WordPress theme.</p>
<p>I like the idea of having the sub-categories be drop-down menus, but one downside I see is that displaying categories in a menu sort of eliminates using a traditional menu for your pages.  It would be hard, in my opinion, to achieve a good look with more than one menu, so you then have to find a different way to display your blog pages.   I think you are probably best off using this method mostly if you are trying to achieve a magazine-style look or some sort of a content management system (CMS).</p>
<p>What do you think of moving your categories to a menu and displaying your sub-categories in drop-down boxes?</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=143&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-display-wordpress-categories-in-a-horizontal-drop-down-menu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How To: Blocking Your WordPress Categories and Archives From Google</title>
		<link>http://wphacks.com/how-to-blocking-your-wordpress-categories-and-archives-from-google/</link>
		<comments>http://wphacks.com/how-to-blocking-your-wordpress-categories-and-archives-from-google/#comments</comments>
		<pubDate>Wed, 09 Jan 2008 11:00:25 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[WordPress Archives]]></category>
		<category><![CDATA[WordPress Categories]]></category>
		<category><![CDATA[WordPress Code]]></category>
		<category><![CDATA[WordPress How-To]]></category>

		<guid isPermaLink="false">http://wphacks.com/how-to-blocking-your-wordpress-categories-and-archives-from-google/</guid>
		<description><![CDATA[We all know that duplicate content can be a problem. People copy your work, re-post it on their website, then you both are penalized for duplicate content! Unfortunately, there isn&#8217;t much that can be done about that, but did you know that often blogs have duplicate content within their own blog? The biggest culprit for [...]]]></description>
			<content:encoded><![CDATA[<p>We all know that duplicate content can be a problem. People copy your work, re-post it on their website, then you both are penalized for duplicate content! Unfortunately, there isn&#8217;t much that can be done about that, but did you know that often blogs have duplicate content within their own blog? The biggest culprit for duplicate internal content is your archives page, which is usually used for categories and monthly archives. Unless you only display partial posts in your archives, you&#8217;ll want to make sure Google doesn&#8217;t index it. If you aren&#8217;t handy with Robots.txt, you can instead use this code to easily tell Google not to index your archive.php page.</p>
<p><code>&lt;?php if(is_archive()){ ?&gt;&lt;meta name="robots" content="noindex"&gt;&lt;?php } ?&gt;</code></p>
<p>You&#8217;ll want to grab that code and paste it anywhere in the header of your theme above the closing of the head tag. That way, Google will not index these, and search engines won&#8217;t refer traffic to your archive pages instead of your single post pages.</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=122&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-blocking-your-wordpress-categories-and-archives-from-google/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress Blogroll Code: Separating Your Categories</title>
		<link>http://wphacks.com/wordpress-blogroll-code-separating-your-categories/</link>
		<comments>http://wphacks.com/wordpress-blogroll-code-separating-your-categories/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 11:00:42 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[WordPress Blogroll]]></category>
		<category><![CDATA[WordPress Categories]]></category>
		<category><![CDATA[WordPress Code]]></category>
		<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[WordPress How-To]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://wphacks.com/wordpress-blogroll-code-separating-your-categories/</guid>
		<description><![CDATA[I had a reader request for some help with their blogroll recently. The WordPress blogroll has gone through many changes over the past year, and a lot of the WordPress themes authors out there didn&#8217;t update their themes with the new code used to call the blogroll. The old code still works, but it doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I had a reader request for some help with their blogroll recently. The WordPress blogroll has gone through many changes over the past year, and a lot of the WordPress themes authors out there didn&#8217;t update their themes with the new code used to call the blogroll.</p>
<p>The old code still works, but it doesn&#8217;t let you take advantage of the new blogroll capabilities.  If you have set up your blogroll with different categories, but noticed that all of them display under a single category, it is probably because your blog&#8217;s theme is still using the original code that didn&#8217;t allow for much configuration. You&#8217;ll probably find something like this:</p>
<p><code>&lt;?php get_links()' ?&gt;</code></p>
<p>or</p>
<p><code>&lt;?php get_links_list()' ?&gt;</code></p>
<p>If you want a more configurable code, you will want to use something like the following:</p>
<p><code>&lt;?php wp_list_bookmarks('categorize=1&amp;before=&lt;li&gt;&amp;title_before=&lt;h2&gt;&amp;title_after=&lt;/h2&gt;&amp;category_before=&lt;/n&gt;&amp;category_before=&lt;/n&gt;&amp;after=&lt;/li&gt;&amp;orderby=url'); ?&gt;</code></p>
<p>This code will display your blogroll, but will let you have separate lists for your different blogroll categories. I&#8217;ve customized it to display the category title as a Header 2 and use bullet points to display the content, but you can do a variety of things. For more customization options, you&#8217;ll want to check out the <a href="http://codex.wordpress.org/Template_Tags/wp_list_bookmarks">WordPress List Bookmarks page</a> and adjust the code as needed.</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=108&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/wordpress-blogroll-code-separating-your-categories/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

