<?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/"
		>
<channel>
	<title>Kommentare zu: WordPress Plugin: Show Active Category</title>
	<atom:link href="http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/feed" rel="self" type="application/rss+xml" />
	<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category</link>
	<description>ich möchte das doch auch nicht</description>
	<lastBuildDate>Tue, 07 Dec 2010 16:16:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Von: Jean-Hugues Bretin</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-1106</link>
		<dc:creator>Jean-Hugues Bretin</dc:creator>
		<pubDate>Wed, 22 Sep 2010 09:33:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-1106</guid>
		<description>thanks alot screenshine and Marcus. Marcus your last piece of code is exactly what I wanted, and i guess it&#039;s what should be embed in the plug-in simply because you often have to deal with both a  and and  &lt;a href rel=&quot;nofollow&quot;&gt;  to design a perfect Menu ! Thanks ! And most of the time it&#039;s where the main class stands.</description>
		<content:encoded><![CDATA[<p>thanks alot screenshine and Marcus. Marcus your last piece of code is exactly what I wanted, and i guess it&#8217;s what should be embed in the plug-in simply because you often have to deal with both a  and and  <a href >  to design a perfect Menu ! Thanks ! And most of the time it&#8217;s where the main class stands.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Marcus</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-1019</link>
		<dc:creator>Marcus</dc:creator>
		<pubDate>Mon, 23 Aug 2010 23:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-1019</guid>
		<description>Hi!

I modified the code, so the class is added to the li tag

function show_active_category($text) {

	global $post;
	if( is_single() ) {

		$a_categories = wp_get_post_categories($post-&gt;ID);

		foreach( $a_categories as $catid ) {
		$text = str_replace(&#039;cat-item-&#039;.$catid, &#039;cat-item-&#039;.$catid.&#039; active_category &#039;, $text);
		}
  }
  return $text;
}
add_filter(&#039;wp_list_categories&#039;, &#039;show_active_category&#039;);</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I modified the code, so the class is added to the li tag</p>
<p>function show_active_category($text) {</p>
<p>	global $post;<br />
	if( is_single() ) {</p>
<p>		$a_categories = wp_get_post_categories($post-&gt;ID);</p>
<p>		foreach( $a_categories as $catid ) {<br />
		$text = str_replace(&#8216;cat-item-&#8217;.$catid, &#8216;cat-item-&#8217;.$catid.&#8217; active_category &#8216;, $text);<br />
		}<br />
  }<br />
  return $text;<br />
}<br />
add_filter(&#8216;wp_list_categories&#8217;, &#8216;show_active_category&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Mr_Wizzy</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-1018</link>
		<dc:creator>Mr_Wizzy</dc:creator>
		<pubDate>Thu, 22 Jul 2010 13:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-1018</guid>
		<description>Dieses Plugin scheint mir perfekt f&#252;r meine Seite (WP 2.9.2) zu sein, aber leider finde ich nicht die richtige Stelle f&#252;r den css-Befehl :(
Habe eine suckerfish.css, tabs.css und style.css - Datei.
Kann mir jemand einen Tipp geben, ob ich auf dem Holzweg bin ;-)

Vielen Dank und freu mich schon tierisch wenns funzt. Und hier auch gleich die Frage, warum WP von Haus aus das nicht anbieten???!

LG
Frank</description>
		<content:encoded><![CDATA[<p>Dieses Plugin scheint mir perfekt f&#252;r meine Seite (WP 2.9.2) zu sein, aber leider finde ich nicht die richtige Stelle f&#252;r den css-Befehl :(<br />
Habe eine suckerfish.css, tabs.css und style.css &#8211; Datei.<br />
Kann mir jemand einen Tipp geben, ob ich auf dem Holzweg bin ;-)</p>
<p>Vielen Dank und freu mich schon tierisch wenns funzt. Und hier auch gleich die Frage, warum WP von Haus aus das nicht anbieten???!</p>
<p>LG<br />
Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: WordPress: Highlight Current Category Menu Item When Viewing Single Post &#124; AEXT.NET MAGAZINE</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-1017</link>
		<dc:creator>WordPress: Highlight Current Category Menu Item When Viewing Single Post &#124; AEXT.NET MAGAZINE</dc:creator>
		<pubDate>Wed, 26 May 2010 22:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-1017</guid>
		<description>[...] category menu item(s) when viewing a single post which belongs to that category(ies).Using plugin1. Wordpress Plugin: Show Active Category This is a very easy way to do category highlighting on WordPress single post. All you need is [...]</description>
		<content:encoded><![CDATA[<p>[...] category menu item(s) when viewing a single post which belongs to that category(ies).Using plugin1. WordPress Plugin: Show Active Category This is a very easy way to do category highlighting on WordPress single post. All you need is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: elexx</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-1011</link>
		<dc:creator>elexx</dc:creator>
		<pubDate>Fri, 16 Apr 2010 08:07:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-1011</guid>
		<description>hallo,
zuerst mal danke fuer das plugin, und dass du es unter der GNUGPL veroeffentlicht hast :-)

ich habe das plugin modifiziert, dass es den &quot;current-cat&quot; tag ins li element schreibt (so wie wordpress dies auch tut wenn man die kategorie direkt auswaehlt), und nichtmehr ins a tag. heisst der style .current_cat greift auch beim plugin und man muss nicht extra ein neues style definieren. 

die geaenderte foreach-schleife sieht wie folgt aus:
&lt;code&gt;
foreach (wp_get_post_categories($post-&gt;ID) as $catid) {
	if (preg_match(&#039;#cat-item-&#039; . $catid . &#039;&quot;#&#039;, $text)) {
		$text = str_replace(&#039;cat-item-&#039; . $catid . &#039;&quot;&#039;, &#039;cat-item-&#039; . $catid . &#039; current-cat&quot;&#039;, $text);
	}
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>hallo,<br />
zuerst mal danke fuer das plugin, und dass du es unter der GNUGPL veroeffentlicht hast :-)</p>
<p>ich habe das plugin modifiziert, dass es den &#8220;current-cat&#8221; tag ins li element schreibt (so wie wordpress dies auch tut wenn man die kategorie direkt auswaehlt), und nichtmehr ins a tag. heisst der style .current_cat greift auch beim plugin und man muss nicht extra ein neues style definieren. </p>
<p>die geaenderte foreach-schleife sieht wie folgt aus:<br />
<code><br />
foreach (wp_get_post_categories($post-&gt;ID) as $catid) {<br />
	if (preg_match('#cat-item-' . $catid . '"#', $text)) {<br />
		$text = str_replace('cat-item-' . $catid . '"', 'cat-item-' . $catid . ' current-cat"', $text);<br />
	}<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Mark active category in single page(wordpress) &#124; Let&#39;s start again...</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-1010</link>
		<dc:creator>Mark active category in single page(wordpress) &#124; Let&#39;s start again...</dc:creator>
		<pubDate>Sun, 04 Apr 2010 07:45:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-1010</guid>
		<description>[...] to do that I got a plugin (please check here) but i am not happy as the plugin put active class for anchor tag&#8230; Please check the plugin [...]</description>
		<content:encoded><![CDATA[<p>[...] to do that I got a plugin (please check here) but i am not happy as the plugin put active class for anchor tag&#8230; Please check the plugin [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Andy Levin</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-994</link>
		<dc:creator>Andy Levin</dc:creator>
		<pubDate>Tue, 14 Jul 2009 20:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-994</guid>
		<description>Hi. I am using the plugin sorry I speak only English...................................is there anyway to easily adapt the code to highlight the parent of the active category?

Thanks&gt;&gt;
Andu</description>
		<content:encoded><![CDATA[<p>Hi. I am using the plugin sorry I speak only English&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..is there anyway to easily adapt the code to highlight the parent of the active category?</p>
<p>Thanks&gt;&gt;<br />
Andu</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Tasin Reza</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-975</link>
		<dc:creator>Tasin Reza</dc:creator>
		<pubDate>Mon, 18 May 2009 13:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-975</guid>
		<description>Many thanks for sharing this, I have used it with WP 2.7 and it worked.

Tasin</description>
		<content:encoded><![CDATA[<p>Many thanks for sharing this, I have used it with WP 2.7 and it worked.</p>
<p>Tasin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: dirk</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-933</link>
		<dc:creator>dirk</dc:creator>
		<pubDate>Fri, 20 Mar 2009 09:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-933</guid>
		<description>hi philipp, das habe ich jetzt nich verstanden. wo m&#246;chtest du was hervorheben?</description>
		<content:encoded><![CDATA[<p>hi philipp, das habe ich jetzt nich verstanden. wo m&#246;chtest du was hervorheben?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: philippdatz</title>
		<link>http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/comment-page-1#comment-931</link>
		<dc:creator>philippdatz</dc:creator>
		<pubDate>Fri, 20 Mar 2009 09:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-931</guid>
		<description>hate ja schonmal gecschrieben, nun habe ich eine frage, ist es auch m&#246;glich damit die kategorie, auf der man sich befindet, also in der adresszeile /category/kategorie1 irgendwie hervorzuheben?

gru&#223;,
philipp</description>
		<content:encoded><![CDATA[<p>hate ja schonmal gecschrieben, nun habe ich eine frage, ist es auch m&#246;glich damit die kategorie, auf der man sich befindet, also in der adresszeile /category/kategorie1 irgendwie hervorzuheben?</p>
<p>gru&#223;,<br />
philipp</p>
]]></content:encoded>
	</item>
</channel>
</rss>

