Last active
October 14, 2016 08:21
-
-
Save Kaiderella/20d96b118088cc19d057e0b5fcc56fc7 to your computer and use it in GitHub Desktop.
Thống kê tổng số bài viết
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 posts | |
$count_posts = wp_count_posts(); | |
$total_posts = $count_posts->publish; | |
echo $total_posts . ' Bài viết'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment