<?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: Integrate WordPress into your ColdFusion app</title>
	<atom:link href="https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html</link>
	<description>Web development, Coldfusion, CSS, a bit of this, a bit of that...</description>
	<lastBuildDate>Wed, 08 Apr 2015 20:08:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.7</generator>
	<item>
		<title>By: Kanonymous</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-349892</link>
		<dc:creator><![CDATA[Kanonymous]]></dc:creator>
		<pubDate>Fri, 12 Sep 2014 04:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-349892</guid>
		<description><![CDATA[DUH I found an iframe will encapsulate a CF template on a PHP page.  Naturally there are some limitations but as long as you maintain state you&#039;re gonna be okay.  Let WordPress do what it does best and the same for CF!]]></description>
		<content:encoded><![CDATA[<p>DUH I found an iframe will encapsulate a CF template on a PHP page.  Naturally there are some limitations but as long as you maintain state you&#8217;re gonna be okay.  Let WordPress do what it does best and the same for CF!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-214394</link>
		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Wed, 06 Nov 2013 15:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-214394</guid>
		<description><![CDATA[Hi Mark,

Glad you&#039;re finding it helpful, but this post is a bit old now - I&#039;m not sure what may have changed in Wordpress since it was written. Hopefully it&#039;s all still valid.

With regard to the datasouce, you just need to set one up via the CF Administrator to point to the Wordpress database, so that CF can access the data.]]></description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>Glad you&#8217;re finding it helpful, but this post is a bit old now &#8211; I&#8217;m not sure what may have changed in WordPress since it was written. Hopefully it&#8217;s all still valid.</p>
<p>With regard to the datasouce, you just need to set one up via the CF Administrator to point to the WordPress database, so that CF can access the data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark M.</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-214368</link>
		<dc:creator><![CDATA[Mark M.]]></dc:creator>
		<pubDate>Wed, 06 Nov 2013 14:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-214368</guid>
		<description><![CDATA[Gary, thank you for this post!
I never worked with WP before - and this seems like the only decent article online I could find about pulling the blogs in CF.  Can you elaborate on how to obtain the &quot;Datasource name assigned to the Wordpress database&quot;?  I tried to research that as well, but with no luck.]]></description>
		<content:encoded><![CDATA[<p>Gary, thank you for this post!<br />
I never worked with WP before &#8211; and this seems like the only decent article online I could find about pulling the blogs in CF.  Can you elaborate on how to obtain the &#8220;Datasource name assigned to the WordPress database&#8221;?  I tried to research that as well, but with no luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-85901</link>
		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Tue, 16 Oct 2012 10:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-85901</guid>
		<description><![CDATA[Hi Phil,

I&#039;m afraid there really is no easy way of doing this, but I&#039;ve managed it with a bit of messing about.

Firstly you&#039;ll need to get all the content into the Wordpress database. You could do this by manually adding records, or you could export the content to XML compatible with WP&#039;s import functionality.

Personally, I put the records in manually, using CF. My old CF site had IDs included in the link (/blog/the-name-of-the-post-123.cfm) so using CF I could loop through the records and insert them as posts in Wordpress using the same ID.
This makes things a little easier as you could feasibly get the ID of the post from the original .cfm URL and redirect straight to the WP generic link (/blog/?p=123).

If you want to redirect to the full URL generated in WP, presumably for SEO, you&#039;ll need to manually set up each redirect.
I have a redirects table in my database, with an old URL and a new URL. Then in my error handler in Application.cfc, I run a query on any 404 errors to see if the URL exists in the table. If it does, I can do a 301 redirect straight to the new URL.

Hope that&#039;s some help to you... Best of luck!]]></description>
		<content:encoded><![CDATA[<p>Hi Phil,</p>
<p>I&#8217;m afraid there really is no easy way of doing this, but I&#8217;ve managed it with a bit of messing about.</p>
<p>Firstly you&#8217;ll need to get all the content into the WordPress database. You could do this by manually adding records, or you could export the content to XML compatible with WP&#8217;s import functionality.</p>
<p>Personally, I put the records in manually, using CF. My old CF site had IDs included in the link (/blog/the-name-of-the-post-123.cfm) so using CF I could loop through the records and insert them as posts in WordPress using the same ID.<br />
This makes things a little easier as you could feasibly get the ID of the post from the original .cfm URL and redirect straight to the WP generic link (/blog/?p=123).</p>
<p>If you want to redirect to the full URL generated in WP, presumably for SEO, you&#8217;ll need to manually set up each redirect.<br />
I have a redirects table in my database, with an old URL and a new URL. Then in my error handler in Application.cfc, I run a query on any 404 errors to see if the URL exists in the table. If it does, I can do a 301 redirect straight to the new URL.</p>
<p>Hope that&#8217;s some help to you&#8230; Best of luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Friedman</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-85812</link>
		<dc:creator><![CDATA[Phil Friedman]]></dc:creator>
		<pubDate>Mon, 15 Oct 2012 18:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-85812</guid>
		<description><![CDATA[We&#039;re currently changing over from a Cold Fusion based site to a WordPress based site. Our problem is that there are many important backlinks out there in hyperspace that link back to a Cold Fusion .cfm page. We don&#039;t want to lose that connectivity in the new site. Do you have a suggestion?]]></description>
		<content:encoded><![CDATA[<p>We&#8217;re currently changing over from a Cold Fusion based site to a WordPress based site. Our problem is that there are many important backlinks out there in hyperspace that link back to a Cold Fusion .cfm page. We don&#8217;t want to lose that connectivity in the new site. Do you have a suggestion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Parry</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-65611</link>
		<dc:creator><![CDATA[Martin Parry]]></dc:creator>
		<pubDate>Wed, 30 May 2012 01:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-65611</guid>
		<description><![CDATA[Hey Gary - Sorry for not getting back to you sooner!

Regarding the &quot;slugs&quot;, I use a query to get the parent and grandparent&#039;s (if applicable) post name then build a URL from the install folder e.g. /blog/ - so /blog/[grandparent post name]/[parent post name]/[post name]. Although most posts are usually in the format /blog/how-to-write-cool-apps the above allows me to get at least 2 sub categories

I will try and get round to posting on sourceForge soon at least to show how far I&#039;ve got.]]></description>
		<content:encoded><![CDATA[<p>Hey Gary &#8211; Sorry for not getting back to you sooner!</p>
<p>Regarding the &#8220;slugs&#8221;, I use a query to get the parent and grandparent&#8217;s (if applicable) post name then build a URL from the install folder e.g. /blog/ &#8211; so /blog/[grandparent post name]/[parent post name]/[post name]. Although most posts are usually in the format /blog/how-to-write-cool-apps the above allows me to get at least 2 sub categories</p>
<p>I will try and get round to posting on sourceForge soon at least to show how far I&#8217;ve got.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-62137</link>
		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Sun, 13 May 2012 03:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-62137</guid>
		<description><![CDATA[@Martin
That&#039;s awesome! I&#039;d always wanted to bridge the gap between Wordpress and CF a bit better - the functions in this post are quite a slapdash solution really, in that they rely on the Wordpress database not changing in any significant way, and have limited functionality.

I&#039;ve always thought there was a need for a comprehensive CF library of components to integrate with Wordpress, as I find more and more of my CF sites have a Wordpress blog alongside them.

I&#039;d be very interested to take a look at what you&#039;ve come up with!

While we&#039;re on the subject, have you found any way to get the permalink out of the Wordpress database? It seems to generate the link on the fly based on the settings, but doesn&#039;t actually store the URL anywhere, which means if we want to link to a post from CF, we either have to use the ID (as I&#039;m doing) or parse a version of the permalink from the settings table.

Anyway, thanks for commenting and good luck with ColdPress!]]></description>
		<content:encoded><![CDATA[<p>@Martin<br />
That&#8217;s awesome! I&#8217;d always wanted to bridge the gap between WordPress and CF a bit better &#8211; the functions in this post are quite a slapdash solution really, in that they rely on the WordPress database not changing in any significant way, and have limited functionality.</p>
<p>I&#8217;ve always thought there was a need for a comprehensive CF library of components to integrate with WordPress, as I find more and more of my CF sites have a WordPress blog alongside them.</p>
<p>I&#8217;d be very interested to take a look at what you&#8217;ve come up with!</p>
<p>While we&#8217;re on the subject, have you found any way to get the permalink out of the WordPress database? It seems to generate the link on the fly based on the settings, but doesn&#8217;t actually store the URL anywhere, which means if we want to link to a post from CF, we either have to use the ID (as I&#8217;m doing) or parse a version of the permalink from the settings table.</p>
<p>Anyway, thanks for commenting and good luck with ColdPress!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Parry</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-62134</link>
		<dc:creator><![CDATA[Martin Parry]]></dc:creator>
		<pubDate>Sun, 13 May 2012 03:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-62134</guid>
		<description><![CDATA[Whoops - Forgot to put a link to the actual ColdPress page... http://www.coldfusion.com.au/coldpress/ (BTW I used to live in the UK till moving out to Oz last year)]]></description>
		<content:encoded><![CDATA[<p>Whoops &#8211; Forgot to put a link to the actual ColdPress page&#8230; <a href="http://www.coldfusion.com.au/coldpress/" rel="nofollow">http://www.coldfusion.com.au/coldpress/</a> (BTW I used to live in the UK till moving out to Oz last year)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Parry</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-62133</link>
		<dc:creator><![CDATA[Martin Parry]]></dc:creator>
		<pubDate>Sun, 13 May 2012 03:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-62133</guid>
		<description><![CDATA[Hi - I&#039;d just like to thank you for this - It&#039;s been the inspiration for a project I&#039;m working on now - ColdPress.. I&#039;ve taken your original code but formed it into a complete(ish) set of components complete with automated installation of wordpress etc - I&#039;ll be posting it onto SourceForge at http://sourceforge.net/projects/coldpress/ - I&#039;ll make sure to give you a big thank you!

Martin]]></description>
		<content:encoded><![CDATA[<p>Hi &#8211; I&#8217;d just like to thank you for this &#8211; It&#8217;s been the inspiration for a project I&#8217;m working on now &#8211; ColdPress.. I&#8217;ve taken your original code but formed it into a complete(ish) set of components complete with automated installation of wordpress etc &#8211; I&#8217;ll be posting it onto SourceForge at <a href="http://sourceforge.net/projects/coldpress/" rel="nofollow">http://sourceforge.net/projects/coldpress/</a> &#8211; I&#8217;ll make sure to give you a big thank you!</p>
<p>Martin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>https://www.simianenterprises.co.uk/blog/integrate-wordpress-into-your-coldfusion-app-148.html/comment-page-1#comment-47031</link>
		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Wed, 01 Feb 2012 00:02:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.simianenterprises.co.uk/blog/?p=148#comment-47031</guid>
		<description><![CDATA[@Bill 
I have that function at the top of any php template I want to pull in CF content from - so namely my header.php and footer.php. There&#039;s probably a better way to do that inside the functions.php though.

@Sam
I think we&#039;re achieving different things there - I have php and ColdFusion on the same box... my issue is that I want to include .cfm templates in a Wordpress theme, so that I can have a uniform header and footer that includes session information (such as number of items in a CF based basket).]]></description>
		<content:encoded><![CDATA[<p>@Bill<br />
I have that function at the top of any php template I want to pull in CF content from &#8211; so namely my header.php and footer.php. There&#8217;s probably a better way to do that inside the functions.php though.</p>
<p>@Sam<br />
I think we&#8217;re achieving different things there &#8211; I have php and ColdFusion on the same box&#8230; my issue is that I want to include .cfm templates in a WordPress theme, so that I can have a uniform header and footer that includes session information (such as number of items in a CF based basket).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
