BACK TO DIRECTORY

URL ShortCodes

by cgarvey

5.0
(1 ratings)

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.

Screenshots

Sample short code use.

Sample short code use.

Rendered output.

Rendered output.

Plugin Details

Active Installs
2K+
Total Downloads
14,242
Version
1.2
Requires WP
2.9.0
Requires PHP
Tested Up To
5.0.27
Added
2010-03-04
Last Updated
2018-12-08 12:33am GMT

Ratings

5
1
4
0
3
0
2
0
1
0