WP-Filebase Pro › Forums › General Support › Get comment count for File Pages › Reply To: Get comment count for File Pages
2016-06-10 at 11:53 #7854
<?php echo wp_count_comments($f->file_wpattach_id)->approved; ?>
file_wpattach_id is the correct ID of the file page, whereas
file_post_id is the ID of the post the file is attached to.