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

---

Søk i utvidelser

Denne utvidelsen **har ikke blitt testet mot noen av de siste 3 hovedutgivelsene
av WordPress**. Den er kanskje ikke lenger holdt vedlike eller støttet, og den kan
ha kompatibilitetsproblemer med nyeste versjoner av WordPress.

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

# Shortlinks

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

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

 * [Detaljer](https://nb.wordpress.org/plugins/shortlinks/#description)
 * [Omtaler](https://nb.wordpress.org/plugins/shortlinks/#reviews)
 *  [Installering](https://nb.wordpress.org/plugins/shortlinks/#installation)
 * [Utvikling](https://nb.wordpress.org/plugins/shortlinks/#developers)

 [Brukerstøtte](https://wordpress.org/support/plugin/shortlinks/)

## Beskrivelse

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.

## Skjermbilder

[⌊Easily get shortlinks for posts⌉⌊Easily get shortlinks for posts⌉[

Easily get shortlinks for posts

[⌊Easily get shortlinks for pages⌉⌊Easily get shortlinks for pages⌉[

Easily get shortlinks for pages

[⌊Easily get shortlinks for a single page⌉⌊Easily get shortlinks for a single page⌉[

Easily get shortlinks for a single page

[⌊Easily get shortlinks for categories⌉⌊Easily get shortlinks for categories⌉[

Easily get shortlinks for categories

## Installasjon

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

## Vurderinger

Det er ingen omtaler av denne utvidelsen.

## Bidragsytere og utviklere

«Shortlinks» er programvare med åpen kildekode. Følgende personer har bidratt til
denne utvidelsen:

Bidragsytere

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

[Oversett «Shortlinks» til ditt språk.](https://translate.wordpress.org/projects/wp-plugins/shortlinks)

### Interessert i utvikling?

[Bla gjennom koden](https://plugins.trac.wordpress.org/browser/shortlinks/), sjekk
ut [SVN-repositoriet](https://plugins.svn.wordpress.org/shortlinks/), eller abonner
på [utviklingsloggen](https://plugins.trac.wordpress.org/log/shortlinks/) med [RSS](https://plugins.trac.wordpress.org/log/shortlinks/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 0.1

 * Initial version

## Meta

 *  Versjon **0.1**
 *  Sist oppdatert **16 år siden**
 *  Aktive installasjoner **10+**
 *  WordPress-versjon ** 3 eller nyere **
 *  Testet opp til **3**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/shortlinks/)
 * Stikkord
 * [category](https://nb.wordpress.org/plugins/tags/category/)[page](https://nb.wordpress.org/plugins/tags/page/)
   [pages](https://nb.wordpress.org/plugins/tags/pages/)[post](https://nb.wordpress.org/plugins/tags/post/)
   [posts](https://nb.wordpress.org/plugins/tags/posts/)
 *  [Avansert visning](https://nb.wordpress.org/plugins/shortlinks/advanced/)

## Vurderinger

 5 av 5 stjerner.

 *  [  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)

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

[Se alle omtalene](https://wordpress.org/support/plugin/shortlinks/reviews/)

## Bidragsytere

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

## Brukerstøtte

Har du noe å si? Trenger du hjelp?

 [Vis brukerstøtteforumet](https://wordpress.org/support/plugin/shortlinks/)

## Donér

Vil du støtte videreutviklingen av denne utvidelsen?

 [ Doner til denne utvidelsen ](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)