<?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: Linkverzeichnis mit WordPress &#8211; Einführung</title>
	<atom:link href="http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuehrung/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuehrung/</link>
	<description>Vorstellung des CMS WordPress</description>
	<lastBuildDate>Thu, 02 Sep 2010 07:08:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Von: Bookmarks der Woche - Webworker Blog</title>
		<link>http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuehrung/comment-page-1/#comment-5771</link>
		<dc:creator>Bookmarks der Woche - Webworker Blog</dc:creator>
		<pubDate>Tue, 28 Jul 2009 07:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuhrung/#comment-5771</guid>
		<description>[...] Linkverzeichnis mit WordPress [...]</description>
		<content:encoded><![CDATA[<p>[...] Linkverzeichnis mit WordPress [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Der wilde Garten &#124; links for 2007-09-17</title>
		<link>http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuehrung/comment-page-1/#comment-682</link>
		<dc:creator>Der wilde Garten &#124; links for 2007-09-17</dc:creator>
		<pubDate>Mon, 17 Sep 2007 01:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuhrung/#comment-682</guid>
		<description>[...] Linkverzeichnis mit Wordpress &#8211; Einf&#252;hrung « Blog Archiv « Wordpress F&#252;r meinen privaten Zettelkasten. (tags: Tips&amp;Trix Inspiration) [...]</description>
		<content:encoded><![CDATA[<p>[...] Linkverzeichnis mit WordPress &#8211; Einführung « Blog Archiv « WordPress Für meinen privaten Zettelkasten. (tags: Tips&amp;amp;Trix Inspiration) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Matthias</title>
		<link>http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuehrung/comment-page-1/#comment-446</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Thu, 15 Mar 2007 10:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuhrung/#comment-446</guid>
		<description>Tut mir leid, ist nicht wirklich in einer veröffentlichungsreifen Form :-) Man muss die Funktion list_cats erweitern:

&lt;pre lang=&quot;php&quot;&gt;
$count = intval($category-&gt;category_count);
$count += improved_count($categories,$category-&gt;cat_ID);&lt;/pre&gt;

Die Zählung der Einträge selbst ist dann eine einfache rekursive Funktion:

&lt;pre lang=&quot;php&quot;&gt;
function improved_count ($categories,$child_of=0,$count=0) {
  foreach ($categories as $category) {
    if ($category-&gt;category_parent == $child_of) {
      count=$count
      + improved_count($categories,$category-&gt;cat_ID,$count);
      $count=$count+intval($category-&gt;category_count);
    } else {
    }
  }
  return $count;
}
&lt;/pre&gt;

Vielleicht hilft das als Anregung :-)</description>
		<content:encoded><![CDATA[<p>Tut mir leid, ist nicht wirklich in einer veröffentlichungsreifen Form <img src='http://www.mr-entwicklung.de/cms/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Man muss die Funktion list_cats erweitern:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$count</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category_count</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$count</span> <span style="color: #339933;">+=</span> improved_count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$categories</span><span style="color: #339933;">,</span><span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cat_ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Die Zählung der Einträge selbst ist dann eine einfache rekursive Funktion:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> improved_count <span style="color: #009900;">&#40;</span><span style="color: #000088;">$categories</span><span style="color: #339933;">,</span><span style="color: #000088;">$child_of</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #000088;">$count</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$categories</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$category</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category_parent</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$child_of</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #990000;">count</span><span style="color: #339933;">=</span><span style="color: #000088;">$count</span>
      <span style="color: #339933;">+</span> improved_count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$categories</span><span style="color: #339933;">,</span><span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cat_ID</span><span style="color: #339933;">,</span><span style="color: #000088;">$count</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$count</span><span style="color: #339933;">=</span><span style="color: #000088;">$count</span><span style="color: #339933;">+</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category_count</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$count</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Vielleicht hilft das als Anregung <img src='http://www.mr-entwicklung.de/cms/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: micha</title>
		<link>http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuehrung/comment-page-1/#comment-437</link>
		<dc:creator>micha</dc:creator>
		<pubDate>Sun, 11 Mar 2007 14:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuhrung/#comment-437</guid>
		<description>Mich würde die Funktion correct_count() interessieren, Kannst du dazu näheres schreiben? Gibt es die Funktion irgendwo zum Download?</description>
		<content:encoded><![CDATA[<p>Mich würde die Funktion correct_count() interessieren, Kannst du dazu näheres schreiben? Gibt es die Funktion irgendwo zum Download?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Nimue</title>
		<link>http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuehrung/comment-page-1/#comment-4</link>
		<dc:creator>Nimue</dc:creator>
		<pubDate>Sat, 09 Sep 2006 11:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mr-entwicklung.de/cms/wordpress/anwendungen/linkverzeichnis-mit-wordpress-einfuhrung/#comment-4</guid>
		<description>große klasse! ich bin mit der linkverwaltung in wordpress nicht so glücklich, ich werde auf deine idee zurückgreifen.. vielen dank!</description>
		<content:encoded><![CDATA[<p>große klasse! ich bin mit der linkverwaltung in wordpress nicht so glücklich, ich werde auf deine idee zurückgreifen.. vielen dank!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
