How to *remove* a parent theme page template from a child theme?

I’m using the TwentyTen theme to create a child theme, but I can’t seem to get rid of the ‘One column, no sidebar’ page template that is in the TwentyTen parent theme. I thought just copying it over and deleting the contents would do the trick, but it seems not. Does anyone know how to … Read more

How to get taxonomy term of the current page and populate queries in the template

I’ve been stumbling around trying to figure out how to get a specific taxonomy term of the current page so that I can subsequently populate queries on the page for other post types that share the same term. Basically: Page 1 has taxonomy term – education policy page.php has four parts: standard loop that outputs … Read more

Getting only direct child pages in WordPress with get_pages

I am trying to fetch all direct children of a page. But I am getting all children and grand children as well. Any ideas? PHP Source: $args = array( ‘child_of’ => $post->ID, ‘parent ‘ => $post->ID, ‘hierarchical’ => 0, ‘sort_column’ => ‘menu_order’, ‘sort_order’ => ‘asc’ ); $mypages = get_pages( $args ); foreach( $mypages as $post … Read more

Custom templates not showing up in template dropdown

I’ve got some problems with templates in WordPress (multisite). I’ve created a file in the root of my child-theme folder (template-test.php) <?php /** * Template Name: Test template * */ ?> <?php get_header(); ?> <?php get_footer(); ?> This template is not showing up in the templates dropdown when creating a new page, or editing an … Read more