Title: Shortlinks
Author: aizatto
Published: <strong>2010 年 4 月 15 日</strong>
Last modified: 2010 年 4 月 15 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Shortlinks

 由 [aizatto](https://profiles.wordpress.org/aizatto/) 開發

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

 * [詳細資料](https://tw.wordpress.org/plugins/shortlinks/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/shortlinks/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/shortlinks/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/shortlinks/#developers)

 [技術支援](https://wordpress.org/support/plugin/shortlinks/)

## 外掛說明

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.

## 螢幕擷圖

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

## 安裝方式

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

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Shortlinks〉的開發相關工作。

參與者

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

[將〈Shortlinks〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/shortlinks)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/shortlinks/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/shortlinks/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/shortlinks/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/shortlinks/)。

## 變更記錄

#### 0.1

 * Initial version

## 中繼資料

 *  版本 **0.1**
 *  最後更新 **16 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 3 或更新版本 **
 *  已測試相容的 WordPress 版本 **3**
 *  語言
 * [English (US)](https://wordpress.org/plugins/shortlinks/)
 * 標籤:
 * [category](https://tw.wordpress.org/plugins/tags/category/)[page](https://tw.wordpress.org/plugins/tags/page/)
   [pages](https://tw.wordpress.org/plugins/tags/pages/)[post](https://tw.wordpress.org/plugins/tags/post/)
   [posts](https://tw.wordpress.org/plugins/tags/posts/)
 *  [進階檢視](https://tw.wordpress.org/plugins/shortlinks/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/shortlinks/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/shortlinks/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/shortlinks/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](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)