Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.