Created
May 24, 2013 20:17
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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