1

I am making a custom wordpress theme and when I add a comment to a post and retrieve the number of comments using get_comments_number() the number does not change.

I do know the function works because for the first comment that gets preinstalled with wordpress it returns 1. but somehow the number does not increment if I add additional comments.

Is there a way to manually increment this number? Does anyone know what the problem might be?

Thanks for your suggestions!

1 Answer 1

0

Approving them in the admin console solved my problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.