<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Automatically generate your blog URL in WordPress posts</title>
	<atom:link href="http://www.theblog.ca/blog-url-shortcodes/feed" rel="self" type="application/rss+xml" />
	<link>http://www.theblog.ca/blog-url-shortcodes</link>
	<description>Useful tips on Canada, cell phones, banking, technology, WordPress, PHP and more</description>
	<lastBuildDate>Fri, 10 Feb 2012 05:51:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Micki</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-17986</link>
		<dc:creator>Micki</dc:creator>
		<pubDate>Sat, 07 Jan 2012 13:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-17986</guid>
		<description>Hi,

I’ve just found and started to use the plug-in. It’s mostly working nicely and really helps out when deploying a site to a live location.

I however have one issue: When changing to short codes I cannot get the pictures to appear in the visual editor.  Everything works fine when you view the page but in the visual editor I just get a broken link icon instead of the picture.

Does anyone have any insight into this?

(I’m using WordPress 3.2.1)

&lt;strong&gt;Reply from Peter: I don&#039;t know of an easy solution to that, but perhaps someone else can share their findings!&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I’ve just found and started to use the plug-in. It’s mostly working nicely and really helps out when deploying a site to a live location.</p>
<p>I however have one issue: When changing to short codes I cannot get the pictures to appear in the visual editor.  Everything works fine when you view the page but in the visual editor I just get a broken link icon instead of the picture.</p>
<p>Does anyone have any insight into this?</p>
<p>(I’m using WordPress 3.2.1)</p>
<p><strong>Reply from Peter: I don&#8217;t know of an easy solution to that, but perhaps someone else can share their findings!</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dee</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-17159</link>
		<dc:creator>Dee</dc:creator>
		<pubDate>Mon, 21 Nov 2011 17:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-17159</guid>
		<description>Hi Peter, actually your shortocde plugin works PERFECTLY for what I need it for.  I tested it with my existing content generator plugin using the code I mentioned above along with your shortcode inside the URL.  And it generated the exact &quot;same post URL&quot; once newly generated... 

&lt;a href= &quot;[posturl]&quot;&gt;{KEYWORD}&lt;/a&gt;

...now turned the new post with my chosen keyword to

&lt;a href= &quot;[posturl]&quot;&gt;Test Post Code&lt;/a&gt;  

...and on my actual blog the keyword now has an internal permalink structure linking to its own post.

