<?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>ērmuārs™ &#187; get_tag_feed_link</title>
	<atom:link href="http://eb.lv/tag/get_tag_feed_link/feed/" rel="self" type="application/rss+xml" />
	<link>http://eb.lv</link>
	<description>[kaut kas @ eb.lv]</description>
	<lastBuildDate>Wed, 16 May 2012 19:06:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WordPress category feed plugin</title>
		<link>http://eb.lv/2008/11/08/catfeed/</link>
		<comments>http://eb.lv/2008/11/08/catfeed/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 13:30:36 +0000</pubDate>
		<dc:creator>eb</dc:creator>
				<category><![CDATA[Tehnoloģijas]]></category>
		<category><![CDATA[Atom]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Category]]></category>
		<category><![CDATA[CatFeed]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Feed]]></category>
		<category><![CDATA[get_category_feed_link]]></category>
		<category><![CDATA[get_post_comments_feed_link]]></category>
		<category><![CDATA[get_tag_feed_link]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Template]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://eb.lv/?p=275</guid>
		<description><![CDATA[CatFeed I wanted to add WordPress category feed auto-discovery links to category views. So I came up with the code for template. Little bit later I thought of making it a plugin and here it is: Download: CatFeed @ WordPress.org; In the process of making it I added tag feeds for tag views and comment [...]]]></description>
			<content:encoded><![CDATA[<h3>CatFeed</h3>
<p>I wanted to add WordPress category feed auto-discovery links to category views. So I came up with the code for template. Little bit later I thought of making it a plugin and here it is:</p>
<p><strong>Download:</strong> <a href="http://wordpress.org/extend/plugins/catfeed/">CatFeed @ WordPress.org</a>;</p>
<p>In the process of making it I added tag feeds for tag views and comment feeds for single post views. It turned out to be very useful for me so here is the attempt to make it public.</p>
<p>I am not a php programmer but if you know c++ then it&#8217;s not hard to do some coding in php- I&#8217;m not sure of the style though  <img src='http://eb.lv/wp-includes/images/smilies/blink.gif' alt=';)' class='wp-smiley' /><br />
<span id="more-275"></span></p>
<h3>Description</h3>
<p>Adds category, tag and comment feed auto-discovery links. Category feed links are added only to category views, tag feed links to tag views and comment feed links to single post views.</p>
<h3>Alternative: code for templates</h3>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span> <span class="kw1">if</span> <span class="br0">&#40;</span>is_category<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw2">?&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>link rel<span class="sy0">=</span><span class="st0">&quot;alternate&quot;</span> type<span class="sy0">=</span><span class="st0">&quot;application/atom+xml&quot;</span> title<span class="sy0">=</span><span class="st0">&quot;&lt;?php bloginfo(&#39;name&#39;); ?&gt; &amp;raquo; &lt;?php single_cat_title(&#39;&#39;); ?&gt;&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;&lt;?php echo get_category_feed_link(get_query_var(&#39;cat&#39;), &#39;atom&#39;); ?&gt;&quot;</span> <span class="sy0">/&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span> <span class="br0">&#125;</span> <span class="kw2">?&gt;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span> <span class="kw1">if</span> <span class="br0">&#40;</span>is_tag<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw2">?&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>link rel<span class="sy0">=</span><span class="st0">&quot;alternate&quot;</span> type<span class="sy0">=</span><span class="st0">&quot;application/atom+xml&quot;</span> title<span class="sy0">=</span><span class="st0">&quot;&lt;?php bloginfo(&#39;name&#39;); ?&gt; &amp;raquo; &lt;?php single_tag_title(&#39;&#39;); ?&gt;&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;&lt;?php echo get_tag_feed_link(get_query_var(&#39;tag_id&#39;), &#39;atom&#39;); ?&gt;&quot;</span> <span class="sy0">/&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span> <span class="br0">&#125;</span> <span class="kw2">?&gt;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span> <span class="kw1">if</span> <span class="br0">&#40;</span>is_single<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">||</span> is_page<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw2">?&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>link rel<span class="sy0">=</span><span class="st0">&quot;alternate&quot;</span> type<span class="sy0">=</span><span class="st0">&quot;application/atom+xml&quot;</span> title<span class="sy0">=</span><span class="st0">&quot;&lt;?php bloginfo(&#39;name&#39;); ?&gt; &amp;raquo; &lt;?php single_post_title(&#39;&#39;); ?&gt;&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;&lt;?php echo get_post_comments_feed_link(&#39;&#39;, &#39;atom&#39;); ?&gt;&quot;</span> <span class="sy0">/&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span> <span class="br0">&#125;</span> <span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
<p>Just change this code to meet your preferences and add it to header.php somewhere between &lt;head&gt; and &lt;/head&gt;. Usually header.php by default will contain similar tag for site wide post feeds. You may want to add this code right after that. If you prefer rss feeds over atom you need to change &#8220;application/atom+xml&#8221; to &#8220;application/rss+xml&#8221; and &#8216;atom&#8217; to &#8216;rss2&#8242; (v2.0) or &#8216;rss&#8217; (v0.92).</p>
<p><strong>Note: This is obsolete <img src='http://eb.lv/wp-includes/images/smilies/blink.gif' alt=';)' class='wp-smiley' /> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://eb.lv/2008/11/08/catfeed/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

