Contributors: docofmedia
Donate link: http://docof.me/donate
Version: 1.7.4
Tags: url shortener, url shortening, shorturl, short_url, shortlink, short permalink, short url, custom short url, custom url
Requires at least: 2.5
Tested up to: 4.2.2
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Shortn.It is a customizable, self-hosted, URL shortener for WordPress.
You've probably seen major corporations with short URLs utilizing a domain that's shorter than their main domain, but still reflects their brand. Shortn.It allows you to achieve the same effect with your brand, no matter how large or small. All you need is Shortn.It, WordPress (2.5+), and if you want, a short domain configured as an alias. If you're not sure how to configure an alias domain, a guide can be found in the help and documentation.
Shortn.It is a customizable, URL shortener that allows you to create shortened, unique, permalinks to any and every post imaginable. If you can post it, you can create a short link for it. Shortn.It automatically creates a short URL using a combination of lowercase, uppercase, and numeric characters (depending on the options you've set), but can be customized to be whatever URL safe string you wish.
Shortn.It adds the appropriate tags for shorturl auto discovery and rel="shortlink" as desired.
Shortn.It provides easy functions for accessing it's generated URLs outside of Shortn.It, in your themes, or other plugins. The the_full_shortn_url
will output just the full URL, without any formatting, which can be used in various Twitter or other microblogging plugins. the_shortn_url_link
will output an HTML link using the configuration from Shortn.It's options page.
the_shortn_url_link()
outputs an anchor (a) tag, ex: <a href="http://docof.me/shortn-it" class="shortn_it" rel="nofollow" title="shortened permalink for this page">http://docof.me/shortn-it</a>
get_the_shortn_url_link()
retrieves the above anchor for storage in a variablethe_full_shortn_url()
outputs the short URL, ex: http://docof.me/shortn-it
get_the_full_shortn_url()
retrieves the above URL for storage in a variablethe_shortn_url()
outputs the short URL without the domain, ex: shortn-it
get_the_shortn_url()
retrieves the above URL for storage in a variableYou can find help and documentation and more detailed information about Shortn.It on docofmedia.com. If you were unable to find the answer to your question on the FAQ or in any of the documentation, you should check the support forum on WordPress.org. If you can't locate any topics that pertain to your particular issue, post a new topic for it.
Installing Shortn.It is a breeze.
shortn-it
folder to the /wp-content/plugins/
directory<?php the_shortn_url_link(); ?>
in your template where you'd like the shortened URL link to show up or retrieve it using <?php $link = get_the_shortn_url_link(); ?>
. If you only need to retrieve the link address, use <?php $url = get_the_full_shortn_url(); ?>
or <?php the_full_shortn_url(); ?>
to output it directly.A great tool to help you come up with a short domain and see what's available is Domai.nr.
The short domain needs to be configured as an alias to your main domain. If you're not sure how to configure an alias domain, a guide can be found in the help and documentation.
New Shortn.It URLs that were being generated and checked for duplicates were throwing areas. Upgrade immediately!
Shortn.It URLs are generated for any post type, but weren't able to be retrieved for improperly registered post types. Upgrade immediately to prevent your Shortn.It URLs from returning 404 Not Found errors.