Create Page To Count Comments For Each Post In WordPress Site
This is pretty easy to do. Put this code in your functions.php file. The logic is pretty straightforward. Get all posts with get_posts(). Iterate over all post, extract comments count and permalink of current post and Print out the results. . add_action( ‘init’, ‘get_comments_count’ ); // Hook to init, elsewhere or use directly in your … Read more