Skip to content

Instantly share code, notes, and snippets.

@epicdaze
Created June 16, 2011 02:04
Show Gist options
  • Save epicdaze/1028544 to your computer and use it in GitHub Desktop.
Save epicdaze/1028544 to your computer and use it in GitHub Desktop.
#wordpress - display published post count #postcount #post #count
<!-- /* This simple one line snippet will display the total wordpress post count. */ -->
<?php echo wp_count_posts()->publish; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment