Forums

Category problem (13 posts)

  1. prb81
    Member
    Posted 3 weeks ago #

    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?

  2. prb81
    Member
    Posted 3 weeks ago #

    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?

  3. prb81
    Member
    Posted 3 weeks ago #

    Anyone have any clue what this problem could be?

  4. MichaelH
    moderator
    Posted 3 weeks ago #

    Are you using a Widget or the template tag, wp_list_categories(), to display your categories on both blogs?

  5. prb81
    Member
    Posted 3 weeks ago #

    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.

  6. MichaelH
    moderator
    Posted 3 weeks ago #

    Both blogs have same plugins activated?

  7. prb81
    Member
    Posted 3 weeks ago #

    Yep, only 1 plugin active and it is the same one for both blogs.

  8. MichaelH
    moderator
    Posted 3 weeks ago #

    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.

  9. prb81
    Member
    Posted 3 weeks ago #

    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?

  10. MichaelH
    moderator
    Posted 3 weeks ago #

  11. prb81
    Member
    Posted 3 weeks ago #

    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?

  12. MichaelH
    moderator
    Posted 3 weeks ago #

    Yeah you want to look in detail...for example:

    #sidebar li {
       list-style: none;
    }
  13. prb81
    Member
    Posted 3 weeks ago #

    Ahh ok so basically for my archive page I'll look for something similar then?

    Thanks for all your help.

Reply

You must log in to post.

About this Topic

Tags