Use shortcodes for blog URLs, post URLs, and template URLs so that your posts always have the correct internal links.
As of April 2026, Peter’s Blog URL Shortcodes is a WordPress url plugin with 300 active installations and a 5/5 rating from 2 reviews. It has been downloaded 11K+ times in total. Requires WordPress 2.6+ and PHP false+. Available on WordPress.org since 2008. Last updated 10 years ago — may have compatibility concerns. Top alternative: Custom Post Type Permalinks.
Adds shortcodes [blogurl], [posturl], [templateurl], and [childtemplateurl] for WordPress 2.6 and up. Use [blogurl] to generate your site URL. It offers the parameters “slash” and “noslash” (to add a trailing slash; [templateurl] and [childtemplateurl] also support this), as well as “uploads” to produce the URL of the uploads folder and “wordpress” to produce the URL of your WP files. Use [posturl id=3] (replace “3” with a post ID) to generate the permalink for any post.
[blogurl] will generate http://www.yoursite.com/
[blogurl wordpress] will generate the URL to the root of your WordPress files, if they are in a different location than your site root
[blogurl noslash] will generate http://www.yoursite.com
[blogu…
| WordPress | 2.6+ requiredTested up to 4.8.28 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.