So I’m making a new WordPress plugin that I’m calling Kalin’s Easy Edit Links, though I may change that before release. It’s just a little box that shows up in your page/post edit page that has a list of all pages, posts, categories, tags and links, with links to both the actual page and to the edit page.
I figure this solves two hassles I have in making posts with WordPress. First, if I’m doing more than one post in a sitting, I want to be able to switch to the edit screen of the next post without waiting to load, then search through, the posts page. Second, I found myself constantly going back to my live site to find the link to a particular page so I could reference it. With this, I have it right there, ready to copy into my post. Google Chrome and Safari users can even drag and drop the link right into the post and it’s all ready to go. Firefox, for some reason converts the link into a relative link, which then breaks when it goes live 🙁 Imagine that, for once Safari does something better than FireFox. If anyone knows how to fix this in FireFox, please let me know. Internet Explorer can’t drag links at all, but at least you can copy and paste.
It seems like this plugin would be a processor hog since it needs to compile five different, potentially long lists, and needs to hit the database at least five times. However, I’ve built in a caching feature (see the debug output “not cached” in the image) that simply saves all it’s HTML to a WordPress option and loads it next time, giving you a little refresh button in the corner. When I write the settings page I might give the option for an automatic refresh on a timer, but I’m not sure if that’s even necessary.
I should be releasing this plugin within a week or two, after I finish the settings menu.
I may even add a shortcode so you can add this little box into a post or into a sidebar… or perhaps I will simply copy this code and make a user-facing widget into a separate plugin.
Code is poetry.