counting trackbacks, pingbacks and comments of a post
I think you can use get_comments. In the type parameter you can pass the type of comment (trackback, ping), you can filter by status, and you have a parameter called count, that when is set to true returns just the number of comments that match the parameters you passed. get_comments( array( ‘status’ => ‘approve’, ‘post_id’=> … Read more