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

---

Procurar plugins

Este plugin **não foi testado com as 3 últimas grandes versões do WordPress**. Pode
já não ser suportado e pode ter problemas de compatibilidade quando usado com versões
mais recentes do WordPress.

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

# Shortlinks

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

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

 * [Detalhes](https://pt.wordpress.org/plugins/shortlinks/#description)
 * [Avaliações](https://pt.wordpress.org/plugins/shortlinks/#reviews)
 *  [Instalação](https://pt.wordpress.org/plugins/shortlinks/#installation)
 * [Desenvolvimento](https://pt.wordpress.org/plugins/shortlinks/#developers)

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

## Descrição

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.

## Ecrãs

[⌊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

## Instalação

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

## Avaliações

Este plugin não tem avaliações.

## Contribuidores e programadores

“Shortlinks” é software de código aberto. As seguintes pessoas contribuíram para
este plugin:

Contribuidores

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

[Traduza o “Shortlinks” para o seu idioma.](https://translate.wordpress.org/projects/wp-plugins/shortlinks)

### Interessado no desenvolvimento?

[Consulte o código](https://plugins.trac.wordpress.org/browser/shortlinks/), consulte
o [repositório SVN](https://plugins.svn.wordpress.org/shortlinks/), ou subscreva
o [registo de alterações](https://plugins.trac.wordpress.org/log/shortlinks/) por
[RSS](https://plugins.trac.wordpress.org/log/shortlinks/?limit=100&mode=stop_on_copy&format=rss).

## Registo de alterações

#### 0.1

 * Initial version

## Metadados

 *  Versão **0.1**
 *  Última actualização **Há 16 anos**
 *  Instalações activas **10+**
 *  Versão do WordPress ** 3 ou superior **
 *  Testado até **3**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/shortlinks/)
 * Etiquetas
 * [category](https://pt.wordpress.org/plugins/tags/category/)[page](https://pt.wordpress.org/plugins/tags/page/)
   [pages](https://pt.wordpress.org/plugins/tags/pages/)[post](https://pt.wordpress.org/plugins/tags/post/)
   [posts](https://pt.wordpress.org/plugins/tags/posts/)
 *  [Visualização avançada](https://pt.wordpress.org/plugins/shortlinks/advanced/)

## Classificações

 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/)

## Contribuidores

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

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/shortlinks/)

## Doar

Gostaria de apoiar o desenvolvimento deste plugin?

 [ Fazer donativo para o 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)