<?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>Apartment One Six &#187; Uncategorized</title>
	<atom:link href="http://apartmentonesix.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://apartmentonesix.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 Dec 2009 22:59:47 +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>Get Post Tags in Wordpress</title>
		<link>http://apartmentonesix.com/2009/12/get-post-tags-in-wordpress/</link>
		<comments>http://apartmentonesix.com/2009/12/get-post-tags-in-wordpress/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 22:59:47 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://apartmentonesix.com/?p=205</guid>
		<description><![CDATA[Here&#8217;s a little tidbit I can NEVER find when I need it:  If you need to get all the tags  that belong to a current post, here&#8217;s the function:
$tags = get_the_tags($post_id);
This will return an associative array of tags, with all their relevant info.
BONUS
If you need the same thing with categories, here&#8217;s your function:

 [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little tidbit I can NEVER find when I need it:  If you need to get all the tags  that belong to a current post, here&#8217;s the function:</p>
<p>$tags = get_the_tags($post_id);</p>
<p>This will return an associative array of tags, with all their relevant info.</p>
<p><strong>BONUS</strong><br />
If you need the same thing with categories, here&#8217;s your function:</p>
<pre class="brush: php">
    $args[&#039;fields&#039;] = &#039;all&#039;;
    $categories = wp_get_post_categories($post_id, $args);
</pre>
<p>Including the args bit allows you to retrieve all the category info.  If you leave that out (and use only the $post_id argument), you&#8217;ll get an array of relevant category ids, but no other info.</p>
<p>Big thanks to Clay Lua at <a href="http://hugred.com">hungred.com</a> and his post <a href="http://hungred.com/how-to/tag-post-id-wordpress/">Get Tag with Post ID in Wordpress</a> for pointing me in the right direction.</p>
]]></content:encoded>
			<wfw:commentRss>http://apartmentonesix.com/2009/12/get-post-tags-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
