Created
October 14, 2016 08:21
-
-
Save Kaiderella/db3234e156f2b752336f3b3aa88a43ef to your computer and use it in GitHub Desktop.
Thống kê tổng số bình luận
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Get total number of comments | |
$count_comments = wp_count_comments(); | |
$total_comments = $count_comments->approved; | |
echo $total_comments . ' Bình luận'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment