Title: Peter&#8217;s Blog URL Shortcodes
Author: Peter
Published: <strong>November 20, 2008</strong>
Last modified: November 19, 2015

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Peter’s Blog URL Shortcodes

 By [Peter](https://profiles.wordpress.org/pkthree/)

[Download](https://downloads.wordpress.org/plugin/peters-blog-url-shortcodes.zip)

 * [Details](https://wordpress.org/plugins/peters-blog-url-shortcodes/#description)
 * [Reviews](https://wordpress.org/plugins/peters-blog-url-shortcodes/#reviews)
 *  [Installation](https://wordpress.org/plugins/peters-blog-url-shortcodes/#installation)
 * [Development](https://wordpress.org/plugins/peters-blog-url-shortcodes/#developers)

 [Support](https://wordpress.org/support/plugin/peters-blog-url-shortcodes/)

## Description

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.

#### Features

 * [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`
 * [blogurl uploads] will generate `http://www.yoursite.com/wp-content/uploads/`
 * [blogurl uploads noslash] will generate `http://www.yoursite.com/wp-content/uploads`
 * [posturl id=375] will generate the correct permalink for the post with an ID 
   of 375; for example, <a href=”[posturl id=375]”>post about this plugin</a> would
   generate [post about this plugin](http://www.theblog.ca/blog-url-shortcodes)
 * [templateurl] will generate the URL to your parent theme’s root
 * [childtemplateurl] will generate the URL to your child theme’s root

#### Requirements

 * WordPress 2.6 or higher

## Installation

Unzip blog_url_shortcodes.php to your WordPress plugins folder. It should work out
of the box, but you can tweak some settings in the plugin file itself if needed.

## FAQ

Please visit the plugin page at http://www.theblog.ca/blog-url-shortcodes with any
questions.

  Installation Instructions

Unzip blog_url_shortcodes.php to your WordPress plugins folder. It should work out
of the box, but you can tweak some settings in the plugin file itself if needed.

## Reviews

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

### 󠀁[Simple and easy to use](https://wordpress.org/support/topic/simple-and-easy-to-use-122/)󠁿

 [Nikodemsky](https://profiles.wordpress.org/nikodemsky/) September 3, 2016

Great job on this one, was looking some time for similiar plugin. Hope you keep 
it updated.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/peters-blog-url-shortcodes/reviews/)

## Contributors & Developers

“Peter’s Blog URL Shortcodes” is open source software. The following people have
contributed to this plugin.

Contributors

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

[Translate “Peter’s Blog URL Shortcodes” into your language.](https://translate.wordpress.org/projects/wp-plugins/peters-blog-url-shortcodes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/peters-blog-url-shortcodes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/peters-blog-url-shortcodes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/peters-blog-url-shortcodes/)
by [RSS](https://plugins.trac.wordpress.org/log/peters-blog-url-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.4**
 *  Last updated **11 years ago**
 *  Active installations **300+**
 *  WordPress version ** 2.6 or higher **
 *  Tested up to **4.8.28**
 * Tags
 * [admin](https://wordpress.org/plugins/tags/admin/)[post](https://wordpress.org/plugins/tags/post/)
   [shortcode](https://wordpress.org/plugins/tags/shortcode/)[url](https://wordpress.org/plugins/tags/url/)
 *  [Advanced View](https://wordpress.org/plugins/peters-blog-url-shortcodes/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/peters-blog-url-shortcodes/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/peters-blog-url-shortcodes/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/peters-blog-url-shortcodes/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/peters-blog-url-shortcodes/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/peters-blog-url-shortcodes/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/peters-blog-url-shortcodes/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/peters-blog-url-shortcodes/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.theblog.ca)