How to show comment count blog post in profile buddypress
I want to output a user comment counter to wordpress posts.
I use this code
<?php $user_id = bp_displayed_user_id(); $args = array('user_id', 'count' => true); $comments = get_comments($args); echo $comments ?>
But he deduces for some reason the total number of comments to all posts
How do I display the number of user comments?
- You must be logged in to reply to this topic.