Tag Management: Increase The Number Of Tags Per Page
It’s been awhile since I’ve published any WordPress specific stuff on the blog. Thankfully, I’ve discovered a time saving tip that I believe may be helpful to others in my situation. Unfortunately, thanks to the way native tagging was implemented in earlier versions of WordPress, I have 20-25 pages of blank tags in my tag manager. These ghost tags were created because of the way the native tag manager sorted tags in alphabetical order. After the tags were reordered, there would sometimes be a comma separator at the end of the tags. I believe this was the culprit behind so many blank tags showing up in the manager.
At any rate, the default number of tags displayed per page on the tag management screen is 20. Thanks to a light bulb idea, I discovered that this number is easily changeable to anything I want. Here is what you have to do.
Download the edit-tags.php file located in wp-admin/edit-tags.php. Look for the code in the following screenshot:

Simply change that number, save the file and then overwrite the previous file with this one. Instead of showing 20 results per page, I can now show 200 results per page which is a major time saver considering I used to have 25 pages of tags to go through, now I only have a few. Why WordPress doesn’t give the end user a few options determining the maximum amount of tags to display per page is beyond me. Hope this little hack helps someone out!
Comment by Ozh on 11 November 2008
Might be worth it to file a ticket suggesting a filter here so that would be easy to modify this with a plugin instead of hacking core files!
Comment by Jeffro on 11 November 2008
Hey Ozh. So you suggest turning this into a ticket instead of suggesting it at the WordPress ideas center?
Comment by westi on 7 December 2008
It is possible in WordPress 2.7 to do this with a simple plugin.
It’s not the sort of option that we would provide UI for in general but adding a filter for it was easy:
http://trac.wordpress.org/changeset/9848
Enjoy!
Comment by Jeffro on 7 December 2008
@westi - Cool Westi. Hm, I wonder if I should finally dive in and create my very first plugin which would allow end users to simply define the number of tags to be displayed per page via the filter. Seems easy enough.