get_queried_object_id(); # if the same page, get the correct template. if( $page_id == $posts_per_page_id ){ # get the current theme directory. $theme_directory = get_stylesheet_directory() ."/"; # get the page template $page_template = get_post_meta($page_id, '_wp_page_template', true ); # by-pass the default template, allow wordpress to handle the fallback template. if( $page_template != 'default' ){ # find the template in the parent if the template is not a child template if( is_child_theme() && !file_exists($theme_directory . $page_template) ){ # set to parent template directory $theme_directory = get_template_directory(); } return $theme_directory . $page_template; } } } return $template; } add_filter('template_include', 'posts_page_custom_template'); ?> History | StoriesofBecontree
Blog Archives

The great day arrived! Saturday 28/9 at Valence House

Young people, volunteers and Catch22 staff invite you in the launching of the HLF funded film ’Stories of Becontree’ Saturday 28 September 10am-4pm Valence House Museum  (Becontree Avenue, Dagenham, London, Greater London RM8 3HT) It’s a free event with a lot

Posted in History, Project