Reply To: Get comment count for File Pages

WP-Filebase Pro Forums General Support Get comment count for File Pages Reply To: Get comment count for File Pages

#7854
Fabian
Participant

Sorry, try <?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.