Title: YOURLS Link Creator
Author: Andrew Norcross
Published: <strong>2012 年 10 月 11 日</strong>
Last modified: 2016 年 2 月 25 日

---

搜尋外掛

![](https://ps.w.org/yourls-link-creator/assets/banner-772x250.png?rev=1080386)

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

![](https://ps.w.org/yourls-link-creator/assets/icon-256x256.png?rev=1081567)

# YOURLS Link Creator

 由 [Andrew Norcross](https://profiles.wordpress.org/norcross/) 開發

[下載](https://downloads.wordpress.org/plugin/yourls-link-creator.2.1.1.zip)

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

 [技術支援](https://wordpress.org/support/plugin/yourls-link-creator/)

## 外掛說明

Creates a YOURLS generated shortlink on demand or when saving posts.

Features:

 * Optional custom keyword for link creation.
 * Will retrieve existing URL if one has already been created.
 * Click count appears on post menu
 * Available for standard posts and custom post types.
 * Optional filter for wp_shortlink
 * Built in cron job will fetch updated click counts every hour.

## 螢幕擷圖

[⌊Metabox to create YOURLS link with optional keyword field⌉⌊Metabox to create YOURLS
link with optional keyword field⌉[

Metabox to create YOURLS link with optional keyword field

[⌊Example of a post with a created link and click count⌉⌊Example of a post with 
a created link and click count⌉[

Example of a post with a created link and click count

[⌊Post column displaying click count⌉⌊Post column displaying click count⌉[

Post column displaying click count

[⌊Settings page⌉⌊Settings page⌉[

Settings page

## 安裝方式

This section describes how to install the plugin and get it working.

 1. Upload `yourls-link-creator` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Navigate to the “YOURLS Settings” option in the Settings Menu.
 4. Enter your YOURLS custom URL and API key
 5. Enjoy!

## 常見問題集

  What’s this all about?

This plugin creates a shortlink (stored in the post meta table) for each post that
can be used in sharing buttons, etc.

  What is YOURLS?

YOURLS is a self-hosted PHP based application that allows you to make your own custom
shortlinks, similar to bit.ly and j.mp. [Learn more about it here](http://yourls.org/)

  How do I use the template tag?

Place the following code in your theme file (usually single.php) `<?php yourls_display_box();?
>`

  The delete function doesn’t remove the short URL from my YOURLS installation

This is a limitation with the YOURLS API, as there is not a method yet to delete
a link. The delete function has been added to the plugin to allow users to get the
updated URL that they may have changed in the YOURLS admin panel

## 使用者評論

![](https://secure.gravatar.com/avatar/c1e9ecd5b33498961b8145e32ecf5169298d56c458db895f35bc534d0b470706?
s=60&d=retro&r=g)

### 󠀁[Works great with no problems.](https://wordpress.org/support/topic/works-great-with-no-problems-2/)󠁿

 [absoblogginlutely](https://profiles.wordpress.org/absoblogginlutely/) 2018 年 
8 月 7 日

Works fine on WordPress 4.9.8. Surprisingly I've not had anyone comment on my unusual
shortened url as it's not a common domain and not the same as my blog name but people
click on it!

![](https://secure.gravatar.com/avatar/40d3265881e31111d0c40c83ba6b59bae901fe440737336e8a75c3d61c91dae2?
s=60&d=retro&r=g)

### 󠀁[Flawless and works perfectly](https://wordpress.org/support/topic/flawless-and-works-perfectly/)󠁿

 [neotrope](https://profiles.wordpress.org/neotrope/) 2018 年 5 月 8 日

Still works after couple of years since switching on with YOURLS in May of 2016.
As of today still works with PHP 7.2 and WP Version 4.9.5.

![](https://secure.gravatar.com/avatar/dd377478160737ccce554d661a5a932e7521dddfb21160157eae7eac6e3ea31b?
s=60&d=retro&r=g)

### 󠀁[Just works](https://wordpress.org/support/topic/just-works-389/)󠁿

 [dhuyvetter](https://profiles.wordpress.org/dhuyvetter/) 2017 年 10 月 23 日

Simple plugin that just works. Nice to have posts automagically create Yourls short
links.

 [ 閱讀全部 14 則使用者評論 ](https://wordpress.org/support/plugin/yourls-link-creator/reviews/)

## 參與者及開發者

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

參與者

 *   [ Andrew Norcross ](https://profiles.wordpress.org/norcross/)

[將〈YOURLS Link Creator〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/yourls-link-creator)

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

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

## 變更記錄

#### 2.1.1 – 02/25/2016

 * added `yourls_run_cron_jobs` filter to allow users to disable the cron job

#### 2.1.0 – 08/06/2015

 * added `yourls_after_url_save` action to post transitioning from future to publish(
   scheduled posts)

#### 2.0.9 – 08/03/2015

 * added `yourls_after_url_save` action to fire when the custom URL is generated
   and stored

#### 2.0.8 – 06/19/2015

 * added ability to set custom keyword prior to save
 * added `yourls_user_cap` filter for modifying default user capability
 * added `yourls_settings_cap` filter for modifying settings page capability
 * added `yourls_keyword_filter` filter for changing default keyword sanitation
 * added new legacy file to pick up old functions from Ozh’s plugin
 * added GitHub plugin updater support

#### 2.0.7 – 02/14/2015

 * fixed bug with post row actions missing on drafts
 * updated cron job scheduling

#### 2.0.6 – 02/13/2015

 * added scheduled posts to available post status
 * added `yourls_post_status` filter to modify these (although not sure why you’d
   want to)
 * added function to create a link when a post is moved from ‘scheduled’ to ‘publish’
   if one doesn’t exist (requires setting update)
 * added API status check sidebox to the settings page

#### 2.0.5 – 02/10/2015

 * fixed API URL construction to account for installs in a subfolder
 * added filter `yourls_strip_urls` to allow trailing slash removal (default is 
   false)

#### 2.0.4 – 02/09/2015

 * fixed API query args getting malformed before call
 * fixed content title sanitation encoding
 * forced POST method for API call and removed setting
 * added bulk import function for existing data
 * added `yourls_display_box` template tag to display front end box
 * added `get_yourls_shortlink` to return or echo the shortlink
 * added `wp_ozh_yourls_raw_url` to match previous plugin from Ozh

#### 2.0.3 – 02/05/2015

 * added API key field show / hide to (hopefully) account for Chrome being aggressive
   on the field
 * removed ‘future’ from array of post types to create items on save

#### 2.0.2 – 02/02/2015

 * fixed bug with creating link on post save

#### 2.0.1 – 02/01/2015

 * added post title submission to API call
 * added option for using POST method instead of GET method to address API permission
   issues
 * nonce ALL THE THINGS

#### 2.0.0 – 02/01/2015

 * COMPLETELY REFACTORED
 * updated UI to match current WP setup
 * rewrote javascript for better security
 * added post action row items for creating and updating counts
 * added check for possible 404 return on YOURLS server
 * a whole lot more

#### 1.09 – 02/21/2013

 * bugfixes related to certain hosting configurations
 * minor JS cleanup

#### 1.08 – 12/31/2012

 * change to allow scheduled posts to process URL call. props @ethitter

#### 1.07 – 12/24/2012

 * better sanitizing of personal YOURLS URL
 * code cleanup

#### 1.06 – 12/18/2012

 * included template tag for theme use. (See FAQs for usage)
 * added a ‘delete’ button for single links (See FAQs for details)
 * The YOURLS metabox will not appear until a post has been published.

#### 1.05 – 12/10/2012

 * added a conversion tool from Ozh’s plugin to this one

#### 1.04 – 12/09/2012

 * refactoring the wp_shortlink functionality

#### 1.03 – 12/04/2012

 * Bugfix for post type checking

#### 1.02 – 10/14/2012

 * Option for adding to specific post types
 * delay link creation until status is published
 * internationalization support

#### 1.01

 * Added option to create link on post save
 * code cleanup

#### 1.0

 * First release!

## 中繼資料

 *  版本 **2.1.1**
 *  最後更新 **11 年前**
 *  啟用安裝數 **500+**
 *  WordPress 版本需求 ** 3.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.4.34**
 *  語言
 * [English (US)](https://wordpress.org/plugins/yourls-link-creator/)
 * 標籤:
 * [custom url](https://tw.wordpress.org/plugins/tags/custom-url/)[shortlink](https://tw.wordpress.org/plugins/tags/shortlink/)
   [yourls](https://tw.wordpress.org/plugins/tags/yourls/)
 *  [進階檢視](https://tw.wordpress.org/plugins/yourls-link-creator/advanced/)

## 評分

 4.5 星，滿分為 5 星

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

[撰寫評分](https://wordpress.org/support/plugin/yourls-link-creator/reviews/#new-post)

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

## 參與者

 *   [ Andrew Norcross ](https://profiles.wordpress.org/norcross/)

## 技術支援

最近 2 個月解決的問題:

     總計 1 個問題，已解決 0 個

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

## 贊助

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

 [ 贊助這個外掛 ](https://andrewnorcross.com/donate)