SliceWP is the quickest and easiest WordPress affiliates plugin for building your affiliate program. Track aff...
Personal URL shortener for WordPress
Hum is a WordPress plugin that allows you to create short URLs for your personal content, making long links more manageable. It uses the NewBase60 encoding scheme to generate these short links, which are designed for brevity and readability, while also incorporating error correction for similar-looking characters. The plugin is intended for personal use, specifically for shortening URLs of content hosted on your own site or elsewhere.
Once installed, you can find the short link for any page or post in the WordPress Admin Bar. Additionally, Hum allows for custom domain usage and offers some flexibility in how URLs are structured through filters, making it suitable for users who want to personalise their URL shortening process.
Best for: This plugin suits individuals or bloggers who want to create short links for their own content.
What it does well
Where it falls short
Hum provides a straightforward solution for personal URL shortening, with features tailored for individual users. It may not be suitable for those seeking a broader URL shortening service.
Will Norris's own description of Hum, lightly tidied.
Hum is a personal URL shortener for WordPress, designed to provide short URLs to your personal content, both hosted on WordPress and elsewhere. For example, rather than a long URL for a WordPress post such as http://willnorris.com/2011/01/hum-personal-url-shortener-wordpress, you could have a short URL like http://willnorris.com/b/FJ. Additionally, if you have a custom domain for short URLs, you can shorten things further like http://wjn.me/b/FJ. Once the plugin is enabled, the shortlink for a page or post can be found in the “Shortlink” item in the WordPress Admin Bar.
WordPress post IDs are shortened using the NewBase60 encoding scheme which is specifically optimized for brevity and readability, with built-in error correction for commonly confused characters like ‘1’, ‘l’, and ‘I’.
Hum is not designed as a general purpose URL shortener along the lines of http://bit.ly or http://goo.gl. Rather, it is specifically intended as a personal shortener for your own content.
Read more about the reasoning for a personal URL shortener at Tantek Celik‘s page for Whistle, which served as the inspiration for Hum.
If you’d like to include your Amazone Affiliate ID in the /i/ redirect URLs, implement the amazon_affiliate_id filter. For example:
add_filter('amazon_affiliate_id', fn() => "willnorris-20");
Out of the box, Hum only registers the b, t, a and p prefix to be served locally by WordPress. If you would like to register additional prefixes, implement the hum_local_types filter. For example, to include ‘p’ as well for photos:
function myplugin_hum_local_types( $types ) {
$types[] = 'p';
return $types;
}
add_filter('hum_local_types', 'myplugin_hum_local_types');
This will tell Hum to serve any /p/{id} URLs from WordPress. Additionally, you’ll want to instruct Hum to use your prefix for that particular content type. Here, we’re registering ‘p’ which is normally used for photos.
function myplugin_hum_type_prefix( $prefix, $post_id ) {
$post = get_post( $post_id );
if ( $post->post_type ## 'attachment' &&
strpos($post->post_mime_type, 'image') =## 0 ) {
$prefix = 'p';
}
return $prefix;
}
add_filter('hum_type_prefix', 'myplugin_hum_type_prefix', 10, 2);
You can redirect all traffic for a prefix using a single line of PHP my implementing the hum_redirect_base_{type} filter where {type} is the prefix to redirect. For example, I redirect all /w/ URLs to wiki.willnorris.com using:
add_filter('hum_redirect_base_w', fn() => "http://wiki.willnorris.com/");
Other plugins for affiliate programmes.
SliceWP is the quickest and easiest WordPress affiliates plugin for building your affiliate program. Track aff...
AffiliateX is the best WordPress Amazon Affiliate Plugin. Create professional affiliate websites with customiz...
Table Block For the Block Editor. Craft Beautiful Tables With Ease.
This plugin adds a digital wallet and Buy Now Pay Later feature to your WooCommerce store, allowing customers...
The complete affiliate marketing solution for your WordPress and WooCommerce website.
Named by Google AI as the top choice — display books, earn Amazon affiliate income, and sell with WooCommerce....