Thanks for this great shortcode!</description>
		<content:encoded><![CDATA[<p>Hi Peter, actually your shortocde plugin works PERFECTLY for what I need it for.  I tested it with my existing content generator plugin using the code I mentioned above along with your shortcode inside the URL.  And it generated the exact &quot;same post URL&quot; once newly generated&#8230; </p>
<p>&lt;a href= &quot;[posturl]&quot;&gt;{KEYWORD}&lt;/a&gt;</p>
<p>&#8230;now turned the new post with my chosen keyword to</p>
<p>&lt;a href= &quot;[posturl]&quot;&gt;Test Post Code&lt;/a&gt;  </p>
<p>&#8230;and on my actual blog the keyword now has an internal permalink structure linking to its own post.</p>
<p>Thanks for this great shortcode!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dee</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-17158</link>
		<dc:creator>Dee</dc:creator>
		<pubDate>Mon, 21 Nov 2011 16:59:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-17158</guid>
		<description>Hi Peter,

Is it possible to use your shortcode plugin to auto generate the NEW post URL vs having to put in an ID# for some other random post?  For example, I use CPMage by Greg Jacobs. It&#039;s a plugin that generates articles from various directories, etc... and i use their keyword tag to generate the post and the content {KEYWORD}.  Is it possible to use your code to ensure that when a NEW post is generated it will know to pull the URL of that NEW POST?  Here&#039;s the use of your code, and wondering if it would work for my needs?  See below:

&lt;a href= &quot;[posturl]&quot;&gt;{KEYWORD}&lt;/a&gt;

&lt;strong&gt;Reply from Peter: I&#039;m not sure if I completely understand the use case, but I&#039;m guessing that my plugin is not what you are looking for. The &quot;posturl&quot; shortcode as implemented is only for the article in which it is placed. You&#039;d have to write your own custom logic to have it based on anything other than the current post.&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Is it possible to use your shortcode plugin to auto generate the NEW post URL vs having to put in an ID# for some other random post?  For example, I use CPMage by Greg Jacobs. It&#8217;s a plugin that generates articles from various directories, etc&#8230; and i use their keyword tag to generate the post and the content {KEYWORD}.  Is it possible to use your code to ensure that when a NEW post is generated it will know to pull the URL of that NEW POST?  Here&#8217;s the use of your code, and wondering if it would work for my needs?  See below:</p>
<p>&lt;a href= &quot;[posturl]&quot;&gt;{KEYWORD}&lt;/a&gt;</p>
<p><strong>Reply from Peter: I&#8217;m not sure if I completely understand the use case, but I&#8217;m guessing that my plugin is not what you are looking for. The &#8220;posturl&#8221; shortcode as implemented is only for the article in which it is placed. You&#8217;d have to write your own custom logic to have it based on anything other than the current post.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-16323</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 27 Jul 2011 21:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-16323</guid>
		<description>Helpful plugin, Peter. Thanks! I should point out that although WP&#039;s default uploads directory is wp-content/uploads, the plugin doesn&#039;t know that; at least it didn&#039;t work that way for me... I had to manually enter wp-content/uploads in Media Settings in order for the &#039;uploads&#039; shortcode to work. Other than that, it&#039;s great.

&lt;strong&gt;Reply from Peter: Thanks for pointing that out. The plugin has a setting for that to be hard-coded near the bottom of the file, but I should probably have a smarter automatic fallback in a subsequent plugin release.&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Helpful plugin, Peter. Thanks! I should point out that although WP&#8217;s default uploads directory is wp-content/uploads, the plugin doesn&#8217;t know that; at least it didn&#8217;t work that way for me&#8230; I had to manually enter wp-content/uploads in Media Settings in order for the &#8216;uploads&#8217; shortcode to work. Other than that, it&#8217;s great.</p>
<p><strong>Reply from Peter: Thanks for pointing that out. The plugin has a setting for that to be hard-coded near the bottom of the file, but I should probably have a smarter automatic fallback in a subsequent plugin release.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-15532</link>
		<dc:creator>A</dc:creator>
		<pubDate>Sun, 06 Mar 2011 08:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-15532</guid>
		<description>I have a question about the templateurl shortcode: Do you use the template_url or stylesheet_directory? Because those are two different things and if I&#039;m using a child theme, it&#039;ll call the *parent* theme instead. Might be better if you had a stylesheet_directory shortcode as well. 

Also, hope you can check if this is compatible with WP 3.1. Thank you. :)

&lt;strong&gt;Reply from Peter: Thanks for the feedback. It is compatible with WordPress 3.1.  It uses &lt;em&gt;get_bloginfo( &#039;template_url&#039; )&lt;/em&gt; (which you can change near the top of the plugin file). However, you are right that I should add [childtemplateurl] (and have that output stylesheet_directory) as well. I&#039;ve now released that with version 0.3.&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>I have a question about the templateurl shortcode: Do you use the template_url or stylesheet_directory? Because those are two different things and if I&#8217;m using a child theme, it&#8217;ll call the *parent* theme instead. Might be better if you had a stylesheet_directory shortcode as well. </p>
<p>Also, hope you can check if this is compatible with WP 3.1. Thank you. <img src='http://www.theblog.ca/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Reply from Peter: Thanks for the feedback. It is compatible with WordPress 3.1.  It uses <em>get_bloginfo( &#8216;template_url&#8217; )</em> (which you can change near the top of the plugin file). However, you are right that I should add [childtemplateurl] (and have that output stylesheet_directory) as well. I&#8217;ve now released that with version 0.3.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agnes</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-14531</link>
		<dc:creator>Agnes</dc:creator>
		<pubDate>Thu, 14 Oct 2010 06:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-14531</guid>
		<description>This is great Peter, Am using in every web.
I would love a [template url] shortcode added though
Thks
Agnes

&lt;strong&gt;Reply from Peter: I just released version 0.2 with the shortcode [templateurl]&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>This is great Peter, Am using in every web.<br />
I would love a [template url] shortcode added though<br />
Thks<br />
Agnes</p>
<p><strong>Reply from Peter: I just released version 0.2 with the shortcode [templateurl]</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agnes</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-14507</link>
		<dc:creator>Agnes</dc:creator>
		<pubDate>Fri, 08 Oct 2010 15:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-14507</guid>
		<description>Thanks Peter, the plugin is very useful and I found nothing else to fill that function.
I am using it mostly to insert images into the pages.
One frustration though (unless it is me doing sthg wrong?):
It has to be done in HTML mode - I can do, but the clients when they want to update will have trouble. 
Is there any way to use through the WYSYWYG editor? (am using tinymce advanced editor)
Thks
Agnes

PS: more preciserl, for example when I insert an image or other item from media library, I need to change in HTML to avcoid the absolute path reference and use shortcodes. Any way to avoid that?

&lt;strong&gt;Reply from Peter: You can use [blogurl] in the TinyMCE view. Also, in the image properties box, you can also use [blogurl] in the &quot;Link URL&quot; field, as well as in the &quot;Source&quot; field in the &quot;Advanced Settings&quot; tab. I haven&#039;t looked into how to affect the default-generated URLs nor to create a completely new button and new dialog / properties box behavior.&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Thanks Peter, the plugin is very useful and I found nothing else to fill that function.<br />
I am using it mostly to insert images into the pages.<br />
One frustration though (unless it is me doing sthg wrong?):<br />
It has to be done in HTML mode &#8211; I can do, but the clients when they want to update will have trouble.<br />
Is there any way to use through the WYSYWYG editor? (am using tinymce advanced editor)<br />
Thks<br />
Agnes</p>
<p>PS: more preciserl, for example when I insert an image or other item from media library, I need to change in HTML to avcoid the absolute path reference and use shortcodes. Any way to avoid that?</p>
<p><strong>Reply from Peter: You can use [blogurl] in the TinyMCE view. Also, in the image properties box, you can also use [blogurl] in the &#8220;Link URL&#8221; field, as well as in the &#8220;Source&#8221; field in the &#8220;Advanced Settings&#8221; tab. I haven&#8217;t looked into how to affect the default-generated URLs nor to create a completely new button and new dialog / properties box behavior.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agnes</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-14145</link>
		<dc:creator>Agnes</dc:creator>
		<pubDate>Tue, 31 Aug 2010 14:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-14145</guid>
		<description>Excellent!
I was trying (and havent succedeed) to find a suitable exec-php (one that would not force to turn off visual editor), just to call the &lt;?php bloginfo(&#039;template_url&#039;)?&gt; function to call images. Now, I dont need more, I can use your [blogurl].
On top of the blogurl upload, I think a blogurl template may be useful. 
Thanks
Agnes</description>
		<content:encoded><![CDATA[<p>Excellent!<br />
I was trying (and havent succedeed) to find a suitable exec-php (one that would not force to turn off visual editor), just to call the &lt;?php bloginfo(&#8216;template_url&#8217;)?&gt; function to call images. Now, I dont need more, I can use your [blogurl].<br />
On top of the blogurl upload, I think a blogurl template may be useful.<br />
Thanks<br />
Agnes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Sudds</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-12463</link>
		<dc:creator>Nathan Sudds</dc:creator>
		<pubDate>Wed, 17 Feb 2010 04:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-12463</guid>
		<description>Hi Peter, 

Great plugin --- have you made any progress with updating the plugin to support using this with Wordpress in a subdirectory as mentioned by Mario above?

If it would be possible to provide more details on what to edit in the plugin code that would be great --- I think your plugin has some great potential for people who install Wordpress in subdirectory for development and then use the Move your wordpress directory steps (http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory ) to make it live at the root url of the site.   This keeps any hardcoded links from being broken when the permalink structure changes for launch

Thanks again

Nathan</description>
		<content:encoded><![CDATA[<p>Hi Peter, </p>
<p>Great plugin &#8212; have you made any progress with updating the plugin to support using this with WordPress in a subdirectory as mentioned by Mario above?</p>
<p>If it would be possible to provide more details on what to edit in the plugin code that would be great &#8212; I think your plugin has some great potential for people who install WordPress in subdirectory for development and then use the Move your wordpress directory steps (http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory ) to make it live at the root url of the site.   This keeps any hardcoded links from being broken when the permalink structure changes for launch</p>
<p>Thanks again</p>
<p>Nathan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Sudds</title>
		<link>http://www.theblog.ca/blog-url-shortcodes/comment-page-1#comment-12464</link>
		<dc:creator>Nathan Sudds</dc:creator>
		<pubDate>Wed, 17 Feb 2010 03:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=375#comment-12464</guid>
		<description>Maybe it was easier than I expected, there were a few references to siteurl in the plugin code --- just wondering if I need to change more than one.  I changed the one in the first line: $blogurl_settings[&#039;siteurl&#039;] = get_option(&#039;siteurl&#039;);

TO 

$blogurl_settings[&#039;siteurl&#039;] = get_option(&#039;home&#039;);

That works for the [blogurl]  do I need to change anything for uploads?

&lt;strong&gt;Reply from Peter: I&#039;ve released an updated version that will differentiate [blogurl] from [blogurl wordpress]&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Maybe it was easier than I expected, there were a few references to siteurl in the plugin code &#8212; just wondering if I need to change more than one.  I changed the one in the first line: $blogurl_settings['siteurl'] = get_option(&#8216;siteurl&#8217;);</p>
<p>TO </p>
<p>$blogurl_settings['siteurl'] = get_option(&#8216;home&#8217;);</p>
<p>That works for the [blogurl]  do I need to change anything for uploads?</p>
<p><strong>Reply from Peter: I&#8217;ve released an updated version that will differentiate [blogurl] from [blogurl wordpress]</strong></p>
]]></content:encoded>
	</item>
</channel>
</rss>

