Title: Shortlinks
Author: aizatto
Published: <strong>April 15, 2010</strong>
Last modified: April 15, 2010

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/shortlinks.svg)

# Shortlinks

 By [aizatto](https://profiles.wordpress.org/aizatto/)

[Download](https://downloads.wordpress.org/plugin/shortlinks.0.1.zip)

 * [Details](https://test.wordpress.org/plugins/shortlinks/#description)
 * [Reviews](https://test.wordpress.org/plugins/shortlinks/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/shortlinks/#installation)
 * [Development](https://test.wordpress.org/plugins/shortlinks/#developers)

 [Support](https://wordpress.org/support/plugin/shortlinks/)

## Description

Shortlinks allows you to easily retrieve the shortlink for your WordPress posts,
pages, categories, post_tags, attachments, custom post types, and custom taxonmies.

By default, WordPress uses links a query string ( ie: http://blog.aizatto.com/?page_id
=3565 ) to load up your posts, pages, categories, etc. But when you enable permalinks,
the query string is hidden by the WordPress rewrite rules. Having pretty urls is
great, but also makes the website less flexible. For example, changing a posts published
date will change the URL.

While we can’t control how other people will link to our site, we can control how
we link to our internal sites.

By default, with permalinks enabled, when visiting WordPress with a shortlink, WordPress
will redirect you to the permalink URL.

### How It Works

Shortlinks hooks into the WordPress filter `get_shortlink` to enable shortlinks 
for all WordPress types.

You can use Shortlinks in your own theme or plugin.

To return the shortlink for a post, page, or custom post type, where $id represents
the ID:

To return the shortlink for a category, where $id represents the category id:

To return the shortlinks for custom taxonomy, where $id represents the term id, 
and $taxonomy represents the custom taxonomy:

### Why I Created It

WordPress supports shortlinks by default, but only allows the user to get the shortlink
for a post. Finding it unacceptable, I created a plugin to get shortlinks for all
content types.

## Screenshots

 * [[
 * Easily get shortlinks for posts
 * [[
 * Easily get shortlinks for pages
 * [[
 * Easily get shortlinks for a single page
 * [[
 * Easily get shortlinks for categories

## Installation

 1. Upload the `shortlinks` folder into your plugin directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Shortlinks” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ aizatto ](https://profiles.wordpress.org/aizatto/)

[Translate “Shortlinks” into your language.](https://translate.wordpress.org/projects/wp-plugins/shortlinks)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/shortlinks/), check
out the [SVN repository](https://plugins.svn.wordpress.org/shortlinks/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/shortlinks/) by 
[RSS](https://plugins.trac.wordpress.org/log/shortlinks/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1

 * Initial version

## Meta

 *  Version **0.1**
 *  Last updated **16 years ago**
 *  Active installations **20+**
 *  WordPress version ** 3 or higher **
 *  Tested up to **3**
 *  Language
 * [English (US)](https://wordpress.org/plugins/shortlinks/)
 * Tags
 * [category](https://test.wordpress.org/plugins/tags/category/)[page](https://test.wordpress.org/plugins/tags/page/)
   [pages](https://test.wordpress.org/plugins/tags/pages/)[post](https://test.wordpress.org/plugins/tags/post/)
   [posts](https://test.wordpress.org/plugins/tags/posts/)
 *  [Advanced View](https://test.wordpress.org/plugins/shortlinks/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/shortlinks/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/shortlinks/reviews/)

## Contributors

 *   [ aizatto ](https://profiles.wordpress.org/aizatto/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/shortlinks/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=aizat%2efaiz%40gmail%2ecom&lc=MY&item_name=Ezwan%20Aizat%20Bin%20Abdullah%20Faiz&item_number=Shortlinks&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)