change optioncount=0
to optioncount=1
and see if that does it.
wp_list_cats documentation: http://codex.wordpress.org/Template_Tags/wp_list_cats
Thanks for your quick reply
it doesn’t work HandySolo neither the link you gave π
From the link (which is now working. unfortunately, I can’t control when the codex goes down)
optioncount
(boolean) Sets whether to display a count of posts in each Category. Valid values:
* 1 (True)
* 0 (False – default)
A) Make sure you’re changing the sidebar in your current theme.
B) If you’re running wp-cache, visit options -> wp-cache and click the clear cache button.
I believe I don’t have wp-cache. Is it a separate plugin?
Note: I’ve just installed latest version.
advanced-cache.php link does not exist
Create it by executing:
ln -s /home/site/public_html/wp-content/plugins/wp-cache/wp-cache-phase1.php /home/site/public_html/wp-content/advanced-cache.php
in your server
Cannot continue… fix previous problems and retry.
Do you know how to run this string on reseller server?
Err, if you weren’t currently running wp-cache, you don’t need it to show category counts!
I threw that section in just in case you might be.
What version of WP are you using?
Show me your current wp_list_cats call with arguments please.
<?php wp_list_cats(‘sort_column=id&hide_empty=0&optioncount=0&hierarchical=1’); ?>
Well…
So let’s go back to my first reply to you:
change optioncount=0 to optioncount=1 and see if that does it.
It’s right in the middle of that string you just shared with me. Change 0 to 1.
I already did change the value but it didn’t work. Oh well, that’s okay.
Thanks a lot handysolo
If you changed it, why don’t I see it in what you just pasted 3 replies back?
You gave me:
<?php wp_list_cats('sort_column=id&hide_empty=0&optioncount=0&hierarchical=1'); ?>
I’m trying to tell you that you want:
<?php wp_list_cats('sort_column=id&hide_empty=0&optioncount=1&hierarchical=1'); ?>
I’m having the same problem.
In my Sidebar Widgets window, I’m using the default “Categories” and there are no numbers after the category names.
Any help is appreciated.
Brooks
All these methods you mentioned above are deprecated in the newest wordpress version, now where do I find those, plz?