<?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="https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category/feed" rel="self" type="application/rss+xml" />
	<link>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category</link>
	<description>ich möchte das doch auch nicht</description>
	<lastBuildDate>Sun, 24 Feb 2013 00:48:12 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>
		Von: Wolf Larsen		</title>
		<link>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-11353</link>

		<dc:creator><![CDATA[Wolf Larsen]]></dc:creator>
		<pubDate>Sun, 24 Feb 2013 00:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-11353</guid>

					<description><![CDATA[Wordpress 3 gibt die Stile besser aus. Man braucht kein Plugin zum hervorheben einer Kategorie mehr.

http://designisphilosophy.com/tutorials/highlight-current-page-or-category/

Wolf]]></description>
			<content:encoded><![CDATA[<p>WordPress 3 gibt die Stile besser aus. Man braucht kein Plugin zum hervorheben einer Kategorie mehr.</p>
<p><a href="http://designisphilosophy.com/tutorials/highlight-current-page-or-category/" rel="nofollow ugc">http://designisphilosophy.com/tutorials/highlight-current-page-or-category/</a></p>
<p>Wolf</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Wolf Larsen		</title>
		<link>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-11347</link>

		<dc:creator><![CDATA[Wolf Larsen]]></dc:creator>
		<pubDate>Sun, 24 Feb 2013 00:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenshine.net/blog/?p=1474#comment-11347</guid>

					<description><![CDATA[Das Plugin hatte ich früher mal im Einsatz. Jetzt scheint es mit Wordpress 3.5.1 und dem Twenty Twelve nicht mehr zu funktionieren. Jedenfalls wird kein CSS mitgegeben, den man dann stylen könnte.]]></description>
			<content:encoded><![CDATA[<p>Das Plugin hatte ich früher mal im Einsatz. Jetzt scheint es mit WordPress 3.5.1 und dem Twenty Twelve nicht mehr zu funktionieren. Jedenfalls wird kein CSS mitgegeben, den man dann stylen könnte.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Jean-Hugues Bretin		</title>
		<link>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-1106</link>

		<dc:creator><![CDATA[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><![CDATA[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 rel="nofollow">  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>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-1019</link>

		<dc:creator><![CDATA[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><![CDATA[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-&#062;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(&#8218;cat-item-&#8218;.$catid, &#8218;cat-item-&#8218;.$catid.&#8216; active_category &#8218;, $text);<br />
		}<br />
  }<br />
  return $text;<br />
}<br />
add_filter(&#8218;wp_list_categories&#8216;, &#8217;show_active_category&#8216;);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Mr_Wizzy		</title>
		<link>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-1018</link>

		<dc:creator><![CDATA[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><![CDATA[Dieses Plugin scheint mir perfekt für meine Seite (WP 2.9.2) zu sein, aber leider finde ich nicht die richtige Stelle fü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ür meine Seite (WP 2.9.2) zu sein, aber leider finde ich nicht die richtige Stelle fü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>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-1017</link>

		<dc:creator><![CDATA[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><![CDATA[[...] 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>[&#8230;] 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 [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: elexx		</title>
		<link>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-1011</link>

		<dc:creator><![CDATA[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><![CDATA[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-&#062;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 &#8222;current-cat&#8220; 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>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-1010</link>

		<dc:creator><![CDATA[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><![CDATA[[...] 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>[&#8230;] 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 [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Andy Levin		</title>
		<link>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-994</link>

		<dc:creator><![CDATA[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><![CDATA[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&#062;&#062;
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>https://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category#comment-975</link>

		<dc:creator><![CDATA[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><![CDATA[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>
	</channel>
</rss>
