Add Post Count to Categories in Andreas04 2.0
![]()
Once again I have tweaked the Adreas04 2.0 Theme. I didn’t feel like writing yesterday (that’s for tomorrows post) but still wanted to get something accomplished. I was looking for a way to split the double right sidebar into a left and a right setup to alliviate the (over)crowding on the one side.
As you can see, I couldn’t figure it out, so I changed direction. I also wanted to show the Post Count in the Category List. I already Alphabetized it the other day, and thought this would make a good ready view of the Category contents.
This is the way I added Post Count to Categories:
Look for this code in the sidebar php
h2 categories /h2
ul class=”sellLi”?php wp_list_cats (’ ‘); ?
or this, if you used the code to Alphabetize
?php list_cats(0, ”,’ name’,'ASC’, (/), true, 0, 0); ?
Replace it with
?php wp_list_cats (’sort_column=name&optioncount=1&hierarchical=0′); ?
As usual, don’t forget to use the “less than” and “greater than” signs at the beginning and end of the statement. (To all of you that recommended using the & amp ; lt thing, I did and it DIDN’T WORK).
I hope you find these suggestions helpful. They can be adapted to any WordPress Theme for similar results, you just need to experiment.
Other Andreas04 2.0 Tweaks:
How to Alphabetize Categories in Andreas04 2.0
How to Fix the Next and Previous Pages in Andreas04 2.0
The Fix for (more) in Andreas04 2.0
New Here? You may want to Subscribe to my RSS feed for daily updates. Or if you prefer, Subscribe by Email What is RSS? Thanks for visiting!
Related Posts:








My Skype: joe.hauckes