<?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>dyadica.net &#187; custom query&#8217;s</title>
	<atom:link href="http://blog.dyadica.net/archives/tags/custom-querys/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.dyadica.net</link>
	<description>Fun and Games in the Dyadic Sea</description>
	<lastBuildDate>Wed, 21 Jul 2010 14:04:27 +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>wordpress tag calls after a custom query</title>
		<link>http://blog.dyadica.net/archives/wordpress-tag-calls-after-a-custom-query</link>
		<comments>http://blog.dyadica.net/archives/wordpress-tag-calls-after-a-custom-query#comments</comments>
		<pubDate>Fri, 30 Jan 2009 20:58:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[custom query's]]></category>
		<category><![CDATA[site development]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://blog.dyadica.net/?p=1576</guid>
		<description><![CDATA[Having an issue with wordpress tag calls not working after a custom query, then try the following:
&#60;?php
$tags = get_the_term_list( $post-&#62;ID, 'post_tag', '', ', ', '' ) ;
if($tags){ echo "Tags: " . $tags;
}else{ echo "Cats: "; ...]]></description>
			<content:encoded><![CDATA[<p>Having an issue with wordpress tag calls not working after a custom query, then try the following:</p>
<blockquote><p><code>&lt;?php<br />
$tags = get_the_term_list( $post-&gt;ID, 'post_tag', '', ', ', '' ) ;<br />
if($tags){ echo "Tags: " . $tags;<br />
}else{ echo "Cats: "; the_category(','); }<br />
?&gt;</code></p></blockquote>
<p>I have also included a category call: <code>the_category(',')</code> to cater for instances where no tags are available, due to no tags having been set or the call being made from a page.</p>
<p>The call breaks down as follows:</p>
<blockquote><p><code>get_the_term_list( $id = 0, $taxonomy, $before = '', $sep = '', $after = '' )<br />
Retrieve terms as a list with specified format.<br />
param: int $id Term ID.<br />
param: string $taxonomy Taxonomy name.<br />
param: string $before Optional. Before list.<br />
param: string $sep Optional. Separate items using this.<br />
param: string $after Optional. After list.<br />
return: string</code></p></blockquote>
<p>I find this usefull as I have alot of unorthadox (grr the loop) query&#8217;s, hope it may help you. Please be aware unless you have a pugin to fix the issue, pages will always be appear as uncategorized.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dyadica.net/archives/wordpress-tag-calls-after-a-custom-query/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
