<?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: Custom URL rewrites in Wordpress — A Getting Started Guide</title>
	<atom:link href="http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/</link>
	<description>Code, Thoughts, Music and Wordpress</description>
	<lastBuildDate>Tue, 09 Mar 2010 13:52:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matty</title>
		<link>http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/comment-page-1/#comment-3438</link>
		<dc:creator>Matty</dc:creator>
		<pubDate>Sun, 24 Jan 2010 09:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://matty.co.za/?p=701#comment-3438</guid>
		<description>@Dan Thanks for your comment, Dan. :)

I don&#039;t think using `init` or `admin-init` makes much of a difference. It means it&#039;ll either run on init only when in the admin area or on init in general. Either way, init happens and the function doesn&#039;t seem very intensive. Using `admin-init` could possibly increase front-end performance though, as the function would not be running on the front-end. Not sure if the performance difference would be noticeable though.

It looks, to me, like it&#039;s a case of 6 of 1 or half a dozen of the other. Using either method, the function will run at the init stage. :)

Thanks for the link and quote. I find the Wordpress codex to be a useful resource which I use regularly. :)

Cheers,
Matt.</description>
		<content:encoded><![CDATA[<p>@Dan Thanks for your comment, Dan. <img src='http://matty.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I don’t think using ‘init‘ or ‘admin-init‘ makes much of a difference. It means it’ll either run on init only when in the admin area or on init in general. Either way, init happens and the function doesn’t seem very intensive. Using ‘admin-init‘ could possibly increase front-end performance though, as the function would not be running on the front-end. Not sure if the performance difference would be noticeable though.</p>
<p>It looks, to me, like it’s a case of 6 of 1 or half a dozen of the other. Using either method, the function will run at the init stage. <img src='http://matty.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for the link and quote. I find the Wordpress codex to be a useful resource which I use regularly. <img src='http://matty.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers,<br />
Matt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Smart</title>
		<link>http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/comment-page-1/#comment-3437</link>
		<dc:creator>Dan Smart</dc:creator>
		<pubDate>Mon, 18 Jan 2010 17:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://matty.co.za/?p=701#comment-3437</guid>
		<description>The guidance given in the Wordpress Codex is to do it in &#039;init&#039; rather than admin-init&#039;, however I may be not taking into account performance with this.

From: http://codex.wordpress.org/Query_Overview:

&quot;So if you want to modify rewrite rules, you will need to call $wp_rewrite-&gt;flush_rules() to force them to recalculate. You&#039;ll need to do this in your plugin&#039;s init action, so that it happens early enough in the process. &quot;

Cheers...Dan</description>
		<content:encoded><![CDATA[<p>The guidance given in the Wordpress Codex is to do it in ‘init’ rather than admin-init’, however I may be not taking into account performance with this.</p>
<p>From: <a href="http://codex.wordpress.org/Query_Overview" rel="nofollow">http://codex.wordpress.org/Query_Overview</a>:</p>
<p>“So if you want to modify rewrite rules, you will need to call $wp_rewrite-&gt;flush_rules() to force them to recalculate. You’ll need to do this in your plugin’s init action, so that it happens early enough in the process. ”</p>
<p>Cheers…Dan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matty</title>
		<link>http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/comment-page-1/#comment-3432</link>
		<dc:creator>Matty</dc:creator>
		<pubDate>Sat, 19 Dec 2009 06:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://matty.co.za/?p=701#comment-3432</guid>
		<description>Hi Brad,
Thanks for your comment.

I&#039;ll look into the call to flush_rewrite_rules.

I&#039;ll be writing a few more posts discussing custom rewrite rules in Wordpress, how to work with them and a few advanced uses. These may be followed up with a plugin. ;)

Cheers,
Matt.</description>
		<content:encoded><![CDATA[<p>Hi Brad,<br />
Thanks for your comment.</p>
<p>I’ll look into the call to flush_rewrite_rules.</p>
<p>I’ll be writing a few more posts discussing custom rewrite rules in Wordpress, how to work with them and a few advanced uses. These may be followed up with a plugin. <img src='http://matty.co.za/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers,<br />
Matt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/comment-page-1/#comment-3431</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Wed, 16 Dec 2009 00:25:22 +0000</pubDate>
		<guid isPermaLink="false">http://matty.co.za/?p=701#comment-3431</guid>
		<description>It would be nice if you followed this up with a real plugin example, and I &quot;think&quot; the add_action( &#039;init&#039;, &#039;flush_rewrite_rules&#039; ); needs to be add_action( &#039;admin-init&#039;, &#039;flush_rewrite_rules&#039; );  BUT I am not 100% certain on that.  

Thanks

-Brad</description>
		<content:encoded><![CDATA[<p>It would be nice if you followed this up with a real plugin example, and I “think” the add_action( ‘init’, ‘flush_rewrite_rules’ ); needs to be add_action( ‘admin-init’, ‘flush_rewrite_rules’ );  BUT I am not 100% certain on that.  </p>
<p>Thanks</p>
<p>–Brad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matty</title>
		<link>http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/comment-page-1/#comment-3430</link>
		<dc:creator>Matty</dc:creator>
		<pubDate>Fri, 27 Nov 2009 06:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://matty.co.za/?p=701#comment-3430</guid>
		<description>Hey lite,
Thanks for the link and your very kind comments about my blog design. :)

I&#039;ll check into flush_rules() and optimise the code accordingly.

Cheers and thanks again,
Matty.</description>
		<content:encoded><![CDATA[<p>Hey lite,<br />
Thanks for the link and your very kind comments about my blog design. <img src='http://matty.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I’ll check into flush_rules() and optimise the code accordingly.</p>
<p>Cheers and thanks again,<br />
Matty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: litemotiv</title>
		<link>http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/comment-page-1/#comment-3429</link>
		<dc:creator>litemotiv</dc:creator>
		<pubDate>Thu, 26 Nov 2009 20:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://matty.co.za/?p=701#comment-3429</guid>
		<description>according to this post (http://wordpress.org/support/topic/226529), flush_rules() is quite expensive and shouldn&#039;t be called on each init. newly generated rules are stored in the database, so you only have to call it once when you introduce new rewrites.

-lite

p.s., i love your blog design!</description>
		<content:encoded><![CDATA[<p>according to this post (<a href="http://wordpress.org/support/topic/226529" rel="nofollow">http://wordpress.org/support/topic/226529</a>), flush_rules() is quite expensive and shouldn’t be called on each init. newly generated rules are stored in the database, so you only have to call it once when you introduce new rewrites.</p>
<p>–lite</p>
<p>p.s., i love your blog design!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matty</title>
		<link>http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/comment-page-1/#comment-3422</link>
		<dc:creator>Matty</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://matty.co.za/?p=701#comment-3422</guid>
		<description>Thanks Justin. I look forward to it. :)

Please tweet some URLs where you use this tut. I&#039;d be keen to see your implementation of it. :)

Cheers and thanks again,
Matt.</description>
		<content:encoded><![CDATA[<p>Thanks Justin. I look forward to it. <img src='http://matty.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Please tweet some URLs where you use this tut. I’d be keen to see your implementation of it. <img src='http://matty.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers and thanks again,<br />
Matt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Slack</title>
		<link>http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/comment-page-1/#comment-3421</link>
		<dc:creator>Justin Slack</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://matty.co.za/?p=701#comment-3421</guid>
		<description>Great tutorial nd very well-explained. I will definitely find a number of uses for this.</description>
		<content:encoded><![CDATA[<p>Great tutorial nd very well-explained. I will definitely find a number of uses for this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
