I have a template page that is supposed to load all blog posts(posts stream) and I am working in child theme. For some reason I get index.php returned from parent theme instead of modified one that I have in child theme directory.
code:
<?php
/*
Template Name: Blog
*/
// Which page of the blog are we on?
$paged = get_query_var('paged');
query_posts('cat=-0&paged='.$paged);
//load index to show blog
load_template(TEMPLATEPATH . '/index.php');
?>
Any ideas how to solve this, so it loads child theme index.php instead of parent?
get_template_directory()
instead forTEMPLATEPATH
. Return the absolute path to the directory of the current theme (without the trailing slash) - not the child.get_stylesheet_directory()
.