Skip to content
Browse files

Allow for single.php template file for singular posts.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@961 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
1 parent 78a4afe commit 5c835dffea294dbca49f7b7aad63f89a78143ea8 greenshady committed Dec 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 functions/template-hierarchy.php
View
3 functions/template-hierarchy.php
@@ -197,8 +197,9 @@ function hybrid_singular_template( $template ) {
/* Add a template based off the post type name. */
$templates[] = "{$post->post_type}.php";
- /* Allow for WP's more recent 'single-{$post_type}.php' for compatibility. */
+ /* Allow for WP standard 'single' templates for compatibility. */
$templates[] = "single-{$post->post_type}.php";
+ $templates[] = 'single.php';
/* Add a general template of singular.php. */
$templates[] = "singular.php";

0 comments on commit 5c835df

Please sign in to comment.
Something went wrong with that request. Please try again.