Use shortcodes for blog URLs, post URLs, and template URLs so that your posts always have the correct internal links.
Author: | Peter Keung (profile at wordpress.org) |
WordPress version required: | 2.6 |
WordPress version tested: | 4.8.24 |
Plugin version: | 0.4 |
Added to WordPress repository: | 20-11-2008 |
Last updated: | 19-11-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 2 |
Plugin URI: | http://www.theblog.ca/blog-url-shortcodes |
Total downloads: | 10 422 |
Active installs: | 800+ |
Click to start download |
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
-
[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
FAQ