Title: CC-Link-Shortcode
Author: Clearcode
Published: <strong>2018 年 2 月 2 日</strong>
Last modified: 2022 年 3 月 16 日

---

搜尋外掛

![](https://ps.w.org/cc-link-shortcode/assets/banner-772x250.png?rev=1814137)

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

![](https://ps.w.org/cc-link-shortcode/assets/icon-256x256.png?rev=1814137)

# CC-Link-Shortcode

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

[下載](https://downloads.wordpress.org/plugin/cc-link-shortcode.zip)

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

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

## 外掛說明

This plugin adds the shortcode `[a]` to replace `<a>` html tag. Its primary function
is to simplify internal linking. Now you don’t need to worry about changing the 
permalinks and correcting the appearance of the permalink in your posts/pages. You
can only paste ID of post/page into the shortcode and the plugin will handle everything
for you. When opening a post/page the shortcode renders the permalinks and titles
of linked posts/pages based on the pasted IDs.

#### Usage

Basic: `[a {post_ID}]` Example: `[a 123]` Returns: `<a href="{post_permalink}">{
post_title}</a>`

Custom link text: `[a {post_ID}]{link}[/a]` Example: `[a 123]Example Post[/a]` Returns:`
<a href="{post_permalink}">Example Post</a>`

External link: `[a {url}]{link}[/a]` Example: `[a http://example.com]Example Link[/
a]` Returns: `<a href="http://example.com">Example Link</a>`

Additional parameters: `[a {post_ID} {param_name}="{param_value}"]` Example: `[a
123 target="_blank"]` Returns: `<a href="{post_permalink}" target="_blank">{post_title}
</a>`

## 安裝方式

#### From your WordPress Dashboard

 1. Go to ‘Plugins > Add New’
 2. Search for ‘CC-Link-Shortcode’
 3. Activate the plugin from the Plugin section in your WordPress Dashboard.

#### From WordPress.org

 1. Download ‘CC-Link-Shortcode’.
 2. Upload the ‘cc-link-shortcode’ directory to your `/wp-content/plugins/` directory
    using your favorite method (ftp, sftp, scp, etc…)
 3. Activate the plugin from the Plugin section in your WordPress Dashboard.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Clearcode ](https://profiles.wordpress.org/clearcodehq/)
 *   [ PiotrPress ](https://profiles.wordpress.org/piotrpress/)

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

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

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

## 變更記錄

#### 1.1.1

_Release date: 16.03.2022_

 * Added PHP 8.0 support.

#### 1.1.0

_Release date: 29.01.2021_

 * Added `url_to_postid` support.

#### 1.0.0

_Release date: 01.02.2018_

 * First stable version of the plugin.

## 中繼資料

 *  版本 **1.1.1**
 *  最後更新 **4 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 4.9.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.9.13**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/cc-link-shortcode/)
 * 標籤:
 * [a](https://tw.wordpress.org/plugins/tags/a/)[href](https://tw.wordpress.org/plugins/tags/href/)
   [link](https://tw.wordpress.org/plugins/tags/link/)[permalink](https://tw.wordpress.org/plugins/tags/permalink/)
   [url](https://tw.wordpress.org/plugins/tags/url/)
 *  [進階檢視](https://tw.wordpress.org/plugins/cc-link-shortcode/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

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

## 參與者

 *   [ Clearcode ](https://profiles.wordpress.org/clearcodehq/)
 *   [ PiotrPress ](https://profiles.wordpress.org/piotrpress/)

## 技術支援

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

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