Skip to content

Instantly share code, notes, and snippets.

@navitronic
Created December 20, 2012 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navitronic/4349285 to your computer and use it in GitHub Desktop.
Save navitronic/4349285 to your computer and use it in GitHub Desktop.
SQL snippet to get an overview of the types of content in your `wp_posts` table.
SELECT post_type, COUNT(*) AS total
FROM wp_posts GROUP BY post_type;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment