URL ShortCodes plugin adds support for a basic short codes to use in your post/page editor that produce correct absolute URLs.
As of April 2026, URL ShortCodes is a WordPress cgarvey plugin with 2.0K+ active installations and a 5/5 rating from 1 reviews. It has been downloaded 12K+ times in total. Requires WordPress 2.9.0+ and PHP false+. Available on WordPress.org since 2010. Last updated 7 years ago — may have compatibility concerns. Downloads are up 7% this week.
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://localho…
Tks for this simple solution \o
Tks for this simple solution \o
| WordPress | 2.9.0+ requiredTested up to 5.0.25 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.