<?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>WAHMs, SAHMS, DIY &#124; Small Business Design Services &#124; Web Design, Print Design, Illustration &#124; 21 Ruby Lane Design Studio &#187; Wordpress</title>
	<atom:link href="http://21rubylane.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://21rubylane.com</link>
	<description>We focus on helping small creative businesses find clever solutions for their graphic and web design needs.</description>
	<lastBuildDate>Mon, 28 Mar 2011 01:33:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>WordPress How-To: Display Category Name Based on Slug</title>
		<link>http://21rubylane.com/2009/04/29/wordpress-how-to-display-category-name-based-on-slug/</link>
		<comments>http://21rubylane.com/2009/04/29/wordpress-how-to-display-category-name-based-on-slug/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 20:49:58 +0000</pubDate>
		<dc:creator>Valerie</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.21rubylane.com/?p=219</guid>
		<description><![CDATA[I&#8217;ve been developing sites on WordPress for awhile now, and I love it for a number of reasons. It&#8217;s fully customizable, has an incredibly intuitive and easy-to-use interface, and the thousands of plugins available pretty much cover all the bases for any functionality you could possibly need. I&#8217;ve also been learning lots of nice little [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been developing sites on <strong>WordPress </strong>for awhile now, and I love it for a number of reasons.  It&#8217;s fully customizable, has an incredibly intuitive and easy-to-use interface, and the thousands of plugins available pretty much cover all the bases for any functionality you could possibly need.</p>
<p>I&#8217;ve also been learning lots of nice little tricks for customizing themes.  I plan to occasionally post little tutorials describing some of these tricks.  Hopefully, someone will find some use for them, and save themselves a little time!</p>
<p>One trick that I just used and that took forever to find is the ability to <strong>display the current category name</strong> somewhere on the page.  Specifically, I wanted to be able to output this in an &lt;h1&gt; tag on my category.php page.  I tried a plugin that was supposed to provide additional template tags that aren&#8217;t included in a native WordPress installation.  That didn&#8217;t work; it kept outputting the default category.  I tried lots of thing, and finally found the solution I was after.</p>
<p><code>&lt;?php single_cat_title(''); ?&gt;</code></p>
<p>Pretty simple, right?  This will simply <strong>display the category name on the page based on the category slug on the current page</strong>.  If you want to add some text to display before the category name, you would use:</p>
<p><code>&lt;?php single_cat_title('You are reading about '); ?&gt;</code></p>
<p>Which, if the current category was WordPress, would look like this:</p>
<p><em><strong>You are reading about WordPress</strong></em></p>
<p>Alternately, you can <strong>assign the category name to a variable</strong> for use in your code.  That would look something like this:</p>
<p><code>$current_category = single_cat_title("", false);</code></p>
<p>Pretty cool, huh?</p>
]]></content:encoded>
			<wfw:commentRss>http://21rubylane.com/2009/04/29/wordpress-how-to-display-category-name-based-on-slug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

