Hi. I am running two separate sites but with the exact same template and layout yet I have an issue between the two with categories.
On one if I file something under a 'child' category it also gets counted against the 'parent' category. ie. If parent reads 'Category (3)' and I submit a post under the child category 'Help' it counts (1) onto the Help category but also changes the 'Category' to (4) without it actually being checked.
This is what I want, but yet on my other site when I do the same thing it adds the post to both child and parent categories but does not update the count on the parent category.
Anyone know what this might be?
Also I just noticed that when I put the following code into my categories info on the sidebar in order to list only parent categories I still lists the child categories anyway.
depth=1
Anyone know why it still does this? Is there some kind of flaw or bug that is causing this and the above problems with that site?
Anyone have any clue what this problem could be?
Are you using a Widget or the template tag, wp_list_categories(), to display your categories on both blogs?
I'm using the wp_list_Categories() to display categories on both blogs. No widgets. Can't figure out how it works OK on one, but not the other. The coding is the same for both and both are on the same version.
Both blogs have same plugins activated?
Yep, only 1 plugin active and it is the same one for both blogs.
Weird especially if use the same exact code for wp_list_categories. Makes me think the pad_counts argument is getting set differently.
Might try adding pad_counts=1 to that 'non-working' wp_list_categories.
That didn't work but I copied the exact code from the working blog on the sidebar and pasted it into the sidebar of the non-working site and it appears to have fixed the issue. There must have been a little something, somewhere in the code messing it up.
I have an final question... In my archives where it lists all categories, there are bullet points in front of them. Is there anyway to remove these bullet points?
Without looking over the page in detail (on my lunch break in work, limited time!!) It seems there are option of ul, ol and li - is there an option that puts nothing in front of the categories in the archive list... Both ul and li leave bullet points, and ol leaves numbers?
Yeah you want to look in detail...for example:
#sidebar li {
list-style: none;
}
Ahh ok so basically for my archive page I'll look for something similar then?
Thanks for all your help.