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;
You can’t perform that action at this time.