<?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/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
> <channel><title>Comments on: Change a Post&#8217;s RSS Permalink Using Custom Fields</title> <atom:link href="http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields/feed" rel="self" type="application/rss+xml" /><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=change-a-posts-rss-permalink-using-custom-fields</link> <description>A blog all about WordPress. Yes, we&#039;re a bit meta.</description> <lastBuildDate>Thu, 24 May 2012 18:59:24 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Arush Rehman</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-204270</link> <dc:creator>Arush Rehman</dc:creator> <pubDate>Tue, 27 Sep 2011 12:40:14 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-204270</guid> <description>Thank You great post! I had trouble with my RSS on my blog www.fingermonkeywire.com after I switched to custom permalinks.This rectified that issue. =)Cheers!</description> <content:encoded><![CDATA[<p>Thank You great post! I had trouble with my RSS on my blog <a
href="http://www.fingermonkeywire.com" rel="nofollow">http://www.fingermonkeywire.com</a> after I switched to custom permalinks.</p><p>This rectified that issue. =)</p><p>Cheers!</p> ]]></content:encoded> </item> <item><title>By: Erick</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-126109</link> <dc:creator>Erick</dc:creator> <pubDate>Tue, 21 Jun 2011 19:07:09 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-126109</guid> <description>Dan, please excuse my ignorance as I&#039;m not very well versed in php!I&#039;m trying to implement your code in my theme&#039;s function page, but it doesn&#039;t seem to do what I was hoping for - namely, change the permalink for a post IF a custom field called &#039;postURL&#039; exists.  I think that&#039;s what you were trying to explain to @Sumesh, but somehow I don&#039;t understand to how implement what you&#039;ve described as:&lt;blockquote&gt;
post-&gt;ID, &#039;url&#039;, true);
if($url) { // if URL custom field exists, use that URL: ?&gt;Our code cleaner-upper doesn’t seem to be working with comments. Basically inside this if() statement you echo $url for the link, and after } else { it just links to the regular permalink.
&lt;/blockquote&gt;What would the full code look like including this addition?</description> <content:encoded><![CDATA[<p>Dan, please excuse my ignorance as I&#8217;m not very well versed in php!</p><p>I&#8217;m trying to implement your code in my theme&#8217;s function page, but it doesn&#8217;t seem to do what I was hoping for &#8211; namely, change the permalink for a post IF a custom field called &#8216;postURL&#8217; exists.  I think that&#8217;s what you were trying to explain to @Sumesh, but somehow I don&#8217;t understand to how implement what you&#8217;ve described as:</p><blockquote><p> post-&gt;ID, &#8216;url&#8217;, true);<br
/> if($url) { // if URL custom field exists, use that URL: ?&gt;</p><p>Our code cleaner-upper doesn’t seem to be working with comments. Basically inside this if() statement you echo $url for the link, and after } else { it just links to the regular permalink.</p></blockquote><p>What would the full code look like including this addition?</p> ]]></content:encoded> </item> <item><title>By: Norbert</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-4413</link> <dc:creator>Norbert</dc:creator> <pubDate>Wed, 17 Feb 2010 10:31:14 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-4413</guid> <description>Hi now that it&#039;s clear how to hand over a custom field value to the rss (thank you very much for this tut.) I would be very curious how to read out any custom field value with a (eg.) simplepie loop.
Thank you in advance.</description> <content:encoded><![CDATA[<p>Hi now that it&#8217;s clear how to hand over a custom field value to the rss (thank you very much for this tut.) I would be very curious how to read out any custom field value with a (eg.) simplepie loop.<br
/> Thank you in advance.</p> ]]></content:encoded> </item> <item><title>By: 100+ Massive Wordpress Tutorial Collection&#160;&#124;&#160;tripwire magazine</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-4411</link> <dc:creator>100+ Massive Wordpress Tutorial Collection&#160;&#124;&#160;tripwire magazine</dc:creator> <pubDate>Mon, 30 Nov 2009 18:39:43 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-4411</guid> <description>[...] Change a Post’s RSS Permalink Using Custom Fields [...]</description> <content:encoded><![CDATA[<p>[...] Change a Post’s RSS Permalink Using Custom Fields [...]</p> ]]></content:encoded> </item> <item><title>By: Amos</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-4410</link> <dc:creator>Amos</dc:creator> <pubDate>Fri, 06 Mar 2009 12:25:04 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-4410</guid> <description>Appreciate this write-up Dan.  Very helpful.  One question I have for you.  After setting all this code up it appears to work great on my site/rss feed.  However, I&#039;d feel more comfortable using it if I could include a permalink back to my site in the RSS article.As it is now the title links to the source, but there&#039;s no way for the reader to jump to the respective article on my site, when consumed in an RSS reader.  So I guess visually something like this for the RSS article:-TITLE (link to source)
-CONTENT
-PERMALINKWhere the permalink is either the word or a symbol.  Believe Mr. Gruber has it set up this way.  Hope this makes sense.  I&#039;d try to figure it out myself, but fear I&#039;d totally destroy my site in the process.Again, much thanks for sharing this information.</description> <content:encoded><![CDATA[<p>Appreciate this write-up Dan.  Very helpful.  One question I have for you.  After setting all this code up it appears to work great on my site/rss feed.  However, I&#8217;d feel more comfortable using it if I could include a permalink back to my site in the RSS article.</p><p>As it is now the title links to the source, but there&#8217;s no way for the reader to jump to the respective article on my site, when consumed in an RSS reader.  So I guess visually something like this for the RSS article:</p><p>-TITLE (link to source)<br
/> -CONTENT<br
/> -PERMALINK</p><p>Where the permalink is either the word or a symbol.  Believe Mr. Gruber has it set up this way.  Hope this makes sense.  I&#8217;d try to figure it out myself, but fear I&#8217;d totally destroy my site in the process.</p><p>Again, much thanks for sharing this information.</p> ]]></content:encoded> </item> <item><title>By: Weekend Roundup #30&#160;&#187;&#160;JaypeeOnline // Blogging News &#38; Reviews</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-4409</link> <dc:creator>Weekend Roundup #30&#160;&#187;&#160;JaypeeOnline // Blogging News &#38; Reviews</dc:creator> <pubDate>Sun, 28 Dec 2008 19:20:53 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-4409</guid> <description>[...] would like your readers to be brought directly to the source site, this helpful tip will let you change a post&#8217;s RSS permalink using custom fields. via [...]</description> <content:encoded><![CDATA[<p>[...] would like your readers to be brought directly to the source site, this helpful tip will let you change a post&#8217;s RSS permalink using custom fields. via [...]</p> ]]></content:encoded> </item> <item><title>By: Weekend Links - Dec 26, 2008 &#171; OMNINOGGIN</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-4408</link> <dc:creator>Weekend Links - Dec 26, 2008 &#171; OMNINOGGIN</dc:creator> <pubDate>Sat, 27 Dec 2008 03:43:07 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-4408</guid> <description>[...] Change a Post’s RSS Permalink Using Custom Fields - If you’re subscribed to John Gruber’s Daring Fireball RSS feed, you’ve probably noticed that most of his posts are links to other sites. Ins&#8230; [...]</description> <content:encoded><![CDATA[<p>[...] Change a Post’s RSS Permalink Using Custom Fields &#8211; If you’re subscribed to John Gruber’s Daring Fireball RSS feed, you’ve probably noticed that most of his posts are links to other sites. Ins&#8230; [...]</p> ]]></content:encoded> </item> <item><title>By: Dan Philibin</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-4407</link> <dc:creator>Dan Philibin</dc:creator> <pubDate>Wed, 24 Dec 2008 15:46:38 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-4407</guid> <description>@Sumesh it&#039;s actually quite simple to change the permalink, too - I probably should have covered that in the tutorial as well.Under the line &lt;code&gt;add_filter(&#039;the_permalink_rss&#039;, &#039;mp_permalink&#039;);&lt;/code&gt;, just add another filter to change the post&#039;s permalink:&lt;code&gt;add_filter(&#039;post_link&#039;, &#039;mp_permalink&#039;);&lt;/code&gt;However I wouldn&#039;t recommend changing the actual permalink to your post. Then there&#039;s no way to reference the post after it&#039;s gone from your homepage. In the theme, instead of linking the posts&#039;s title to its permalink, just link it to the custom field URL.&lt;code&gt;post-&gt;ID, &#039;url&#039;, true);
if($url) { // if URL custom field exists, use that URL: ?&gt;&lt;/code&gt;Our code cleaner-upper doesn&#039;t seem to be working with comments. Basically inside this if() statement you echo &lt;code&gt;$url&lt;/code&gt; for the link, and after &lt;code&gt; } else { &lt;/code&gt; it just links to the regular permalink.This would go in your theme&#039;s file. Hopefully this helps. Let me know if anything isn&#039;t clear.</description> <content:encoded><![CDATA[<p>@Sumesh it&#8217;s actually quite simple to change the permalink, too &#8211; I probably should have covered that in the tutorial as well.</p><p>Under the line <code>add_filter('the_permalink_rss', 'mp_permalink');</code>, just add another filter to change the post&#8217;s permalink:</p><p><code>add_filter('post_link', 'mp_permalink');</code></p><p>However I wouldn&#8217;t recommend changing the actual permalink to your post. Then there&#8217;s no way to reference the post after it&#8217;s gone from your homepage. In the theme, instead of linking the posts&#8217;s title to its permalink, just link it to the custom field URL.</p><p><code>post-&gt;ID, 'url', true);<br
/> if($url) { // if URL custom field exists, use that URL: ?&gt;</code></p><p>Our code cleaner-upper doesn&#8217;t seem to be working with comments. Basically inside this if() statement you echo <code>$url</code> for the link, and after <code> } else { </code> it just links to the regular permalink.</p><p>This would go in your theme&#8217;s file. Hopefully this helps. Let me know if anything isn&#8217;t clear.</p> ]]></content:encoded> </item> <item><title>By: Sumesh</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-4406</link> <dc:creator>Sumesh</dc:creator> <pubDate>Wed, 24 Dec 2008 11:28:06 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-4406</guid> <description>I tested this, but didn&#039;t get it to  work. Perhaps I made a mistake.On a side note, what would site visitors do? If you do not link to the source in post (and do it through custom field only), we need a hack to change the permalink for the posts too. I hope you&#039;ll have a tutorial on that sometime later. Until then, I&#039;m holding off deployment on my blog.</description> <content:encoded><![CDATA[<p>I tested this, but didn&#8217;t get it to  work. Perhaps I made a mistake.</p><p>On a side note, what would site visitors do? If you do not link to the source in post (and do it through custom field only), we need a hack to change the permalink for the posts too. I hope you&#8217;ll have a tutorial on that sometime later. Until then, I&#8217;m holding off deployment on my blog.</p> ]]></content:encoded> </item> <item><title>By: Patrick Algrim</title><link>http://wpcandy.com/teaches/change-a-posts-rss-permalink-using-custom-fields#comment-4405</link> <dc:creator>Patrick Algrim</dc:creator> <pubDate>Tue, 23 Dec 2008 02:11:37 +0000</pubDate> <guid
isPermaLink="false">http://wpcandy.com/?p=1472#comment-4405</guid> <description>Very awesome tutorial. Very simple and super effective. This is definitely going to be a resource that others will be coming back to time and time again!</description> <content:encoded><![CDATA[<p>Very awesome tutorial. Very simple and super effective. This is definitely going to be a resource that others will be coming back to time and time again!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 30/39 queries in 0.010 seconds using disk: basic
Object Caching 1136/1146 objects using disk: basic
Content Delivery Network via cdn.wpcandy.com

Served from: wpcandy.com @ 2012-05-24 15:54:03 -->
