跳到内容

URL ShortCodes

v1.2

cgarvey · 2010年3月4日 上架

URL ShortCodes plugin adds support for a basic short codes to use in your post/page editor that produce correct absolute URLs.

正在使用
2,000+
评分
5.0 / 5
累计下载
1.5 万
最近更新
2018年12月8日
1 条评价需要 WordPress 2.9.0+已测试到 5.0.32

贡献者

截图

Sample short code use.
Sample short code use.
Rendered output.
Rendered output.

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums