Use locate_template instead of TEMPLATEPATH to Include Files in a BuddyPress Child Theme

By / January 14, 2010 /

Today I ran into an interesting problem while developing a BuddyPress theme. I was attempting to include a custom sidebar using PHP’s “include” function. The WordPress codex page on “include tags” gives us this: <?php include( TEMPLATEPATH . ‘/sidebar-index.php’ ); ?> The problem is that the above code doesn’t always work when you are utilizing…

Read More