• Resolved kachi88

    (@kachi88)


    I have a “blog” category, I want to display the number of comments in this category, I create such a shortcode – [sbs_comments cat=”blog”], but it does not work, outputs – 0
    Although there are comments in this category.

    What could be the problem?

    • This topic was modified 2 years, 10 months ago by kachi88.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Starr

    (@specialk)

    If you check the plugin’s install doc, you’ll notice the cat attribute is numerical, which means that the category ID is required. It won’t work with a name. Try using the cat ID (number) should do the trick.

    Thread Starter kachi88

    (@kachi88)

    I did the same heading with a digital name and label, as I put “1” in the instructions, it still doesn’t work.

    Plugin Author Jeff Starr

    (@specialk)

    Is “1” the actual ID for your “blog” category?

    Thread Starter kachi88

    (@kachi88)

    Yes, the actual id is 1

    I checked to put a comment in both “records” and “pages”, as a result, 0 comments are still displayed

    Plugin Author Jeff Starr

    (@specialk)

    Okay it might be a bug. I will investigate and try to resolve for the next plugin update. Thanks for reporting this, @kachi88.

    Thread Starter kachi88

    (@kachi88)

    Thanks, I’ll be waiting

    Plugin Author Jeff Starr

    (@specialk)

    Hey I just re-tested [sbs_comments cat="1"] and it is working normally to display the total number of comments in the “Uncategorized” category. I am testing on default WordPress site, making sure that the posts are published and comments published as well.

    So with that in mind, if it is not working on your site, there must be a conflict with another plugin or maybe theme functions, etc. Best advice is to do some basic troubleshooting. I would be glad to provide a guide if it will be useful for you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Does not display the number of comments in a certain category’ is closed to new replies.