<?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: Easy Shortcode Permalinks</title>
	<atom:link href="http://digwp.com/2009/09/easy-shortcode-permalinks/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com/2009/09/easy-shortcode-permalinks/</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Tue, 15 May 2012 08:36:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Keri Allred</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-2387</link>
		<dc:creator>Keri Allred</dc:creator>
		<pubDate>Wed, 18 Nov 2009 19:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-2387</guid>
		<description>Thanks for explaining the difference between codes and your examples.  Very informative.</description>
		<content:encoded><![CDATA[<p>Thanks for explaining the difference between codes and your examples.  Very informative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ellejohara</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-1802</link>
		<dc:creator>ellejohara</dc:creator>
		<pubDate>Tue, 29 Sep 2009 17:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-1802</guid>
		<description>This is a brilliant little piece of code. Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>This is a brilliant little piece of code. Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nico</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-1799</link>
		<dc:creator>nico</dc:creator>
		<pubDate>Tue, 29 Sep 2009 12:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-1799</guid>
		<description>By request i mean a query, so if this function make a query for each link, it an lead soon to a large number of queries. did you try to test it with &lt;code&gt;$wpdb-&gt;num_queries&lt;/code&gt; ?</description>
		<content:encoded><![CDATA[<p>By request i mean a query, so if this function make a query for each link, it an lead soon to a large number of queries. did you try to test it with <code>$wpdb-&gt;num_queries</code> ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trozdol</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-1798</link>
		<dc:creator>Trozdol</dc:creator>
		<pubDate>Tue, 29 Sep 2009 09:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-1798</guid>
		<description>Is there a solution to a similar problem with images and/or called in files? Right now I&#039;m working on a theme (in a test location on a sub directory) and I want to be able to link in my header to a .js file without needing to go back and change that. I&#039;m having the same prob with &#039;s too. 

I hope this question wasn&#039;t too far off topic.</description>
		<content:encoded><![CDATA[<p>Is there a solution to a similar problem with images and/or called in files? Right now I&#8217;m working on a theme (in a test location on a sub directory) and I want to be able to link in my header to a .js file without needing to go back and change that. I&#8217;m having the same prob with &#8216;s too. </p>
<p>I hope this question wasn&#8217;t too far off topic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Groves</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-1797</link>
		<dc:creator>Daniel Groves</dc:creator>
		<pubDate>Tue, 29 Sep 2009 09:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-1797</guid>
		<description>Thats a cool idea, I like that.</description>
		<content:encoded><![CDATA[<p>Thats a cool idea, I like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TeMC</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-1795</link>
		<dc:creator>TeMC</dc:creator>
		<pubDate>Tue, 29 Sep 2009 09:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-1795</guid>
		<description>I could be terribly wrong, but I&#039;m pretty sure it&#039;s not any SQL request at all.

But it depends on what you mean by a &quot;SQL request&quot;, basicly every page you view, any action you do whatshowever in WordPress grabs content of some database.

This thing simply checks the table of all posts, finds that id, and then outputs the URL the way you have permalinks set up.

So whenever the page-slug changes, or whenever you change permalink structure for whatever reason, your links will stay functional :)</description>
		<content:encoded><![CDATA[<p>I could be terribly wrong, but I&#8217;m pretty sure it&#8217;s not any SQL request at all.</p>
<p>But it depends on what you mean by a &#8220;SQL request&#8221;, basicly every page you view, any action you do whatshowever in WordPress grabs content of some database.</p>
<p>This thing simply checks the table of all posts, finds that id, and then outputs the URL the way you have permalinks set up.</p>
<p>So whenever the page-slug changes, or whenever you change permalink structure for whatever reason, your links will stay functional :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-1794</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 29 Sep 2009 08:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-1794</guid>
		<description>The functions.php file in your theme should be the best place for this.</description>
		<content:encoded><![CDATA[<p>The functions.php file in your theme should be the best place for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nico</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-1793</link>
		<dc:creator>nico</dc:creator>
		<pubDate>Tue, 29 Sep 2009 08:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-1793</guid>
		<description>Does it mean an SQL request by link ?</description>
		<content:encoded><![CDATA[<p>Does it mean an SQL request by link ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik SÃ¸gaard</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-1792</link>
		<dc:creator>Fredrik SÃ¸gaard</dc:creator>
		<pubDate>Tue, 29 Sep 2009 06:39:32 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-1792</guid>
		<description>This may be a dumb question, but where do I write the php code?</description>
		<content:encoded><![CDATA[<p>This may be a dumb question, but where do I write the php code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viper007Bond</title>
		<link>http://digwp.com/2009/09/easy-shortcode-permalinks/#comment-1790</link>
		<dc:creator>Viper007Bond</dc:creator>
		<pubDate>Tue, 29 Sep 2009 03:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=736#comment-1790</guid>
		<description>It&#039;s best practice to wrap the &lt;code&gt;$url&lt;/code&gt; in &lt;code&gt;esc_attr()&lt;/code&gt;, like so:

&lt;code&gt;return &quot;&lt;a href=&#039;&quot; . esc_attr($url) . &quot;&#039;&gt;$text&lt;/a&gt;&quot;;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>It&#8217;s best practice to wrap the <code>$url</code> in <code>esc_attr()</code>, like so:</p>
<p><code>return "&lt;a href='" . esc_attr($url) . "'&gt;$text&lt;/a&gt;";</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

