Title: URL ShortCodes
Author: cgarvey
Published: <strong>2010 年 3 月 4 日</strong>
Last modified: 2018 年 12 月 8 日

---

搜索插件

![](https://ps.w.org/url-shortcodes/assets/banner-772x250.jpg?rev=756935)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# URL ShortCodes

 作者：[cgarvey](https://profiles.wordpress.org/cgarvey/)

[下载](https://downloads.wordpress.org/plugin/url-shortcodes.rel_1-02.zip)

 * [详情](https://cn.wordpress.org/plugins/url-shortcodes/#description)
 * [评价](https://cn.wordpress.org/plugins/url-shortcodes/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/url-shortcodes/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/url-shortcodes/#developers)

 [支持](https://wordpress.org/support/plugin/url-shortcodes/)

## 描述

Sometimes you want to put the base URL (that of the blog, or that of the active 
template) in your content editor. Times when the template customising isn’t quite
flexible enough.
 With this plugin you can use [url_base] to output the base URL
of the blog (as set in your Settings). Or, you can use [url_template] to output 
the URL of the active template.

For example `<img src="[url_base]/test.png />` in your editor might output `<img
src="http://localhost/wordpress/test.png" />` (if http://localhost/wordpress is 
what you have configured as your blog URL in Settings).

The supported short codes are as follows:
 * [url_base] – the configured blog URL(
set in Settings). E.g. http://localhost/wordpress * [url_template] – the URL of 
the active template. E.g. http://localhost/wordpress/wp-content/themes/mytheme1

### License

This plugin uses the GPLv3 license.

## 屏幕截图

 * [[
 * Sample short code use.
 * [[
 * Rendered output.

## 安装

There are 2 ways of installation. If your setup supports it, you can search for 
the plugin, by name, within your WordPress control panel and install it from there.

Alternatively, you download the .zip file, unzip it, and copy the resultant `url_short_codes`
folder to the `wp-content/plugins/` folder of your WordPress instaltion folder.

## 常见问题

There are no FAQs at this time. Feel free to suggest some!

## 评价

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

### 󠀁[Simple and userful](https://wordpress.org/support/topic/simple-and-userful-2/)󠁿

 [clebersleite](https://profiles.wordpress.org/clebersleite/) 2017 年 2 月 8 日

Tks for this simple solution \o

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/url-shortcodes/reviews/)

## 贡献者及开发者

「URL ShortCodes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「URL ShortCodes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/url-shortcodes)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/url-shortcodes/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/url-shortcodes/)，或通过[RSS](https://plugins.trac.wordpress.org/log/url-shortcodes/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/url-shortcodes/)。

## 更新日志

 * Version 1.2 – Confirmed suitability with WP 4.0.
 * Version 1.1 – Added graphics, and confirmed suitability with WP 3.6x.
 * Version 1.0 – Initial release.

## 额外信息

 *  版本 **1.2**
 *  最后更新：**8 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 2.9.0 或更高版本 **
 *  已测试的最高版本为 **5.0.25**
 *  语言
 * [English (US)](https://wordpress.org/plugins/url-shortcodes/)
 * 标签
 * [cgarvey](https://cn.wordpress.org/plugins/tags/cgarvey/)[short code](https://cn.wordpress.org/plugins/tags/short-code/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)[stylesheet](https://cn.wordpress.org/plugins/tags/stylesheet/)
   [template](https://cn.wordpress.org/plugins/tags/template/)
 *  [高级视图](https://cn.wordpress.org/plugins/url-shortcodes/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/url-shortcodes/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/url-shortcodes/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/url-shortcodes/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/url-shortcodes/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/url-shortcodes/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/url-shortcodes/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/url-shortcodes/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6137112)