Skip to content

Commit

Permalink
Font page template should take precidence over other template types
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrick Galoso committed May 25, 2012
1 parent 2b9bbdf commit a2b6e5b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions route.php
Expand Up @@ -44,9 +44,16 @@ public static function render() {
global $wp_query;
$template_name = get_post_meta( $wp_query->post->ID, '_wp_page_template', true );

/** Front page
*/
if (is_front_page()) {
// Front page, default/posts page
require('templates/front-page.php');
exit;
}
/** Templated page
*/
if ($template_name == 'default') {
else if ($template_name == 'default') {
require('templates/page.php');
exit;
} else if ($template_name != '') {
Expand All @@ -67,12 +74,7 @@ public static function render() {
// Search results
require('templates/search.php');
exit;
} else if (is_front_page()) {
// Front page, default/posts page
require('templates/front-page.php');
exit;
}
else if (is_home()) {
} else if (is_home()) {
// Posts page
require('templates/index.php');
exit;
Expand Down

0 comments on commit a2b6e5b

Please sign in to comment.