• Resolved hungzai

    (@hungzai)


    As the title mentioned, I need to display post count of a particular category on my site. Using wp_list_categories or wp_list_cats, this cannot be achieved because the first parameter needs to be an array. And post counts of a category is NOT considered as ‘child’ of a category and this had put me in complete dilemma.

    Can any experts offer some enlightenment on how can i achieve this? Or any plugin?

Viewing 15 replies - 16 through 30 (of 31 total)
  • oh this is going to be fun to sort out.

    Thread Starter hungzai

    (@hungzai)

    It definitely works. I just pulled that page template that works in another blog to this blog and it works flawless.

    Now i will proceed with the task of transferring codes pieces by pieces and try to catch the error.

    Thread Starter hungzai

    (@hungzai)

    Ok, i’ve finished transferring the codes and no errors found and now it works!

    Holy cow this is definitely not a wordpress’s problem. I’m prepare to call this a curse.

    wait a sec…. so now it works in the same place it didn’t work a minute ago?

    Mine still errors here in a page template on the one blog, but not anywhere else on that same blog ??

    Thread Starter hungzai

    (@hungzai)

    It works selectively on different category now.

    I read up somewhere that this is potentially a SQL syntax error.

    I’m worried…

    Thread Starter hungzai

    (@hungzai)

    It works at the same place but NOT for that category i originally wanted to use. It works when i change the Cat ID to something else. Don’t know what to say…

    I think it’s a bug… but I’m not qualified to test sufficiently to make sure.

    Thread Starter hungzai

    (@hungzai)

    There are people providing solutions for it. Deleting some files off the database but i couldn’t find those files in my database.

    Thread Starter hungzai

    (@hungzai)

    Mine is exhibiting 3 type of errors

    1) Warning: array_keys() [function.array-keys]: The first argument should be an array in

    2) Warning: join() [function.join]: Bad arguments. in

    3) Invalid argument supplied for foreach() in

    All 3 kind of errors are from different lines in taxonomy.php

    And this error only came out on certain categories.

    “There are people providing solutions for it.”

    links?

    Thread Starter hungzai

    (@hungzai)

    https://gallery.menalto.com/node/57633

    https://www.ads-software.com/support/topic/172272?replies=10

    There’s another one that talks about clearing 2 files in wp_option that called clear sky or something, can’t locate that thread now.

    Thread Starter hungzai

    (@hungzai)

    ok now, on my side, it doesn’t work with categories that has child OR child of any categories.

    Categories that has no child are fine.

    Let me know if that’s the case with your side.

    you can ignore anything asks you to edit your database — especially the options table.

    I can confirm that the issue affects categories with children, or any children of those categories.

    Thread Starter hungzai

    (@hungzai)

    It’s clearly a case of child ‘ABUSED’.

    lol

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘Display post count of ONE category – possible?’ is closed to new replies.