Disqus get comment count for current post as a PHP variable

I’m trying to get the comment count on a WordPress post as a PHP variable.

For some reason comments aren’t syncing properly between disqus and WordPress so get the comment count from WordPress locally isn’t an option.

Read More

Does anyone have any ideas about how to go about this? There’s an API and PHP wrapper but I’d like to see if there’s an easier way before I get stuck into the API.

Thanks!

PS I need as a PHP variable so posts can receive an rating based on likes, favourites and comments so getting it in JS isn’t really an option.

Thanks!

Related posts

Leave a Reply

1 comment