Skip to content

Instantly share code, notes, and snippets.

@mintindeed
Created May 24, 2013 20:17
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 mintindeed/5646226 to your computer and use it in GitHub Desktop.
Save mintindeed/5646226 to your computer and use it in GitHub Desktop.
WordPress - query the top 100 tags, determined by number of times the tag has been used. Can be modified easily to report on custom taxonomies.
select tt.`count`, t.name from `wp_term_taxonomy` tt join wp_terms t on (tt.term_id=t.term_id) where tt.taxonomy='post_tag' order by tt.`count` desc limit 100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment