Created
July 1, 2014 10:19
-
-
Save bfintal/5d2f542c0db585c9cb02 to your computer and use it in GitHub Desktop.
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
global $wpdb; | |
$results = $wpdb->get_results( "select post_author, count(*) post_num from wp_posts where post_type in ('page', 'post', 'cpt') group by post_author" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment