<?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: Use locate_template instead of TEMPLATEPATH to Include Files in a BuddyPress Child Theme</title>
	<atom:link href="http://www.themightymo.com/2010/01/14/use-locate_template-instead-of-templatepath-to-include-files-in-a-buddypress-child-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.themightymo.com/2010/01/14/use-locate_template-instead-of-templatepath-to-include-files-in-a-buddypress-child-theme/</link>
	<description>Wordpress Design and Development</description>
	<lastBuildDate>Mon, 30 Aug 2010 19:59:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Toby</title>
		<link>http://www.themightymo.com/2010/01/14/use-locate_template-instead-of-templatepath-to-include-files-in-a-buddypress-child-theme/comment-page-1/#comment-199</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Tue, 16 Mar 2010 13:17:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.themightymo.com/?p=630#comment-199</guid>
		<description>Marco,
Will the path work properly if you include your code in the template itself (i.e. index.php rather than in functions.php)?</description>
		<content:encoded><![CDATA[<p>Marco,<br />
Will the path work properly if you include your code in the template itself (i.e. index.php rather than in functions.php)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://www.themightymo.com/2010/01/14/use-locate_template-instead-of-templatepath-to-include-files-in-a-buddypress-child-theme/comment-page-1/#comment-198</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Tue, 16 Mar 2010 06:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.themightymo.com/?p=630#comment-198</guid>
		<description>Yes I did it at first. 
TEMPLATEPATH leads you into the parent theme, giving the error of file/dir not found. Quite the same error as STYLESHEETPATH, this time from the child theme&#039;s dir.</description>
		<content:encoded><![CDATA[<p>Yes I did it at first.<br />
TEMPLATEPATH leads you into the parent theme, giving the error of file/dir not found. Quite the same error as STYLESHEETPATH, this time from the child theme&#8217;s dir.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby</title>
		<link>http://www.themightymo.com/2010/01/14/use-locate_template-instead-of-templatepath-to-include-files-in-a-buddypress-child-theme/comment-page-1/#comment-197</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Tue, 16 Mar 2010 04:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.themightymo.com/?p=630#comment-197</guid>
		<description>Marco, 
Have you tried using include( TEMPLATEPATH . ‘/sidebar-index.php’ );  rather than define(‘SHOUTY_DIR’, STYLESHEETPATH); ?</description>
		<content:encoded><![CDATA[<p>Marco,<br />
Have you tried using include( TEMPLATEPATH . ‘/sidebar-index.php’ );  rather than define(‘SHOUTY_DIR’, STYLESHEETPATH); ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://www.themightymo.com/2010/01/14/use-locate_template-instead-of-templatepath-to-include-files-in-a-buddypress-child-theme/comment-page-1/#comment-194</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Tue, 09 Mar 2010 10:43:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.themightymo.com/?p=630#comment-194</guid>
		<description>Hello, here&#039;s what I&#039;ve done in functions.php (shouty is the site theme name):

/*define constant*/
define(&#039;SHOUTY_DIR&#039;, STYLESHEETPATH);

then:
/*here we insert, after the regular sidebar, Shouty&#039;s left sidebar*/
add_action(&#039;bp_after_sidebar&#039;, &#039;shouty_include_sidebar_left&#039;);
function shouty_include_sidebar_left() {
require(SHOUTY_DIR.&#039;/sidebar_left.php&#039;);
}

But this does not load the sidebar_left.php givin an error of file/folder not found in child theme dir, even though is actually there and I can&#039;t figure why. I use this method with frameworks like Hybrid, Thematic and the new Genesis and it always works well. 

ps. I tried hardcoding  but doesn&#039;t work either.</description>
		<content:encoded><![CDATA[<p>Hello, here&#8217;s what I&#8217;ve done in functions.php (shouty is the site theme name):</p>
<p>/*define constant*/<br />
define(&#8216;SHOUTY_DIR&#8217;, STYLESHEETPATH);</p>
<p>then:<br />
/*here we insert, after the regular sidebar, Shouty&#8217;s left sidebar*/<br />
add_action(&#8216;bp_after_sidebar&#8217;, &#8216;shouty_include_sidebar_left&#8217;);<br />
function shouty_include_sidebar_left() {<br />
require(SHOUTY_DIR.&#8217;/sidebar_left.php&#8217;);<br />
}</p>
<p>But this does not load the sidebar_left.php givin an error of file/folder not found in child theme dir, even though is actually there and I can&#8217;t figure why. I use this method with frameworks like Hybrid, Thematic and the new Genesis and it always works well. </p>
<p>ps. I tried hardcoding  but doesn&#8217;t work either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby</title>
		<link>http://www.themightymo.com/2010/01/14/use-locate_template-instead-of-templatepath-to-include-files-in-a-buddypress-child-theme/comment-page-1/#comment-193</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Mon, 08 Mar 2010 19:40:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.themightymo.com/?p=630#comment-193</guid>
		<description>Marco, 

Can you explain a little bit more?

So far, I have only used the &quot;locate_template&quot; hook from a child theme&#039;s page and post template files, so I can&#039;t vouch for how it might work in the functions.php file.</description>
		<content:encoded><![CDATA[<p>Marco, </p>
<p>Can you explain a little bit more?</p>
<p>So far, I have only used the &#8220;locate_template&#8221; hook from a child theme&#8217;s page and post template files, so I can&#8217;t vouch for how it might work in the functions.php file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://www.themightymo.com/2010/01/14/use-locate_template-instead-of-templatepath-to-include-files-in-a-buddypress-child-theme/comment-page-1/#comment-192</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Mon, 08 Mar 2010 13:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.themightymo.com/?p=630#comment-192</guid>
		<description>Hello, I&#039;m facing some problem with this method, I tried to use a hook in child functions.php so I won&#039;t touch files directly, but that didn&#039;t work. Could you drop me a line via mail so I can show you what I&#039;ve done  and maybe show me where&#039;s the error.</description>
		<content:encoded><![CDATA[<p>Hello, I&#8217;m facing some problem with this method, I tried to use a hook in child functions.php so I won&#8217;t touch files directly, but that didn&#8217;t work. Could you drop me a line via mail so I can show you what I&#8217;ve done  and maybe show me where&#8217;s the error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alan</title>
		<link>http://www.themightymo.com/2010/01/14/use-locate_template-instead-of-templatepath-to-include-files-in-a-buddypress-child-theme/comment-page-1/#comment-191</link>
		<dc:creator>alan</dc:creator>
		<pubDate>Sat, 06 Mar 2010 09:57:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.themightymo.com/?p=630#comment-191</guid>
		<description>thanks this works perfect...

thanks for sharing.this is why I like wordpress ,community is awesome!</description>
		<content:encoded><![CDATA[<p>thanks this works perfect&#8230;</p>
<p>thanks for sharing.this is why I like wordpress ,community is awesome!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
