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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/shortlinks/#description)
 * [评价](https://cn.wordpress.org/plugins/shortlinks/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/shortlinks/#installation)
 * [开发进展](https://cn.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 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

## 安装

 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 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3 或更高版本 **
 *  已测试的最高版本为 **3**
 *  语言
 * [English (US)](https://wordpress.org/plugins/shortlinks/)
 * 标签
 * [category](https://cn.wordpress.org/plugins/tags/category/)[page](https://cn.wordpress.org/plugins/tags/page/)
   [pages](https://cn.wordpress.org/plugins/tags/pages/)[post](https://cn.wordpress.org/plugins/tags/post/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)
 *  [高级视图](https://cn.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)