Skip to content

Instantly share code, notes, and snippets.

@seebeen
Created March 31, 2021 16:05
Show Gist options
  • Save seebeen/750ea59a02dbb74e2428e4dfde6a454a to your computer and use it in GitHub Desktop.
Save seebeen/750ea59a02dbb74e2428e4dfde6a454a to your computer and use it in GitHub Desktop.
Useful WP SQL Queries #WordPress
/*
list all meta keys and count them
*/
SELECT meta_key, COUNT(*) FROM `wp_postmeta` group by meta_key ORDER BY `COUNT(*)` DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment