<?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: Powerful WordPress Include Hacks</title>
	<atom:link href="http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/</link>
	<description>Igniting Ideas for the Common Good</description>
	<lastBuildDate>Tue, 27 Apr 2010 13:12:16 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Phil</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-64213</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Tue, 12 May 2009 15:16:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-64213</guid>
		<description>Talvaran,

That&#039;s great input. As I write other tutorials, I may just link to downloadable text files with the code. That would help solve the html rendering glitch. Thanks for the feedback.</description>
		<content:encoded><![CDATA[<p>Talvaran,</p>
<p>That&#8217;s great input. As I write other tutorials, I may just link to downloadable text files with the code. That would help solve the html rendering glitch. Thanks for the feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Talravan</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-64211</link>
		<dc:creator>Talravan</dc:creator>
		<pubDate>Tue, 12 May 2009 14:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-64211</guid>
		<description>I just spent an hour working on this code trying to make it work.  It continued to fail and break my page, but I finally got it working.  When copying and pasting you code, only to change values, I totally forgot that those single quotes (&#039;) copy and paste differently.  All I had to do was delete and retype the single quotes and the code works fine now.  You may want to put that precaution into your help file.</description>
		<content:encoded><![CDATA[<p>I just spent an hour working on this code trying to make it work.  It continued to fail and break my page, but I finally got it working.  When copying and pasting you code, only to change values, I totally forgot that those single quotes (&#8216;) copy and paste differently.  All I had to do was delete and retype the single quotes and the code works fine now.  You may want to put that precaution into your help file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damir - SEO Tips</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-24560</link>
		<dc:creator>damir - SEO Tips</dc:creator>
		<pubDate>Sun, 13 Jan 2008 04:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-24560</guid>
		<description>Sorry I just looked at wordpress site and I didn&#039;t see the code to put in the page to display custom field. Do you have that code handy?
Thanks.</description>
		<content:encoded><![CDATA[<p>Sorry I just looked at wordpress site and I didn&#8217;t see the code to put in the page to display custom field. Do you have that code handy?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damir - SEO Tips</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-24558</link>
		<dc:creator>damir - SEO Tips</dc:creator>
		<pubDate>Sun, 13 Jan 2008 04:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-24558</guid>
		<description>Thanks so much for your help. i will look up wordpress.org for info. I&#039;ll get back to you with results.
Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks so much for your help. i will look up wordpress.org for info. I&#8217;ll get back to you with results.<br />
Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-24556</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sun, 13 Jan 2008 04:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-24556</guid>
		<description>Sounds to me like Custom fields may be just what you need to match your objective. You can place custom fields anywhere on a page. They are very cool. The nice thing about it is then you don&#039;t have to upload a new include for each page which could become a real bummer. Yeah, from the sound of it custom field would be a real workable solution for you. 

Do some research on how to use custom fields in WP. There is much good info on the subject. Get back w/ me if you get stuck at some point, but I think you&#039;ll find them fairly easy to utilize. The code is pretty straight forward.

One quick tip, first you put in the code on the page with the stated named field, then you enter that name as the key and what should show on the page in the value field. The next time you call-up a custom field, the new key will now show-up in the drop-down.</description>
		<content:encoded><![CDATA[<p>Sounds to me like Custom fields may be just what you need to match your objective. You can place custom fields anywhere on a page. They are very cool. The nice thing about it is then you don&#8217;t have to upload a new include for each page which could become a real bummer. Yeah, from the sound of it custom field would be a real workable solution for you. </p>
<p>Do some research on how to use custom fields in WP. There is much good info on the subject. Get back w/ me if you get stuck at some point, but I think you&#8217;ll find them fairly easy to utilize. The code is pretty straight forward.</p>
<p>One quick tip, first you put in the code on the page with the stated named field, then you enter that name as the key and what should show on the page in the value field. The next time you call-up a custom field, the new key will now show-up in the drop-down.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damir - SEO Tips</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-24554</link>
		<dc:creator>damir - SEO Tips</dc:creator>
		<pubDate>Sun, 13 Jan 2008 04:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-24554</guid>
		<description>Thanks for the reply. I&#039;m building a Health Insurance website and have posts with medical information and resources for each individual state and would like to include a different file with links to insurance quotes pages for specific state. It would probably be a table with image and links. see I would like to display different image and different links for each state page(post) and would like for it to be at the top of the page under header and I have not used custom fields much.
what do you think.
Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for the reply. I&#8217;m building a Health Insurance website and have posts with medical information and resources for each individual state and would like to include a different file with links to insurance quotes pages for specific state. It would probably be a table with image and links. see I would like to display different image and different links for each state page(post) and would like for it to be at the top of the page under header and I have not used custom fields much.<br />
what do you think.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-24553</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sun, 13 Jan 2008 03:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-24553</guid>
		<description>Damir, I&#039;m not sure about the out of memory error. Quirky indeed. 

Wondering if you may want to look at custom fields to accomplish the same objective. Sometimes approaching the goal from a different direction can get you there just as quick. It depends on the end result you are looking for. 

Take a look at that. I may also have some other code along these lines I can dig-up. If you have a URL and a description of what you are wanting to accomplish, that may be helpful as well.</description>
		<content:encoded><![CDATA[<p>Damir, I&#8217;m not sure about the out of memory error. Quirky indeed. </p>
<p>Wondering if you may want to look at custom fields to accomplish the same objective. Sometimes approaching the goal from a different direction can get you there just as quick. It depends on the end result you are looking for. </p>
<p>Take a look at that. I may also have some other code along these lines I can dig-up. If you have a URL and a description of what you are wanting to accomplish, that may be helpful as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damir - SEO Tips</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-24550</link>
		<dc:creator>damir - SEO Tips</dc:creator>
		<pubDate>Sun, 13 Jan 2008 03:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-24550</guid>
		<description>Actually that is code using query , I&#039;m using this one:


I tried both but get error :&quot;Out of memory (allocated 65798144) (tried to allocate 35 bytes) in /home/....&quot;</description>
		<content:encoded><![CDATA[<p>Actually that is code using query , I&#8217;m using this one:</p>
<p>I tried both but get error :&#8221;Out of memory (allocated 65798144) (tried to allocate 35 bytes) in /home/&#8230;.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damir - SEO Tips</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-24549</link>
		<dc:creator>damir - SEO Tips</dc:creator>
		<pubDate>Sun, 13 Jan 2008 03:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-24549</guid>
		<description>Thanks Phil, I did figured it out actually. here&#039;s what I&#039;m using:
ID == 24 )
{include(TEMPLATEPATH . &#039;/colorado_product.php&#039;); } ?&gt;

But now i&#039; trying to use different single.php template for either category ID or I&#039;m not sure by what else I could define it. I got this code from codex.wordpress.org :
post;
if ( in_category(&#039;9&#039;) ) {
   include(TEMPLATEPATH . &#039;/single2.php&#039;);
} else {
   include(TEMPLATEPATH . &#039;/single1.php&#039;);
}
?&gt;

but I&#039;m getting an error. maybe because it is WP 2.3.2?
do you know the code to achieve this?
Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks Phil, I did figured it out actually. here&#8217;s what I&#8217;m using:<br />
ID == 24 )<br />
{include(TEMPLATEPATH . &#8216;/colorado_product.php&#8217;); } ?&gt;</p>
<p>But now i&#8217; trying to use different single.php template for either category ID or I&#8217;m not sure by what else I could define it. I got this code from codex.wordpress.org :<br />
post;<br />
if ( in_category(&#8216;9&#8242;) ) {<br />
   include(TEMPLATEPATH . &#8216;/single2.php&#8217;);<br />
} else {<br />
   include(TEMPLATEPATH . &#8216;/single1.php&#8217;);<br />
}<br />
?&gt;</p>
<p>but I&#8217;m getting an error. maybe because it is WP 2.3.2?<br />
do you know the code to achieve this?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/comment-page-1/#comment-24539</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sun, 13 Jan 2008 03:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtsparks.net/2007/11/26/powerful-wordpress-include-hacks/#comment-24539</guid>
		<description></description>
		<content:encoded><![CDATA[<p>Damir,</p>
<p>I believe the following code will work for you: </p>
<p>< ?php global $post;<br />
if ($post->post_id == 33 )<br />
 {include(’wp-includes/includedfile.php’); } ?></p>
<p>I&#8217;ve not tested it exactly, but it&#8217;s a slight modification from the one above citing section of the site. </p>
<p>If that doesn&#8217;t work, I&#8217;d have to sleuth it out. You may want to check out: <a href="http://www.webdesignerwall.com/tutorials/wordpress-theme-hacks/" rel="nofollow">http://www.webdesignerwall.com/tutorials/wordpress-theme-hacks/</a></p>
<p>He has some great tips that may lead you down the right path as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
