<?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>Comments on: Fun with Wordpress categories</title>
	<atom:link href="http://tugbucket.net/wordpress/fun-with-wordpress-categories/feed/" rel="self" type="application/rss+xml" />
	<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/</link>
	<description></description>
	<pubDate>Sun, 05 Feb 2012 05:11:23 +0000</pubDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alan</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-259</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Wed, 13 Oct 2010 17:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-259</guid>
		<description>@Karen,
can you email me your "_print.php" to alan[at]tugbucket.net  I'll take a look and see if I find anything.</description>
		<content:encoded><![CDATA[<p>@Karen,<br />
can you email me your &#8220;_print.php&#8221; to alan[at]tugbucket.net  I&#8217;ll take a look and see if I find anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen Atherholt</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-257</link>
		<dc:creator>Karen Atherholt</dc:creator>
		<pubDate>Wed, 13 Oct 2010 16:29:48 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-257</guid>
		<description></description>
		<content:encoded><![CDATA[<br />
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen Atherholt</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-256</link>
		<dc:creator>Karen Atherholt</dc:creator>
		<pubDate>Wed, 13 Oct 2010 16:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-256</guid>
		<description>OK, that works but gives me the wrong category description:
http://finditallroswell.com/wp/wp-content/themes/couponpress/_print.php?cid=110

It's giving another for 'Gallery Spa' (which is the category after Froots) instead of the current  'Froots'.

Here's what I used:

</description>
		<content:encoded><![CDATA[<p>OK, that works but gives me the wrong category description:<br />
<a href="http://finditallroswell.com/wp/wp-content/themes/couponpress/_print.php?cid=110" rel="nofollow">http://finditallroswell.com/wp/wp-content/themes/couponpress/_print.php?cid=110</a></p>
<p>It&#8217;s giving another for &#8216;Gallery Spa&#8217; (which is the category after Froots) instead of the current  &#8216;Froots&#8217;.</p>
<p>Here&#8217;s what I used:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-255</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Wed, 13 Oct 2010 15:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-255</guid>
		<description>@Karen,

looking at your site and what I believe you are try to do, you really don't need the whole function.  Since you are passing a URL variable (cid) in your pop-up, you should be able to simply do:
&lt;code&gt;
&lt;?php
$cat = $_GET['cid'];
$category = get_category($cat);
echo '&lt;h3&gt;'.$category-&gt;cat_name.'&lt;/h3&gt;
	  &lt;p&gt;'.category_description($cat).'&lt;/p&gt;'; 
?&gt;
&lt;!--formatted--&gt;&lt;/code&gt;

That should grab your variable and then print out the title and description of the category the coupon is for.</description>
		<content:encoded><![CDATA[<p>@Karen,</p>
<p>looking at your site and what I believe you are try to do, you really don&#8217;t need the whole function.  Since you are passing a URL variable (cid) in your pop-up, you should be able to simply do:<br />
<code><br />
&lt;?php<br />
$cat = $_GET['cid'];<br />
$category = get_category($cat);<br />
echo &#8216;&lt;h3>&#8217;.$category->cat_name.&#8217;&lt;/h3><br />
	  &lt;p>&#8217;.category_description($cat).&#8217;&lt;/p>&#8217;;<br />
?><br />
<!--formatted--></code></p>
<p>That should grab your variable and then print out the title and description of the category the coupon is for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen Atherholt</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-254</link>
		<dc:creator>Karen Atherholt</dc:creator>
		<pubDate>Wed, 13 Oct 2010 14:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-254</guid>
		<description>This is wonderful! After 4 days of research I found this code. Thank you so much. I have it working here: http://finditallroswell.com/wp/ - click on a 'print coupon' button and a window opens up listing the category descriptions. Please click on the 'FROOTS' print coupon. The list is showing correctly for the category descriptions, but it shows them all for 'Restaurants'.

My question: is it possible to only show the description for "FROOTS"  and not show the others?

Thanks so much!</description>
		<content:encoded><![CDATA[<p>This is wonderful! After 4 days of research I found this code. Thank you so much. I have it working here: <a href="http://finditallroswell.com/wp/" rel="nofollow">http://finditallroswell.com/wp/</a> - click on a &#8216;print coupon&#8217; button and a window opens up listing the category descriptions. Please click on the &#8216;FROOTS&#8217; print coupon. The list is showing correctly for the category descriptions, but it shows them all for &#8216;Restaurants&#8217;.</p>
<p>My question: is it possible to only show the description for &#8220;FROOTS&#8221;  and not show the others?</p>
<p>Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lillier</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-245</link>
		<dc:creator>Lillier</dc:creator>
		<pubDate>Fri, 02 Jul 2010 11:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-245</guid>
		<description>Hello, i'm looking for help! 

my website having problem with the display of posts under each categories.
Normally if you access any one of my categories (from sidebar or other place), you should see all posts listed.

But now it only show maybe 1 post or 2 post (1 full posts and 1 only the title being show).
i've try to deactivate all plugin to see if it works, but it still doesn't work.
But when i switch it to another theme then it's working fine.

i've another website can run the theme without the problem i mention...

Can you help me to settle this issue? Thank you......</description>
		<content:encoded><![CDATA[<p>Hello, i&#8217;m looking for help! </p>
<p>my website having problem with the display of posts under each categories.<br />
Normally if you access any one of my categories (from sidebar or other place), you should see all posts listed.</p>
<p>But now it only show maybe 1 post or 2 post (1 full posts and 1 only the title being show).<br />
i&#8217;ve try to deactivate all plugin to see if it works, but it still doesn&#8217;t work.<br />
But when i switch it to another theme then it&#8217;s working fine.</p>
<p>i&#8217;ve another website can run the theme without the problem i mention&#8230;</p>
<p>Can you help me to settle this issue? Thank you&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holger</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-225</link>
		<dc:creator>Holger</dc:creator>
		<pubDate>Wed, 17 Mar 2010 09:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-225</guid>
		<description>Thanks, that's exactly what I was searching for :)
I did not get it thats its much easierer, if you use the functions.php ..
hope i'll remember that :)</description>
		<content:encoded><![CDATA[<p>Thanks, that&#8217;s exactly what I was searching for <img src='http://tugbucket.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I did not get it thats its much easierer, if you use the functions.php ..<br />
hope i&#8217;ll remember that <img src='http://tugbucket.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-206</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Thu, 04 Mar 2010 21:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-206</guid>
		<description>@Virendar

You should be able to modify the function like so.

&lt;code&gt;function desc_cats(){
foreach (get_categories(array('hide_empty'=&gt;true)) as $category)
{
$catid = $category-&gt;cat_ID;
echo '&lt;div&gt;&lt;h3&gt;&lt;a href="' . get_bloginfo('wpurl') . '/category/' .  $category-&gt;category_nicename . '/"&gt;' .
	$category-&gt;cat_name . ' (' . $category-&gt;count.$numposts.')&lt;/a&gt;&lt;/h3&gt;' . category_description($catid) . '&lt;hr&gt;&lt;/div&gt;' . "\n";
}
};
&lt;!--formatted--&gt;&lt;/code&gt;

And call it like so:
&lt;code&gt;&lt;?php desc_cats(); ?&gt;&lt;!--formatted--&gt;&lt;/code&gt;

That will make each category in it's own div with a &lt;h3&gt; and a link for the title and ending with a horizontal rule.

As for paginating the results, not sure off hand. That really has nothign to do with the base of this function.</description>
		<content:encoded><![CDATA[<p>@Virendar</p>
<p>You should be able to modify the function like so.</p>
<p><code>function desc_cats(){<br />
foreach (get_categories(array('hide_empty'=>true)) as $category)<br />
{<br />
$catid = $category->cat_ID;<br />
echo '&lt;div>&lt;h3>&lt;a href="' . get_bloginfo('wpurl') . '/category/' .  $category->category_nicename . '/">' .<br />
	$category->cat_name . ' (' . $category->count.$numposts.')&lt;/a>&lt;/h3>' . category_description($catid) . '&lt;hr>&lt;/div>' . "\n";<br />
}<br />
};<br />
<!--formatted--></code></p>
<p>And call it like so:<br />
<code>&lt;?php desc_cats(); ?><!--formatted--></code></p>
<p>That will make each category in it&#8217;s own div with a &lt;h3> and a link for the title and ending with a horizontal rule.</p>
<p>As for paginating the results, not sure off hand. That really has nothign to do with the base of this function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virendar</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-204</link>
		<dc:creator>Virendar</dc:creator>
		<pubDate>Tue, 23 Feb 2010 15:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-204</guid>
		<description>ah for number 2 my html isnt shown.  I said I want to add an  "hr'  tag &gt;&lt; in between</description>
		<content:encoded><![CDATA[<p>ah for number 2 my html isnt shown.  I said I want to add an  &#8220;hr&#8217;  tag &gt;&lt; in between</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virendar</title>
		<link>http://tugbucket.net/wordpress/fun-with-wordpress-categories/comment-page-1/#comment-203</link>
		<dc:creator>Virendar</dc:creator>
		<pubDate>Tue, 23 Feb 2010 15:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://tugbucket.net/?p=118#comment-203</guid>
		<description>Hey ! For the second code, the one with the descriptions, how can I do the following :

1) I want to add pagination. I have over 500 categories, and if all of them are listed WITH their descriptions, its a looooong and laggy page. So maybe only like..50 per page.

2) I want to add an  in between the listed categories to space them out a little and make it look nice.</description>
		<content:encoded><![CDATA[<p>Hey ! For the second code, the one with the descriptions, how can I do the following :</p>
<p>1) I want to add pagination. I have over 500 categories, and if all of them are listed WITH their descriptions, its a looooong and laggy page. So maybe only like..50 per page.</p>
<p>2) I want to add an  in between the listed categories to space them out a little and make it look nice.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

