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)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/cc-link-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/cc-link-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/cc-link-shortcode/#installation)
 * [开发进展](https://cn.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 或更高版本 **
 *  已测试的最高版本为 **5.9.13**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/cc-link-shortcode/)
 * 标签
 * [a](https://cn.wordpress.org/plugins/tags/a/)[href](https://cn.wordpress.org/plugins/tags/href/)
   [link](https://cn.wordpress.org/plugins/tags/link/)[permalink](https://cn.wordpress.org/plugins/tags/permalink/)
   [url](https://cn.wordpress.org/plugins/tags/url/)
 *  [高级视图](https://cn.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/)