Finding URI in Child Theme

Yes, stylesheet is for child themes, template for parent themes. Andrew Nacin has explained that recently on wp-hackers: child themes were originally just style.css and functions.php. That’s why “template” refers to the parent theme and “stylesheet” refers to the child theme.

Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy

This is minimally tested– nearly untested really– but: function force_archive_php_wpse_88824() { if (is_main_query() && is_archive()) { include (get_stylesheet_directory().’/archive.php’); exit; } } add_action(‘template_redirect’,’force_archive_php_wpse_88824′); You are interrupting the template load process and forcing a file of your choice to be used. Reference http://codex.wordpress.org/Plugin_API/Action_Reference/template_redirect http://codex.wordpress.org/Function_Reference/get_stylesheet_directory

Insert custom fields to a custom post type

That statement grabs a file called content-post-format.php in the theme directory, depending on the post format. Posts will grab content.php since there is no post format. Copy the information out of content.php into single-campsite.php and go from there. Alternatively, you can create a copy of content.php called content-campsite.php and call: <?php get_template_part( ‘content’, ‘campsite’ ); … Read more