<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" 	>
<channel>
	<title>Comments on: WordPress 2.3 &#8211; Tagging Posts and Pages</title>
	<atom:link href="http://www.neotrinity.at/2007/10/06/wordpress-23-tagging-posts-and-pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neotrinity.at/2007/10/06/wordpress-23-tagging-posts-and-pages/</link>
	<description>my adventures and everyday&#039;s life</description>
	<lastBuildDate>Sun, 05 Sep 2010 03:47:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<image><url>http://www.neotrinity.at/feeds/favicon.jpg</url><title>travellin' meets real life</title><width>40</width><height>40</height><link>http://www.neotrinity.at/</link></image>
		<item>
		<title>By: Berny</title>
		<link>http://www.neotrinity.at/2007/10/06/wordpress-23-tagging-posts-and-pages/#comment-5729</link>
		<dc:creator>Berny</dc:creator>
		<pubDate>Sun, 01 Aug 2010 02:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.neotrinity.at/2007/10/06/wordpress-23-tagging-posts-and-pages/#comment-5729</guid>
		<description>The follow-up of this post for WordPress 3.0 can be found &lt;a href=&quot;/2010/08/01/tagpages-tags-functionality-for-pages-in-wordpress-30/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>The follow-up of this post for WordPress 3.0 can be found <a href="/2010/08/01/tagpages-tags-functionality-for-pages-in-wordpress-30/" rel="nofollow">here</a>.</p>
]]></content:encoded>
<geo:lat>15</geo:lat><geo:long>100</geo:long>	</item>
	<item>
		<title>By: Berny</title>
		<link>http://www.neotrinity.at/2007/10/06/wordpress-23-tagging-posts-and-pages/#comment-5598</link>
		<dc:creator>Berny</dc:creator>
		<pubDate>Fri, 14 Aug 2009 08:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.neotrinity.at/2007/10/06/wordpress-23-tagging-posts-and-pages/#comment-5598</guid>
		<description>hi leoniedu,

you&#039;re right. - i assume that your code derives from the 2.8 branch? - the statements which one needs to modify changed during the last years...

basically on new wordpress versions i always look for all occurrences of &lt;code&gt;post_type = &#039;post&#039;&lt;/code&gt; in taxonomy.php and change them to &lt;code&gt;post_type IN (&#039;post&#039;, &#039;page&#039;)&lt;/code&gt;.

that&#039;s still a hassle, but it looks like there is no other easy way, as the wp guys still refuse to use tags for pages.

greetz,
berny</description>
		<content:encoded><![CDATA[<p>hi leoniedu,</p>
<p>you&#8217;re right. &#8211; i assume that your code derives from the 2.8 branch? &#8211; the statements which one needs to modify changed during the last years&#8230;</p>
<p>basically on new wordpress versions i always look for all occurrences of <code>post_type = 'post'</code> in taxonomy.php and change them to <code>post_type IN ('post', 'page')</code>.</p>
<p>that&#8217;s still a hassle, but it looks like there is no other easy way, as the wp guys still refuse to use tags for pages.</p>
<p>greetz,<br />
berny</p>
]]></content:encoded>
<geo:lat>47.2</geo:lat><geo:long>13.2</geo:long>	</item>
	<item>
		<title>By: leoniedu</title>
		<link>http://www.neotrinity.at/2007/10/06/wordpress-23-tagging-posts-and-pages/#comment-5581</link>
		<dc:creator>leoniedu</dc:creator>
		<pubDate>Tue, 11 Aug 2009 23:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.neotrinity.at/2007/10/06/wordpress-23-tagging-posts-and-pages/#comment-5581</guid>
		<description>
I had to modify the following lines as well. Did you have the same problem?

unction _update_post_term_count( $terms ) {
        global $wpdb;

        foreach ( (array) $terms as $term ) {
                $count = $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT COUNT(*) FROM $wpdb-&gt;term_relationships, $wpdb-&gt;posts WHERE $wpdb-&gt;posts.ID = $wpdb-&gt;term_relationships.object_id AND post_status = &#039;publish&#039; AND post_type in (&#039;post&#039;,&#039;page&#039;) AND term_taxonomy_id = %d&quot;, $term ) );
                $wpdb-&gt;update( $wpdb-&gt;term_taxonomy, compact( &#039;count&#039; ), array( &#039;term_taxonomy_id&#039; =&gt; $term ) );
        }
}
</description>
		<content:encoded><![CDATA[<p>I had to modify the following lines as well. Did you have the same problem?</p>
<p>unction _update_post_term_count( $terms ) {<br />
        global $wpdb;</p>
<p>        foreach ( (array) $terms as $term ) {<br />
                $count = $wpdb-&gt;get_var( $wpdb-&gt;prepare( &#8220;SELECT COUNT(*) FROM $wpdb-&gt;term_relationships, $wpdb-&gt;posts WHERE $wpdb-&gt;posts.ID = $wpdb-&gt;term_relationships.object_id AND post_status = &#8216;publish&#8217; AND post_type in (&#8216;post&#8217;,'page&#8217;) AND term_taxonomy_id = %d&#8221;, $term ) );<br />
                $wpdb-&gt;update( $wpdb-&gt;term_taxonomy, compact( &#8216;count&#8217; ), array( &#8216;term_taxonomy_id&#8217; =&gt; $term ) );<br />
        }<br />
}</p>
]]></content:encoded>
<geo:lat>38</geo:lat><geo:long>-97</geo:long>	</item>
</channel>
</rss>
