From 2b43a25d179c4418111eb1f8ce6c47862e8e0e29 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 6 Nov 2015 11:33:02 -0500 Subject: [PATCH] Added custom function similar to mtpleasant wow's. --- functions.php | 6 ++++++ single.php | 12 ++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 891c1f5..6c31ae8 100644 --- a/functions.php +++ b/functions.php @@ -145,6 +145,12 @@ register_nav_menus(array( // 'footer' => 'Footer' )); +function is_post_type($type){ + global $wp_query; + if($type == get_post_type($wp_query->post->ID)) return true; + return false; +} + if ( ! function_exists( 'feature_top_bar' ) ) { function feature_top_bar() { wp_nav_menu(array( diff --git a/single.php b/single.php index e42435d..3c824b8 100644 --- a/single.php +++ b/single.php @@ -1,7 +1,13 @@
-
+ '; + } else { + echo '
'; + } + ?>
@@ -48,7 +54,9 @@
-- 2.17.1