Jan 30, 2009
Post Shortcuts Tiny PermaLinks - Wordpress Plugin
Twitter is somehow cool but long links get violated. There are many places where shorter links are favored over long ones. I needed a plugin to be able to append the post_ID to the subdomain of the blog. Eg: http://blog.5ubliminal.com/31 - click this link to see it.
I built a very simple plugin to resolve such tiny links to post permalinks. This only works for blogs installed on subdomains. I don't believe in folder installs and will not respect them in my plugins.
How The Wordpress Plugin Works?
The way it works is simple but not as simple as it could be. I could've just got the post permalink and redirect but I chose to make some checks first. The redirect won't work on private posts for non-registered members. The redirect will not work for unpublished posts / revisions. And the plugin will show the logged in author the tiny permalink on top of the post text when looking at single posts.
The post the tinylink poinst to is run against the_posts filter so other plugins can lock access to it as they wish. And redirections are done with 301 so they're SEO-friendly.
Get Wordpress Plugin
This section is restricted to registered users. Please register to access the Wordpress Plugin.
The comment form is below so shoot! Bugs and questions are welcome.


[...] Read the original here: Post Shortcuts Tiny PermaLinks - Wordpress Plugin | 5ubliminal’s 5pace [...]