Plugin info

Total downloads: 3,511
Active installs: 20
Total reviews: 1
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 4/15/2010 (5739 days ago)
Added to WordPress: 4/15/2010 (15 years old)
Minimum WordPress version: 3
Tested up to WordPress version: 3
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5739 days ago • 1 reviews

22/100

Is Shortlinks abandoned?

Possibly abandoned (last update 5739 days ago).

Compatibility

Requires WordPress: 3
Tested up to: 3
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Ninja Pages
Rating 4.6/5 (12 reviews)Active installs 2,000
Page2cat: Category, Pages & Posts Shortcodes
Rating 5.0/5 (3 reviews)Active installs 1,000
Page Categorizer
Rating 0.0/5 (0 reviews)Active installs 70
categories4page
Rating 0.0/5 (0 reviews)Active installs 10
Page Category & Archive Menu
Rating 0.0/5 (0 reviews)Active installs 10
Categorize Pages
Rating 0.0/5 (0 reviews)Active installs 10

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.

Installation

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

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

  1. Easily get shortlinks for posts

    Easily get shortlinks for posts

  2. Easily get shortlinks for pages

    Easily get shortlinks for pages

  3. Easily get shortlinks for a single page

    Easily get shortlinks for a single page

  4. Easily get shortlinks for categories

    Easily get shortlinks for categories

Changelog

0.1

  • Initial version